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

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

Commit: 0eede9625659d47a9b3fb1292f71c8b16667326b
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2022-11-02T15:30:04Z
Releases: 15.1
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