pg_dump not properly dumping unlogged partitioned tables

From: "Quentin de Metz" <quentin(at)de(dot)me(dot)tz>
To: pgsql-novice(at)lists(dot)postgresql(dot)org
Subject: pg_dump not properly dumping unlogged partitioned tables
Date: 2026-07-26 20:44:31
Message-ID: 75c60649-7361-47c0-a39a-1e5574fb161c@app.fastmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-novice

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

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Steve Baldwin 2026-07-26 20:53:12 Re: pg_dump not properly dumping unlogged partitioned tables
Previous Message Laurenz Albe 2026-07-21 12:16:01 Re: AW: pg_upgrade Error- Kindly help