Commit d5642235 authored by Christoph Berg's avatar Christoph Berg

tests: Recent PostgreSQL minors (11.2 and friends) disallow setting...

tests: Recent PostgreSQL minors (11.2 and friends) disallow setting client_min_messages higher than 'error', so suppressing errors that way does not work anymore. Instead, drop the "create language plpgsql" code as plpgsql is preinstalled by default since 9.1.
parent b72c70d7
Pipeline #36457 passed with stages
in 5 minutes and 25 seconds
postgresql-plproxy (2.8-3) UNRELEASED; urgency=medium
* tests: Recent PostgreSQL minors (11.2 and friends) disallow setting
client_min_messages higher than 'error', so suppressing errors that way
does not work anymore. Instead, drop the "create language plpgsql" code as
plpgsql is preinstalled by default since 9.1.
* Add debian/gitlab-ci.yml.
-- Christoph Berg <christoph.berg@credativ.de> Thu, 14 Feb 2019 16:40:11 +0100
......
--- a/test/expected/plproxy_encoding.out
+++ b/test/expected/plproxy_encoding.out
@@ -17,8 +17,6 @@ create database test_enc_part with encod
-- initialize proxy db
\c test_enc_proxy
set client_encoding = 'utf-8';
-set client_min_messages = 'fatal';
-create language plpgsql;
set client_min_messages = 'warning';
\set ECHO none
create schema plproxy;
@@ -43,8 +41,6 @@ create function test_encoding3(text) ret
$$ language plproxy;
-- initialize part db
\c test_enc_part
-set client_min_messages = 'fatal';
-create language plpgsql;
set client_min_messages = 'warning';
set client_encoding = 'utf8';
create table intl_data (id int4, "コラム" text);
@@ -122,8 +118,6 @@ create database test_enc_proxy with enco
create database test_enc_part with encoding 'euc_jp' template template0;
-- initialize proxy db
\c test_enc_proxy
-set client_min_messages = 'fatal';
-create language plpgsql;
set client_min_messages = 'warning';
\set ECHO none
set client_encoding = 'utf8';
@@ -149,8 +143,6 @@ create function test_encoding3(text) ret
$$ language plproxy;
-- initialize part db
\c test_enc_part
-set client_min_messages = 'fatal';
-create language plpgsql;
set client_min_messages = 'warning';
set client_encoding = 'utf8';
create table intl_data (id int4, "コラム" text);
--- a/test/sql/plproxy_encoding.sql
+++ b/test/sql/plproxy_encoding.sql
@@ -23,8 +23,6 @@ create database test_enc_part with encod
-- initialize proxy db
\c test_enc_proxy
set client_encoding = 'utf-8';
-set client_min_messages = 'fatal';
-create language plpgsql;
set client_min_messages = 'warning';
\set ECHO none
\i sql/plproxy.sql
@@ -52,8 +50,6 @@ create function test_encoding3(text) ret
$$ language plproxy;
-- initialize part db
\c test_enc_part
-set client_min_messages = 'fatal';
-create language plpgsql;
set client_min_messages = 'warning';
set client_encoding = 'utf8';
create table intl_data (id int4, "コラム" text);
@@ -94,8 +90,6 @@ create database test_enc_part with encod
-- initialize proxy db
\c test_enc_proxy
-set client_min_messages = 'fatal';
-create language plpgsql;
set client_min_messages = 'warning';
\set ECHO none
\i sql/plproxy.sql
@@ -125,8 +119,6 @@ $$ language plproxy;
-- initialize part db
\c test_enc_part
-set client_min_messages = 'fatal';
-create language plpgsql;
set client_min_messages = 'warning';
set client_encoding = 'utf8';
create table intl_data (id int4, "コラム" text);
--- a/test/sql/plproxy_init.sql
+++ b/test/sql/plproxy_init.sql
@@ -5,10 +5,6 @@ set client_min_messages = 'warning';
\i sql/plproxy.sql
-set client_min_messages = 'fatal';
-create language plpgsql;
-set client_min_messages = 'warning';
-
-- create cluster info functions
create schema plproxy;
create or replace function plproxy.get_cluster_version(cluster_name text)
@@ -64,19 +60,3 @@ create database test_part3;
drop database if exists test_enc_proxy;
drop database if exists test_enc_part;
-
-\c test_part
-set client_min_messages = 'fatal';
-create language plpgsql;
-\c test_part0
-set client_min_messages = 'fatal';
-create language plpgsql;
-\c test_part1
-set client_min_messages = 'fatal';
-create language plpgsql;
-\c test_part2
-set client_min_messages = 'fatal';
-create language plpgsql;
-\c test_part3
-set client_min_messages = 'fatal';
-create language plpgsql;
......@@ -2,3 +2,4 @@ localhost
11-foreign-server
extraversion
11-heap_attisnull
client-messages
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment