pgsql: Fix memory leak when inserting tuple at relation creation for CT

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix memory leak when inserting tuple at relation creation for CT
Date: 2019-02-27 05:21:40
Message-ID: E1gyrf2-0005QI-8U@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/414a9d3cf34c7aff1c63533df4c40ebb63bd0840

Modified Files
--------------
src/backend/commands/createas.c | 3 +++
1 file changed, 3 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message John Naylor 2019-02-27 05:37:41 Re: pgsql: Avoid creation of the free space map for small heap relations, t
Previous Message John Naylor 2019-02-27 05:19:18 Re: pgsql: Avoid creation of the free space map for small heap relations, t