On 23-01-2021 10:43, Dmitry Yemanov wrote:
23.01.2021 12:31, Mark Rotteveel wrote:

Going over the Firebird 4 release notes, I was wondering if there is a isc_database_info / Attachment::getInfo() call to determine if a database is standalone (no replication), a primary, or a replica, and if a replica, what its replication mode (read-only/read-write) is.

Good point, should be added. And not only to info* but also to MON$DATABASE and perhaps as a SYSTEM namespace context variable.

Please create a ticket.

Done: http://tracker.firebirdsql.org/browse/CORE-6474

For standalone status, I would also be OK with considering standalone databases a primary.

I'd prefer only show the replica mode as it's reported by gstat - none / read-only / read-write. Thus none/NULL means primary or standalone.

That is fine with me.

Mark
--
Mark Rotteveel


Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to