postgresql/src/bin
Daniel Gustafsson 0ae05c18e0 Fix query result leak during binary upgrade
9a974cbcba moved the query in binary_upgrade_set_pg_class_oids to the
outer level, but left the PQclear and query buffer destruction in the
is_index conditional.  353708e1fb fixed the leak of the query buffer
but left the PGresult leak. This moves clearing the result to the outer
level ensuring that it will be called.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/374550C1-F4ED-4D9D-9498-0FD029CCF674@yesql.se
Backpatch-through: v15
2024-05-15 22:48:51 +02:00
..
initdb Translation updates 2024-05-06 12:08:30 +02:00
pg_amcheck Translation updates 2023-11-06 13:10:09 +01:00
pg_archivecleanup Translation updates 2023-11-06 13:10:09 +01:00
pg_basebackup Skip .DS_Store files in server side utils 2024-02-13 13:47:12 +01:00
pg_checksums Translation updates 2024-05-06 12:08:30 +02:00
pg_config Translation updates 2024-02-05 14:45:29 +01:00
pg_controldata Translation updates 2023-11-06 13:10:09 +01:00
pg_ctl Translation updates 2024-02-05 14:45:29 +01:00
pg_dump Fix query result leak during binary upgrade 2024-05-15 22:48:51 +02:00
pg_resetwal Translation updates 2024-02-05 14:45:29 +01:00
pg_rewind Translation updates 2024-05-06 12:08:30 +02:00
pg_test_fsync Translation updates 2024-02-05 14:45:29 +01:00
pg_test_timing Translation updates 2024-02-05 14:45:29 +01:00
pg_upgrade Skip invalid database pg_upgrade test on obsolete servers 2024-05-01 11:50:05 +02:00
pg_verifybackup Translation updates 2024-02-05 14:45:29 +01:00
pg_waldump Translation updates 2024-05-06 12:08:30 +02:00
pgbench Abort pgbench if script end is reached with an open pipeline 2024-01-22 17:48:30 +01:00
pgevent Update copyright for 2023 2023-01-02 15:00:37 -05:00
psql Translation updates 2024-05-06 12:08:30 +02:00
scripts Translation updates 2024-05-06 12:08:30 +02:00
Makefile Update copyright for 2023 2023-01-02 15:00:37 -05:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00