pg_dump: fix failure to dump comments on constraints in some cases.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 2 Nov 2022 15:30:04 +0000 (11:30 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 2 Nov 2022 15:30:04 +0000 (11:30 -0400)
commit26ee7fb3684e5809d663f74847fb405f5a84d1af
treeed7632208fc51525a78f814b87898719e3238da1
parentd54e79ba282c6a86d0c63e990e716b2c07a8656d
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
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/t/002_pg_dump.pl