mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 17:06: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);
|
initPQExpBuffer(&query);
|
||||||
|
|
||||||
appendPQExpBuffer(&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 "
|
" FROM pg_catalog.pg_extension "
|
||||||
" WHERE extname = 'bdr' ");
|
" WHERE extname = 'bdr' ");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user