]> granicus.if.org Git - postgresql/commit
Fix memory leak when inserting tuple at relation creation for CTAS
authorMichael Paquier <michael@paquier.xyz>
Wed, 27 Feb 2019 05:14:06 +0000 (14:14 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 27 Feb 2019 05:14:06 +0000 (14:14 +0900)
commit414a9d3cf34c7aff1c63533df4c40ebb63bd0840
tree96ce9471675db238ad53affc5433c1ceeed7d202
parentff11e7f4b9ae017585c3ba146db7ba39c31f209a
Fix memory leak when inserting tuple at relation creation for CTAS

The leak has been introduced by 763f2ed which has addressed the problem
for transient tables, and forgot CREATE TABLE AS which shares a similar
logic when receiving a new tuple to store into the newly-created
relation.

Author: Jeff Janes
Discussion: https://postgr.es/m/CAMkU=1xZXtz3mziPEPD2Fubbas4G2RWkZm5HHABtfKVcbu1=Sg@mail.gmail.com
src/backend/commands/createas.c