use drop lang to allow plpgsql exist in template1
authorMarko Kreen <markokr@gmail.com>
Mon, 15 Sep 2008 11:07:38 +0000 (11:07 +0000)
committerMarko Kreen <markokr@gmail.com>
Mon, 15 Sep 2008 11:07:38 +0000 (11:07 +0000)
expected/plproxy_encoding.out
sql/plproxy_encoding.sql
sql/plproxy_init.sql

index 4255a621ff1a7a269313b93eaf9329526f2426a4..c13a950ae5b73ea8116ccb1a7a1d10f2d74dedb0 100644 (file)
@@ -17,6 +17,7 @@ create database test_enc_part with encoding 'utf-8';
 -- initialize proxy db
 \c test_enc_proxy
 set client_encoding = 'utf-8';
+drop language if exists plpgsql;
 create language plpgsql;
 \i plproxy.sql
 -- handler function
@@ -46,6 +47,7 @@ create function test_encoding3(text) returns setof intl_data as $$
 $$ language plproxy;
 -- initialize part db
 \c test_enc_part
+drop language if exists plpgsql;
 create language plpgsql;
 set client_encoding = 'utf8';
 create table intl_data (id int4, "コラム" text);
@@ -122,6 +124,7 @@ create database test_enc_proxy with encoding 'utf-8';
 create database test_enc_part with encoding 'euc_jp';
 -- initialize proxy db
 \c test_enc_proxy
+drop language if exists plpgsql;
 create language plpgsql;
 \i plproxy.sql
 -- handler function
@@ -152,6 +155,7 @@ create function test_encoding3(text) returns setof intl_data as $$
 $$ language plproxy;
 -- initialize part db
 \c test_enc_part
+drop language if exists plpgsql;
 create language plpgsql;
 set client_encoding = 'utf8';
 create table intl_data (id int4, "コラム" text);
index 8453111debbaeb4639c2328d2e94d3123ece667a..0de4365f02e6295acafcd369cba20477421b2925 100644 (file)
@@ -23,6 +23,7 @@ create database test_enc_part with encoding 'utf-8';
 -- initialize proxy db
 \c test_enc_proxy
 set client_encoding = 'utf-8';
+drop language if exists plpgsql;
 create language plpgsql;
 \i plproxy.sql
 create schema plproxy;
@@ -48,6 +49,7 @@ create function test_encoding3(text) returns setof intl_data as $$
 $$ language plproxy;
 -- initialize part db
 \c test_enc_part
+drop language if exists plpgsql;
 create language plpgsql;
 set client_encoding = 'utf8';
 create table intl_data (id int4, "コラム" text);
@@ -88,6 +90,7 @@ create database test_enc_part with encoding 'euc_jp';
 
 -- initialize proxy db
 \c test_enc_proxy
+drop language if exists plpgsql;
 create language plpgsql;
 \i plproxy.sql
 set client_encoding = 'utf8';
@@ -115,6 +118,7 @@ $$ language plproxy;
 
 -- initialize part db
 \c test_enc_part
+drop language if exists plpgsql;
 create language plpgsql;
 set client_encoding = 'utf8';
 create table intl_data (id int4, "コラム" text);
index b1fa580bfa9426c9319fcf9b02651f930dcb4a4c..3b9fb53897eb735eb9ddcbb5118d29f585715919 100644 (file)
@@ -52,13 +52,18 @@ drop database if exists test_enc_proxy;
 drop database if exists test_enc_part;
 
 \c test_part
+drop language if exists plpgsql;
 create language plpgsql;
 \c test_part0
+drop language if exists plpgsql;
 create language plpgsql;
 \c test_part1
+drop language if exists plpgsql;
 create language plpgsql;
 \c test_part2
+drop language if exists plpgsql;
 create language plpgsql;
 \c test_part3
+drop language if exists plpgsql;
 create language plpgsql;