postgresql/src/bin
Daniel Gustafsson e6fc3b70df 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 2023-11-06 13:16:22 +01:00
pg_amcheck Handle DROP DATABASE getting interrupted 2023-07-13 13:04:45 -07:00
pg_archivecleanup Translation updates 2023-05-08 14:29:57 +02: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:10:46 +02:00
pg_config Translation updates 2023-11-06 13:16:22 +01:00
pg_controldata Translation updates 2023-11-06 13:16:22 +01:00
pg_ctl pg_ctl: Disable autoruns for cmd.exe on Windows 2024-01-12 13:53:10 +09:00
pg_dump Fix query result leak during binary upgrade 2024-05-15 22:48:51 +02:00
pg_resetwal Translation updates 2023-11-06 13:16:22 +01:00
pg_rewind Translation updates 2024-05-06 12:10:46 +02:00
pg_test_fsync Translation updates 2023-05-08 14:29:57 +02:00
pg_test_timing Translation updates 2023-05-08 14:29:57 +02:00
pg_upgrade Translation updates 2024-02-05 14:47:58 +01:00
pg_verifybackup Translation updates 2023-11-06 13:16:22 +01:00
pg_waldump Translation updates 2024-02-05 14:47:58 +01: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 2022 2022-01-07 19:04:57 -05:00
psql Translation updates 2024-05-06 12:10:46 +02:00
scripts Translation updates 2024-05-06 12:10:46 +02:00
Makefile Update copyright for 2022 2022-01-07 19:04:57 -05:00