From: Tatsuo Ishii Date: Thu, 8 Nov 2018 05:37:18 +0000 (+0900) Subject: Fix a query passed to relcache so that it uses schema qualified table name. X-Git-Tag: V3_4_21~5 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=6d17384447fbe770ae853c979eb9b41360d3efcc;p=pgpool2.git Fix a query passed to relcache so that it uses schema qualified table name. This should have been done for all similar queries to follow PostgreSQL's schema usage pattern. However there was one missed at that time. --- diff --git a/src/utils/pool_select_walker.c b/src/utils/pool_select_walker.c index 30273a810..8ed75e8c0 100644 --- a/src/utils/pool_select_walker.c +++ b/src/utils/pool_select_walker.c @@ -557,7 +557,7 @@ static bool is_temp_table(char *table_name) * regclass (or its variant) here, because temporary tables never have * schema qualified name. */ -#define ISTEMPQUERY83 "SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.relname = '%s' AND c.relnamespace = n.oid AND n.nspname ~ '^pg_temp_'" +#define ISTEMPQUERY83 "SELECT count(*) FROM pg_catalog.pg_class AS c, pg_namespace AS n WHERE c.relname = '%s' AND c.relnamespace = n.oid AND n.nspname ~ '^pg_temp_'" /* * Query to know if the target table is a temporary one. This query