forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd56b8b4
committed
Ensure commands in extension scripts see the results of preceding DDL.
Due to a missing CommandCounterIncrement() call, parsing of a non-utilitycommand in an extension script would not see the effects of the immediatelypreceding DDL command, unless that command's execution ends withCommandCounterIncrement() internally ... which some do but many don't.Report by Philippe Beaudoin, diagnosis by Julien Rouhaud.Rather remarkably, this bug has evaded detection since extensions wereinvented, so back-patch to all supported branches.Discussion:https://postgr.es/m/2cf7941e-4e41-7714-3de8-37b1a8f74dff@free.fr1 parentf06caa0 commitd56b8b4
File tree
2 files changed
+9
-0
lines changed- src
- backend/commands
- test/modules/test_extensions
2 files changed
+9
-0
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
706 | 706 |
| |
707 | 707 |
| |
708 | 708 |
| |
| 709 | + | |
| 710 | + | |
| 711 | + | |
709 | 712 |
| |
710 | 713 |
| |
711 | 714 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + |
0 commit comments
Comments
(0)