Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit910d776

Browse files
committed
Add 6 more OID typeds at portable plan
1 parentaa9d291 commit910d776

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

‎tests/regress

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# This script performs regress tests at a master and mirrored it into the slave.
4-
U=`whoami`
4+
U=regression
55
export LC_ALL=C
66
export LANGUAGE="en_US:en"
77

@@ -12,6 +12,7 @@ LD_LIBRARY_PATH=$PGINSTALL/lib
1212
remoteSrvName=fdwremote
1313
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH
1414
export PATH=$PGINSTALL/bin:$PATH
15+
export PGDATABASE=regression
1516

1617
pkill -9 postgres||true
1718
sleep 1
@@ -41,7 +42,7 @@ createdb -p 5433 $U
4142
createdb -p 5432$U
4243

4344
psql -p 5432 -c"CREATE EXTENSION postgres_fdw;"
44-
psql -p 5432 -c"CREATE SERVER$remoteSrvName FOREIGN DATA WRAPPER postgres_fdw OPTIONS (port '5433', use_remote_estimate 'on');"
45+
psql -p 5432 -c"CREATE SERVER$remoteSrvName FOREIGN DATA WRAPPER postgres_fdw OPTIONS (port '5433',dbname 'regression',use_remote_estimate 'on');"
4546
psql -p 5432 -c"CREATE USER MAPPING FOR PUBLIC SERVER$remoteSrvName;"
4647

4748
# Prepare plan execution
@@ -59,4 +60,4 @@ rm -rf $PGINSTALL/lib/regress.so
5960
cp`pwd`/src/test/regress/regress.so$PGINSTALL/lib
6061
cp`pwd`/src/test/regress/regress.so$PGINSTALL/lib/postgresql/
6162
cd src/test/regress
62-
./pg_regress --schedule=$SCRIPTS/serial_schedule --load-extension=postgres_fdw --load-extension=pg_execplan --load-extension=pg_repeater --dbname=andrey --use-existing
63+
./pg_regress --schedule=$SCRIPTS/serial_schedule --load-extension=postgres_fdw --load-extension=pg_execplan --load-extension=pg_repeater --dbname=regression --use-existing

‎tests/rpl.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,17 @@ psql -p 5433 -c "SELECT oid, oprname, oprnamespace FROM pg_operator WHERE oprnam
7878
# Test
7979
psql -p 5432 -c"SELECT pg_store_query_plan('../test.txt', 'SELECT id ### 1 FROM tests.ttest1;');"
8080
psql -p 5433 -c"SELECT pg_exec_stored_plan('../test.txt');"
81+
82+
#ENUMOID -----------------------------------------------------------------------
83+
psql -p 5432 -c"CREATE TYPE mood AS ENUM ('sad', 'ok', 'happy');"
84+
psql -p 5432 -c"CREATE TABLE person ( name text, current_mood mood);"
85+
psql -p 5433 -c"CREATE TYPE mood AS ENUM ('sad', 'ok', 'happy');"
86+
psql -p 5433 -c"CREATE TABLE person ( name text, current_mood mood);"
87+
88+
psql -p 5432 -c"SELECT pg_store_query_plan('../test.txt', 'INSERT INTO person VALUES (''Moe'', ''happy'');');"
89+
psql -p 5432 -c"SELECT pg_exec_stored_plan('../test.txt');"
90+
psql -p 5433 -c"SELECT pg_exec_stored_plan('../test.txt');"
91+
92+
psql -p 5432 -c"SELECT * FROM person WHERE current_mood = 'happy';"
93+
psql -p 5433 -c"SELECT * FROM person WHERE current_mood = 'happy';"
94+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp