mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
Fix BDR version check
repgexp_match() is only available from PostgreSQL 10 and later.
This commit is contained in:
@@ -4379,7 +4379,7 @@ _is_bdr_db(PGconn *conn, PQExpBufferData *output, bool quiet)
|
||||
initPQExpBuffer(&query);
|
||||
|
||||
appendPQExpBuffer(&query,
|
||||
" SELECT (pg_catalog.regexp_match(extversion, '^\\d+'))[1] AS major_version "
|
||||
" SELECT (pg_catalog.regexp_matches(extversion, '^\\d+'))[1] AS major_version "
|
||||
" FROM pg_catalog.pg_extension "
|
||||
" WHERE extname = 'bdr' ");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user