- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit3f190f6
committed
Fix table_rewrite event trigger for ALTER TYPE/SET DATA TYPE CASCADE
When a composite type being used in a typed table is modified by wayof ALTER TYPE, a table rewrite occurs appearing to come from ALTER TYPE.The existing event_trigger.c code was unable to cope with thatand raised a spurious error. The fix is just to accept that commandtag for the event, and document this properly.Noted while fooling with deparsing of DDL commands. This appears to bean oversight in commit618c943.Thanks to Mark Wong for documentation wording help.1 parentbda76c1 commit3f190f6
File tree
4 files changed
+27
-6
lines changed- doc/src/sgml
- src
- backend/commands
- test/regress
- expected
- sql
4 files changed
+27
-6
lines changedLines changed: 4 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
71 |
| - | |
| 71 | + | |
| 72 | + | |
72 | 73 |
| |
73 | 74 |
| |
74 |
| - | |
75 |
| - | |
76 |
| - | |
| 75 | + | |
77 | 76 |
| |
78 | 77 |
| |
79 | 78 |
| |
| |||
318 | 317 |
| |
319 | 318 |
| |
320 | 319 |
| |
321 |
| - | |
| 320 | + | |
322 | 321 |
| |
323 | 322 |
| |
324 | 323 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
326 | 326 |
| |
327 | 327 |
| |
328 | 328 |
| |
329 |
| - | |
| 329 | + | |
| 330 | + | |
330 | 331 |
| |
331 | 332 |
| |
332 | 333 |
| |
|
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
370 | 370 |
| |
371 | 371 |
| |
372 | 372 |
| |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
373 | 384 |
| |
374 | 385 |
| |
375 | 386 |
| |
|
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
276 | 276 |
| |
277 | 277 |
| |
278 | 278 |
| |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
279 | 289 |
| |
280 | 290 |
| |
281 | 291 |
| |
|
0 commit comments
Comments
(0)