From: | "Smith, Peter" <peters(at)fast(dot)au(dot)fujitsu(dot)com> |
---|---|
To: | Greg Nancarrow <gregn4422(at)gmail(dot)com> |
Cc: | David Steele <david(at)pgmasters(dot)net>, "Tsunakawa, Takayuki" <tsunakawa(dot)takay(at)fujitsu(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Haribabu Kommi <kommi(dot)haribabu(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Dave Cramer <pg(at)fastcrypt(dot)com>, Jing Wang <jingwangian(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Elvis Pranskevichus <elprans(at)gmail(dot)com> |
Subject: | RE: Libpq support to connect to standby server as priority |
Date: | 2020-08-11 07:46:39 |
Message-ID: | 9a795e59e0834b13bf8054107a491e57@G06AUEXCASMHB04.g06.fujitsu.local |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi Greg,
I was able to successfully execute all the tests of the v17-0001 patch.
But I do have a couple of additional review comments about the test code.
====
COMMENT - missing "any" tests
In my earlier code review (previous email) I suggested that "any" should be added as valid option to the target_server_type parameter.
But this now means there are some missing test cases for
target_server_type = "any"
====
COMMENT - negative tests?
IIUC when "standby" (aka "secondary") is specified, and there is no in_recovery server available, then the result should be an error like "could not make a readonly connection to server "
But I did not find any such error combination tests.
e.g. Where are these test cases?
target_session_attrs = "standby", when no standby is available
target_session_attrs = "secondary", when no standby is available
target_server_type = "standby", when no standby is available
target_server_type = "secondary", when no standby is available
--
And, similarly for "could not make a writable connection to server ".
e.g. Where are these test cases?
target_session_attrs = "primary", when no primary is available
target_session_attrs = "read-write", when no primary is available
target_server_type = "primary", when no primary is available
target_server_type = "read-write", when no primary is available
Kind Regards,
Peter Smith
---
Fujitsu Australia
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Borisov | 2020-08-11 08:11:59 | Re: [PATCH] Covering SPGiST index |
Previous Message | Ashutosh Sharma | 2020-08-11 07:38:48 | Re: recovering from "found xmin ... from before relfrozenxid ..." |