Re: [BUGS] Commenting a FK crashes ALTER TABLE statements
От | Tom Lane |
---|---|
Тема | Re: [BUGS] Commenting a FK crashes ALTER TABLE statements |
Дата | |
Msg-id | 10243.1494859032@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: [BUGS] Commenting a FK crashes ALTER TABLE statements (Michael Paquier <michael.paquier@gmail.com>) |
Ответы |
Re: [BUGS] Commenting a FK crashes ALTER TABLE statements
|
Список | pgsql-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
В списке pgsql-bugs по дате отправления: