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

Commit52b70b1

Browse files
committed
Remove CommandCounterIncrement() after processing ON COMMIT DELETE
This comes fromf9b5b41, which is part of one the original commits thatimplemented ON COMMIT actions. By looking at the truncation code, anyCCI needed happens locally when rebuilding indexes, so it looks safe tojust remove this final incrementation.Author: Michael PaquierReviewed-by: Álvaro HerreraDiscussion:https://postgr.es/m/20181109024731.GF2652@paquier.xyz
1 parent3de4914 commit52b70b1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎src/backend/commands/tablecmds.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13334,10 +13334,8 @@ PreCommit_on_commit_actions(void)
1333413334
* exists at truncation time.
1333513335
*/
1333613336
if (oids_to_truncate!=NIL)
13337-
{
1333813337
heap_truncate(oids_to_truncate);
13339-
CommandCounterIncrement();/* XXX needed? */
13340-
}
13338+
1334113339
if (oids_to_drop!=NIL)
1334213340
{
1334313341
ObjectAddresses*targetObjects=new_object_addresses();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp