From: | Amit Langote <amitlangote09(at)gmail(dot)com> |
---|---|
To: | ejberdecia(at)yahoo(dot)com, PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org> |
Subject: | Re: BUG #15954: Unable to alter partitioned table to set logged |
Date: | 2019-08-14 01:47:34 |
Message-ID: | CA+HiwqFLG=vN3-H3+Xk2ef_iicnoUtA7tNeZfX7JJc7mGJVZ0w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Wed, Aug 14, 2019 at 3:06 AM PG Bug reporting form
<noreply(at)postgresql(dot)org> wrote:
> The following bug has been logged on the website:
>
> Bug reference: 15954
> Logged by: Efrain Berdecia
> Email address: ejberdecia(at)yahoo(dot)com
> PostgreSQL version: 11.1
> Operating system: Centos7
> Description:
>
> I have a partition table that I created unlogged. I'm using pg_partman to
> manage the partition. I then proceeded to load data into it with a COPY
> command.
>
> Afterwards, I ran an alter table set logged on the parent table but the
> table still shows as UNLOGGED along with all its children.
>
> Is this broken?
It is somewhat. A workaround is to perform ALTER TABLE SET LOGGED
individually on each partition. Specifying LOGGED / UNLOGGED for the
parent table is useless as things stand now.
Are you sure by the way that the individual partitions are themselves
UNLOGGED when you created them? Partitions don't inherit the
logged-ness property from the parent table, so you must explicitly
create a partition using CREATE UNLOGGED TABLE ... PARTITION OF ... if
you want it to be unlogged.
Thanks,
Amit
From | Date | Subject | |
---|---|---|---|
Next Message | David Rowley | 2019-08-14 01:57:26 | Re: BUG #15954: Unable to alter partitioned table to set logged |
Previous Message | Keith | 2019-08-14 00:46:16 | Re: BUG #15947: Worse plan is chosen after giving the planner more freedom (partitionwise join) |