Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0e3aadb

Browse files
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 parent603ad8a commit0e3aadb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/commands/tsearchcmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ AlterTSConfiguration(AlterTSConfigurationStmt *stmt)
11861186
/* Update dependencies */
11871187
makeConfigurationDependencies(tup, true,relMap);
11881188

1189-
InvokeObjectPostAlterHook(TSConfigMapRelationId,
1189+
InvokeObjectPostAlterHook(TSConfigRelationId,
11901190
HeapTupleGetOid(tup),0);
11911191

11921192
heap_close(relMap,RowExclusiveLock);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp