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

Commit3e67a5c

Browse files
author
Amit Kapila
committed
Remove some useless free calls.
These were introduced in recent commit52e4f0c. We were trying to freesome transient space consumption and that too was not entirely correct andcomplete. We don't need this partial freeing of memory as it will beallocated just once for a query and will be freed at the end of the query.Author: Zhihong YuReviewed-by: Amit KapilaDiscussion:https://postgr.es/m/CALNJ-vQORfQ=vicbKA_RmeGZGzm1y3WsEcZqXWi7qjN43Cz_vg@mail.gmail.com
1 parent0f79caa commit3e67a5c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

‎src/backend/commands/publicationcmds.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -409,9 +409,6 @@ contain_invalid_rfcolumn(Oid pubid, Relation relation, List *ancestors,
409409
context.bms_replident=bms;
410410
rfnode=stringToNode(TextDatumGetCString(rfdatum));
411411
result=contain_invalid_rfcolumn_walker(rfnode,&context);
412-
413-
bms_free(bms);
414-
pfree(rfnode);
415412
}
416413

417414
ReleaseSysCache(rftuple);
@@ -1182,9 +1179,6 @@ AlterPublicationTables(AlterPublicationStmt *stmt, HeapTuple tup,
11821179
}
11831180
}
11841181

1185-
if (oldrelwhereclause)
1186-
pfree(oldrelwhereclause);
1187-
11881182
/*
11891183
* Add the non-matched relations to a list so that they can be
11901184
* dropped.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp