On Wed, Jul 23, 2025 at 5:04 PM Jim Jones <[email protected]> wrote: > v3 attached.
+ const char *hs = PQparameterStatus(pset.db, "in_hot_standby"); + const char *ro = PQparameterStatus(pset.db, "default_transaction_read_only"); When either hs or ro is NULL, the displayed status can be incorrect. For example, connecting to a standby server running PostgreSQL 10 incorrectly shows "read/write". In such cases, wouldn't it be clearer to display something like "unknown", similar to how the "Hot Standby" column in \conninfo reports "unknown"? Regards, -- Fujii Masao
