Additional tests for subtransactions in recovery Tests for normal and prepared transactions Author: Nikhil Sontakke, placed in new test file by me Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/0352c15e5ab4f70c3ab2ac1d48d9f38a5dd11786 Modified Files -------------- src/test/recovery/t/009_twophase.pl | 39 +----- src/test/recovery/t/012_subtransactions.pl | 197 +++++++++++++++++++++++++++++ 2 files changed, 198 insertions(+), 38 deletions(-)
On Thu, Apr 27, 2017 at 9:28 PM, Simon Riggs <simon@2ndquadrant.com> wrote:
> Additional tests for subtransactions in recovery
>
> Tests for normal and prepared transactions
>
> Author: Nikhil Sontakke, placed in new test file by me
+$node_slave->promote;
+$node_slave->poll_query_until('postgres',
+ "SELECT NOT pg_is_in_recovery()")
+ or die "Timed out while waiting for promotion of standby";
This reminds me that we should really switch PostgresNode::promote to
use the wait mode of pg_ctl promote, and remove all those polling
queries...
--
Michael
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера