PL/pgSQL Control Structures

  Рет қаралды 10,572

PostgresConf South Africa

PostgresConf South Africa

Күн бұрын

Andreas Nel
PostgresConf South Africa 2019
postgresconf.org/conferences/...
PL/pgSQL is a language that allows developers to write stored procedures and functions in a procedural manner (instead of writing them in the declarative fashion of SQL) whilst still providing the speed benefits of the SQL language. This allows the developer to easily move complex business logic from the (often slow) application layer to the (usually faster) database layer, which provides a number of benefits. Various control structures exist which can be used to write PL/pgSQL functions that can perform this type of logic.
In this talk, a brief overview will be given about some of the other languages that one can use to write stored procedures and functions, with the main focus being on PL/pgSQL. Each control structure that is available in the PL/pgSQL language is then going to be explained along with a corresponding example. These will include each of the conditional structures, looping structures, return statements (including RETURN NEXT and RETURN QUERY), and error handling.
At the end of this session, attendees can expect to have sufficient knowledge about the usage of the different control structures in order to write, extend or improve stored procedures and functions in their database systems.

Пікірлер
What's all this fuss about Common Table Expressions (CTE's) anyway?
30:50
PostgresConf South Africa
Рет қаралды 2,9 М.
Effectively securing your PostgreSQL database
40:23
PostgresConf South Africa
Рет қаралды 8 М.
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 26 МЛН
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 28 МЛН
Fast and Furious: New Zealand 🚗
00:29
How Ridiculous
Рет қаралды 45 МЛН
Задержи дыхание дольше всех!
00:42
Аришнев
Рет қаралды 3,8 МЛН
The Lost Art of plpgsql - Robert Treat
55:37
PGCon
Рет қаралды 6 М.
DEV1-12. 11. Обзор и конструкции языка PL/pgSQL
34:36
Postgres Professional
Рет қаралды 11 М.
Basic understanding of EXPLAIN ANALYZE
36:08
PostgresConf South Africa
Рет қаралды 25 М.
PostgreSQL performance in 5 minutes
32:39
PostgresConf South Africa
Рет қаралды 57 М.
A talk about indexes
41:55
PostgresConf South Africa
Рет қаралды 10 М.
Basic plpgsql
11:14
Michael Goodman
Рет қаралды 7 М.
Postgres Triggers in a Nutshell
10:09
Troy Amelotte
Рет қаралды 19 М.
Wait... PostgreSQL can do WHAT?
20:33
The Art Of The Terminal
Рет қаралды 191 М.
AutoVacuum - Tuning and Monitoring
41:32
PostgresConf South Africa
Рет қаралды 4,5 М.
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 26 МЛН