From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: David Rowley <david.rowley@2ndquadrant.com>
Cc: Marko Elezovic <marko.elezovic@oradian.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: Commenting a FK crashes ALTER TABLE statements
Date: Mon, 15 May 2017 10:37:12 -0400
Message-ID: <10243.1494859032@sss.pgh.pa.us> (raw)
In-Reply-To: <CAB7nPqSndh49vF=DSdm4vFent+3Qq0Suo-ND=g_ZeNCGDUZtGw@mail.gmail.com>
References: <DB6PR03MB30775D58E732D4EB0C13725B9AE00@DB6PR03MB3077.eurprd03.prod.outlook.com>
<CAKJS1f9HdROUL+2OsSSeLfEgkFuxUnuySP_s0mLpHcVjjLESzQ@mail.gmail.com>
<CAB7nPqSndh49vF=DSdm4vFent+3Qq0Suo-ND=g_ZeNCGDUZtGw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Michael Paquier <michael.paquier@gmail.com> writes:
> On Mon, May 15, 2017 at 1:05 PM, David Rowley
> <david.rowley@2ndquadrant.com> wrote:
>> It seems there's just some missing pstrdup() calls in
>> RebuildConstraintComment().
>>
>> The attached should fix it.
> I was just finishing to debug it :)
> It is surprising that we have not caught this earlier as comment
> re-creation handling in ALTER TABLE has been reworked some time ago
> already. This means that we did not stress this code enough. Attached
> is the previous fix, completed with a set of regression tests.
Yeah, there should at least be a test case to cover the known crash.
I'll take this one, unless some other committer is already on it.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, michael.paquier@gmail.com, david.rowley@2ndquadrant.com, marko.elezovic@oradian.com
Subject: Re: Commenting a FK crashes ALTER TABLE statements
In-Reply-To: <10243.1494859032@sss.pgh.pa.us>
References: <DB6PR03MB30775D58E732D4EB0C13725B9AE00@DB6PR03MB3077.eurprd03.prod.outlook.com> <CAKJS1f9HdROUL+2OsSSeLfEgkFuxUnuySP_s0mLpHcVjjLESzQ@mail.gmail.com> <CAB7nPqSndh49vF=DSdm4vFent+3Qq0Suo-ND=g_ZeNCGDUZtGw@mail.gmail.com> <10243.1494859032@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox