From: | Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp> |
---|---|
To: | Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Crash when partition column specified twice |
Date: | 2017-04-27 03:36:21 |
Message-ID: | 6ed23d3d-c09d-4cbc-3628-0a8a32f750f4@lab.ntt.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Noticed that a crash occurs if a column is specified twice when creating a
partition:
create table p (a int) partition by list (a);
-- crashes
create table p1 partition of parent (
a not null,
a default 1
) for values in (1);
The logic in MergeAttributes() that merged partition column options with
those of the parent didn't properly check for column being specified twice
and instead tried to delete the same ColumnDef from a list twice, causing
the crash.
Attached fixes that.
Added to the open items list.
Thanks,
Amit
Attachment | Content-Type | Size |
---|---|---|
0001-Fix-crash-when-partition-column-specified-twice.patch | text/x-diff | 8.9 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2017-04-27 04:03:04 | Re: scram and \password |
Previous Message | Tom Lane | 2017-04-27 03:31:24 | Inefficient shutdown of pg_basebackup |