Fix BDR version check

repgexp_match() is only available from PostgreSQL 10 and later.
This commit is contained in:
Ian Barwick
2018-07-18 10:54:16 +09:00
parent a5cfc244bc
commit 7decc7975f

View File

@@ -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' ");