]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix dumping of comments on invalid constraints on domains
authorÁlvaro Herrera <alvherre@kurilemu.de>
Wed, 16 Jul 2025 17:22:53 +0000 (19:22 +0200)
committerÁlvaro Herrera <alvherre@kurilemu.de>
Wed, 16 Jul 2025 17:22:53 +0000 (19:22 +0200)
commitd07bc7c2b3ca5454a036487f67870fa7fb73491c
treee65efda4280879eaea2cc82bd3f259208a8b5815
parentc0a392c9e0ded5928e2767ae82c56c4760f9d114
Fix dumping of comments on invalid constraints on domains

We skip dumping constraints together with domains if they are invalid
('separate') so that they appear after data -- but their comments were
dumped together with the domain definition, which in effect leads to the
comment being dumped when the constraint does not yet exist.  Delay
them in the same way.

Oversight in 7eca575d1c28; backpatch all the way back.

Author: jian he <jian.universality@gmail.com>
Discussion: https://postgr.es/m/CACJufxF_C2pe6J_+nPr6C5jf5rQnbYP8XOKr4HM8yHZtp2aQqQ@mail.gmail.com
src/bin/pg_dump/pg_dump.c
src/test/regress/expected/constraints.out
src/test/regress/sql/constraints.sql