forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite0ef136
committed
Trigger stmt_beg and stmt_end for top-level statement blocks of PL/pgSQL
PL/pgSQL provides a set of callbacks which can be used for extrainstrumentation of functions written in this language called at functionsetup, begin and end, as well as statement begin and end. When callinga routine, a trigger, or an event trigger, statement callbacks are notgetting called for the top-level statement block leading to aninconsistent handling compared to the other statements. Thisinconsistency can potentially complicate extensions doinginstrumentation work on top of PL/pgSQL, so this commit makes sure thatall statement blocks, including the top-level one, go through thecorrect corresponding callbacks.Author: Pavel StehuleReviewed-by: Michael PaquierDiscussion:https://postgr.es/m/CAFj8pRArEANsaUjo5in9_iQt0vKf9ecwDAmsdN_EBwL13ps12A@mail.gmail.com1 parent4203842 commite0ef136
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
585 | 585 |
| |
586 | 586 |
| |
587 | 587 |
| |
588 |
| - | |
| 588 | + | |
589 | 589 |
| |
590 | 590 |
| |
591 | 591 |
| |
| |||
955 | 955 |
| |
956 | 956 |
| |
957 | 957 |
| |
958 |
| - | |
| 958 | + | |
959 | 959 |
| |
960 | 960 |
| |
961 | 961 |
| |
| |||
1116 | 1116 |
| |
1117 | 1117 |
| |
1118 | 1118 |
| |
1119 |
| - | |
| 1119 | + | |
1120 | 1120 |
| |
1121 | 1121 |
| |
1122 | 1122 |
| |
|
0 commit comments
Comments
(0)