pgschema icon indicating copy to clipboard operation
pgschema copied to clipboard

`UNLOGGED` is dropped from table definitions

Open ivgiuliani opened this issue 7 months ago • 0 comments

Given the following schema with an UNLOGGED table (docs):

CREATE UNLOGGED TABLE pgschema_unlogged_repro (
    id integer PRIMARY KEY,
    payload text NOT NULL
);

Running pgschema dump does not include the UNLOGGED modifier and returns an otherwise matching DDL:

CREATE TABLE IF NOT EXISTS pgschema_unlogged_repro (
    id integer,
    payload text NOT NULL,
    CONSTRAINT pgschema_unlogged_repro_pkey PRIMARY KEY (id)
);

ivgiuliani avatar Apr 29 '26 16:04 ivgiuliani