aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/tablecmds.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-12-30 14:29:32 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2021-12-30 14:29:32 -0500
commitc7cf73eb7b9e7911748ebe117a7219f21e504121 (patch)
tree80d8d112379e1cc022480205469f8b0c187b88ef /src/backend/commands/tablecmds.c
parente68570e388f08c2e36ce7d2a9564941b89db6549 (diff)
downloadpostgresql-c7cf73eb7b9e7911748ebe117a7219f21e504121.tar.gz
postgresql-c7cf73eb7b9e7911748ebe117a7219f21e504121.zip
Minor cleanup/optimization in pg_dump.
In the wake of commits 05649b88c and 5209c0ba0, findComments() and findSecLabels() no longer use their "Archive *fout" arguments, so get rid of those. While doing that, I noticed that there's no very good reason why dumpCompositeTypeColComments() should be doing its own query to fetch the column names of the composite type, when the calling function has just fetched the same data. Tweak it to use that query result. This probably doesn't save a lot for most people, because since 5209c0ba0 we won't get into this code at all unless the composite type has at least one comment. Nonetheless, it's a wasted query.
Diffstat (limited to 'src/backend/commands/tablecmds.c')
0 files changed, 0 insertions, 0 deletions