Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Pgwatch2 1.9.0 : msg "WARN main: Could not find PG version info for DB" with monitored replica standby databases  #520

@LudoAugereau

Description

@LudoAugereau

Hello.

We are using pgwatch2 1.8.5 and are currently evaluating the last version 1.9.0 of Pgwatch2 (v1.9.0#a0c546 (2022-04-25T14:35:52+02:00)) because we are very interested in the improvment of connexions pooling.

But we encountered a lot of errors "WARN main: Could not find PG version info for DB " when pgwatch2 connects on monitored databases that are replicas (e.G in recovery with ps_is_in_recovery()=true).

In the postgresql.log of PostgreSQL instance we see a lot of errors "user=pgwatch2,app=pgwatch2,client=****** ERROR: cannot set transaction read-write mode during recovery"**

So it seems like pgwatch2 1.9.0 doesn't take into account the fact that the monitored DB is in recovery mode (however this should be checked) and tries to open transactions in READ WRITE mode (rejected by the PostgreSQL DB instance of course).

Thanks a lot in advance for your help.

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions