diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2017-11-16 11:16:53 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2017-11-16 11:16:53 -0500 |
commit | 164d6338785b0b6c5a1ac30ee3e4b63bd77441ba (patch) | |
tree | 3b9339db9c417ec5bb5a317b416de54628e4469f /src/backend/tcop/postgres.c | |
parent | ed9b3606dadb461aac57e41ac509f3892095a394 (diff) | |
download | postgresql-164d6338785b0b6c5a1ac30ee3e4b63bd77441ba.tar.gz postgresql-164d6338785b0b6c5a1ac30ee3e4b63bd77441ba.zip |
Fix bogus logic for checking data dirs' versions within pg_upgrade.
Commit 9be95ef15 failed to cure all of the redundancy here: we were
actually calling get_major_server_version() three times for each
of the old and new data directories. While that's not enormously
expensive, it's still sloppy.
A. Akenteva
Discussion: https://postgr.es/m/f9266a85d918a3cf3a386b5148aee666@postgrespro.ru
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions