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.
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.
Dmitry Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel