pg_dump: fix failure to dump comments on constraints in some cases.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 26ee7fb3684e5809d663f74847fb405f5a84d1af
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2022-11-02T15:30:04Z
Releases: 16.0
pg_dump: fix failure to dump comments on constraints in some cases.

Thinko in commit 5209c0ba0: I checked the wrong object's
DUMP_COMPONENT_COMMENT bit in two places.

Per bug #17675 from Franz-Josef Färber.

Discussion: https://postgr.es/m/17675-c69c001e06390867@postgresql.org

Files

PathChange+/−
src/bin/pg_dump/pg_dump.c modified +2 −2
src/bin/pg_dump/t/002_pg_dump.pl modified +11 −4

Discussion