aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/ruleutils.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2016-08-03 13:21:23 -0400
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2016-08-03 13:21:23 -0400
commitb26f7fa6ae2b4e5d64525b3d5bc66a0ddccd9e24 (patch)
treee4f3cf68c85039fb4d6b039052242483d672bfe3 /src/backend/utils/adt/ruleutils.c
parent69bdfc4090816d77a3d08684a30bfb05f8b1e104 (diff)
downloadpostgresql-b26f7fa6ae2b4e5d64525b3d5bc66a0ddccd9e24.tar.gz
postgresql-b26f7fa6ae2b4e5d64525b3d5bc66a0ddccd9e24.zip
Fix assorted problems in recovery tests
In test 001_stream_rep we're using pg_stat_replication.write_location to determine catch-up status, but we care about xlog having been applied not just received, so change that to apply_location. In test 003_recovery_targets, we query the database for a recovery target specification and later for the xlog position supposedly corresponding to that recovery specification. If for whatever reason more WAL is written between the two queries, the recovery specification is earlier than the xlog position used by the query in the test harness, so we wait forever, leading to test failures. Deal with this by using a single query to extract both items. In 2a0f89cd717 we tried to deal with it by giving them more tests to run, but in hindsight that was obviously doomed to failure (no revert of that, though). Per hamster buildfarm failures. Author: Michaƫl Paquier
Diffstat (limited to 'src/backend/utils/adt/ruleutils.c')
0 files changed, 0 insertions, 0 deletions