pg_dump segfaults with publication

From: Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: pg_dump segfaults with publication
Date: 2017-03-06 08:06:11
Message-ID: 060267ad-4138-5173-66cc-5e4c8a34b8ed@lab.ntt.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

pg_dump segfaults if there are more than one DO_PUBLICATION_REL objects to
dump.

create table foo (a int);
create publication foo_pub;
alter publication foo_pub add table foo;

$ pg_dump
<OK>

create table bar (a int);
alter publication foo_pub add table bar;

$ pg_dump -s
Segmentation fault (core dumped)

The reason is DumpableObject.name is not set being set in
getPublicationTables(). Attached patch fixes that.

Thanks,
Amit

Attachment Content-Type Size
0001-Set-DumpableObject.name-for-PublicationRelInfo-objec.patch text/x-diff 878 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kyotaro HORIGUCHI 2017-03-06 08:07:55 Re: [BUG FIX] Removing NamedLWLockTrancheArray
Previous Message Amit Langote 2017-03-06 08:02:13 Re: ANALYZE command progress checker