Re: recovery_target_action=pause with confusing hint - Mailing list pgsql-hackers

From movead li
Subject Re: recovery_target_action=pause with confusing hint
Date
Msg-id 158564452423.791.15893021658342964840.pgcf@coridan.postgresql.org
Whole thread Raw
In response to Re: recovery_target_action=pause with confusing hint  (Fujii Masao <masao.fujii@oss.nttdata.com>)
Responses Re: recovery_target_action=pause with confusing hint  (Sergei Kornilov <sk@zsrv.org>)
List pgsql-hackers
Hello,

When I test the patch, I find an issue: I start a stream with 'promote_trigger_file'
GUC valid, and exec pg_wal_replay_pause() during recovery and as below it
shows success to pause at the first time. I think it use a initialize
'SharedPromoteIsTriggered' value first time I exec the pg_wal_replay_pause().

#####################################
postgres=# select pg_wal_replay_pause();
 pg_wal_replay_pause 
---------------------
 
(1 row)

postgres=# select pg_wal_replay_pause();
ERROR:  standby promotion is ongoing
HINT:  pg_wal_replay_pause() cannot be executed after promotion is triggered.
postgres=# select pg_wal_replay_pause();
ERROR:  recovery is not in progress
HINT:  Recovery control functions can only be executed during recovery.
postgres=#
##############################################################

The new status of this patch is: Waiting on Author

pgsql-hackers by date:

Previous
From: Artur Zakirov
Date:
Subject: Re: truncating timestamps on arbitrary intervals
Next
From: Julien Rouhaud
Date:
Subject: Re: WAL usage calculation patch