From 7decc7975f9a3238bd3756635ab94afa375426f6 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Wed, 18 Jul 2018 10:54:16 +0900 Subject: [PATCH] Fix BDR version check repgexp_match() is only available from PostgreSQL 10 and later. --- dbutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbutils.c b/dbutils.c index fe4f43e1..8137f7fa 100644 --- a/dbutils.c +++ b/dbutils.c @@ -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' ");