| From: | Steve Baldwin <steve(dot)baldwin(at)gmail(dot)com> |
|---|---|
| To: | Quentin de Metz <quentin(at)de(dot)me(dot)tz> |
| Cc: | pgsql-novice(at)lists(dot)postgresql(dot)org |
| Subject: | Re: pg_dump not properly dumping unlogged partitioned tables |
| Date: | 2026-07-26 20:53:12 |
| Message-ID: | CAKE1AiYJqzOz6GS57rmvRM1LqhWStKFxypG3ONUs98thrLAM+A@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-novice |
Not sure what this means but the v18 docs say that unlogged is not
supported for partitioned tables, so maybe this was true for v17 but not
documented.
On Mon, 27 Jul 2026 at 06:45, Quentin de Metz <quentin(at)de(dot)me(dot)tz> wrote:
> Hello,
>
> It seems as if pg_dump is not properly dumping the UNLOGGED flag on
> partitioned tables.
>
> Please find a reproduction script:
>
> $ createdb foobar
> $ psql postgresql://localhost:5432/foobar
> # SHOW server_version;
> server_version
> ---------------------------------
> 17.10 (Debian 17.10-1.pgdg12+1)
> # CREATE UNLOGGED TABLE zde (id bigint) PARTITION BY RANGE(id);
> [...]
> $ pg_dump --version
> pg_dump (PostgreSQL) 18.4
> $ pg_dump --no-data 'dbname=foobar'
> [...]
> CREATE TABLE public.zde (
> id bigint
> )
> PARTITION BY RANGE (id);
> [...]
>
> Kind regards,
> Quentin de Metz
>
>
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2026-07-27 03:24:31 | Re: pg_dump not properly dumping unlogged partitioned tables |
| Previous Message | Quentin de Metz | 2026-07-26 20:44:31 | pg_dump not properly dumping unlogged partitioned tables |