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

Commit414a9d3

Browse files
committed
Fix memory leak when inserting tuple at relation creation for CTAS
The leak has been introduced by763f2ed which has addressed the problemfor transient tables, and forgot CREATE TABLE AS which shares a similarlogic when receiving a new tuple to store into the newly-createdrelation.Author: Jeff JanesDiscussion:https://postgr.es/m/CAMkU=1xZXtz3mziPEPD2Fubbas4G2RWkZm5HHABtfKVcbu1=Sg@mail.gmail.com
1 parentff11e7f commit414a9d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/backend/commands/createas.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,9 @@ intorel_receive(TupleTableSlot *slot, DestReceiver *self)
587587

588588
/* We know this is a newly created relation, so there are no indexes */
589589

590+
/* Free the copied tuple. */
591+
heap_freetuple(tuple);
592+
590593
return true;
591594
}
592595

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp