forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit12bd7dd
committed
Use TSConfigRelationId in AlterTSConfiguration()
When we are altering a text search configuration, we are getting thetuple from pg_ts_config and using its OID, so use TSConfigRelationIdwhen invoking any post-alter hooks and setting the object address.Further, in the functions called from AlterTSConfiguration(), we'resaving information about the command viaEventTriggerCollectAlterTSConfig(), so we should be settingcommandCollected to true. Also add a regression test totest_ddl_deparse for ALTER TEXT SEARCH CONFIGURATION.Author: Artur Zakirov, a few additional comments by meDiscussion:https://www.postgresql.org/message-id/57a71eba-f2c7-e7fd-6fc0-2126ec0b39bd%40postgrespro.ruBack-patch the fix for the InvokeObjectPostAlterHook() call to 9.3 whereit was introduced, and the fix for the ObjectAddressSet() call andsetting commandCollected to true to 9.5 where those changes toProcessUtilitySlow() were introduced.1 parent1ead020 commit12bd7dd
File tree
5 files changed
+26
-3
lines changed- src
- backend
- commands
- tcop
- test/modules/test_ddl_deparse
- expected
- sql
5 files changed
+26
-3
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1215 | 1215 |
| |
1216 | 1216 |
| |
1217 | 1217 |
| |
1218 |
| - | |
| 1218 | + | |
1219 | 1219 |
| |
1220 | 1220 |
| |
1221 |
| - | |
| 1221 | + | |
1222 | 1222 |
| |
1223 | 1223 |
| |
1224 | 1224 |
| |
|
Lines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1479 | 1479 |
| |
1480 | 1480 |
| |
1481 | 1481 |
| |
1482 |
| - | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
1483 | 1489 |
| |
1484 | 1490 |
| |
1485 | 1491 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
| 26 | + | |
26 | 27 |
| |
27 | 28 |
| |
28 | 29 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + |
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + |
0 commit comments
Comments
(0)