we just backed up the main server on a hot backup server. however, when we try to request a hot standby, we get the following error:
ERROR: cannot assign TransactionIds during recovery
I turned on verbose mode and see that an error occurs in varsup.c: 72
if (RecoveryInProgress())
elog(ERROR, "cannot assign TransactionIds during recovery");
it is strange if we use the psql client and issue several read requests, the first will fail, but all subsequent ones will succeed.
pipeline=
ERROR: cannot assign TransactionIds during recovery
pipeline=
pg_is_in_recovery
-------------------
t
(1 row)
using postgres 9.5.3
any ideas would be very grateful to him.
By the way: we added:
hot_standby = on
to pipelinedb.conf (which is equivalent to postgresql.conf)
and we added:
primary_slot_name = 'replicator_slot'
primary_conninfo = 'user=username host=ip_address port=5432'
recovery_target_timeline = 'latest'
to recovery.conf
source
share