pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: franz-josef.faerber@stmuk.bayern.de
Subject: BUG #17675: pg_dump v15: Comments on constraints missing?
Date: Wed, 02 Nov 2022 08:40:40 +0000
Message-ID: <17675-c69c001e06390867@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      17675
Logged by:          Franz-Josef Färber
Email address:      franz-josef.faerber@stmuk.bayern.de
PostgreSQL version: 15.0
Operating system:   postgres 15 container
Description:        

Hello,

unfortunately pg_dump Version 15 does not dump comments on constraints.
I tested inside the postgres:15 docker container:

CREATE DOMAIN year AS integer CONSTRAINT year_check CHECK (((VALUE >= 1900)
AND (VALUE <= 2100)));                      
COMMENT ON CONSTRAINT year_check ON DOMAIN year IS $$year check$$;          
                                           

CREATE TABLE t(x int, CONSTRAINT t_check CHECK(x>0));
COMMENT ON CONSTRAINT t_check ON t IS $$t check$$;    

pg_dump v15 won’t include both comments (whereas v14 does).


Regards,
Franz-Josef Färber



view thread (2+ messages)  latest in thread

Message-ID: <17675-c69c001e06390867@postgresql.org>
Permalink:  ../17675-c69c001e06390867@postgresql.org/
Also on:    postgresql.org/message-id/17675-c69c001e06390867@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, franz-josef.faerber@stmuk.bayern.de
  Subject: Re: BUG #17675: pg_dump v15: Comments on constraints missing?
  In-Reply-To: <17675-c69c001e06390867@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox