提交 d6409042 编写于 作者: D Daniel Gustafsson

Remove bkuprestore test

The bkuprestore test was imported along with the source code during the
initial open sourcing, but has never been used and hasn't worked in a
long time. Rather than trying to save this broken mess, let's remove it
and start fresh with a pg_dump TAP test which is a much better way to
test backup/restore.
Reviewed-by: NHeikki Linnakangas <hlinnakangas@pivotal.io>
Reviewed-by: NJimmy Yih <jyih@pivotal.io>
上级 6d61b3fe
......@@ -209,9 +209,6 @@ bigtest: all tablespace-setup
bigcheck: all tablespace-setup
$(pg_regress_check) $(REGRESS_OPTS) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) numeric_big
bkuprestore: all
$(pg_regress_call) --psqldir=$(PSQLDIR) --schedule=$(srcdir)/bkuprestore_schedule
##
## Clean up
##
......
# This is a brief schedule to test backup and restore
test: create_bkupdb
test: bkup_bkupdb
test: restore_restoredb
test: restore_check
test: bkuprestore_advance
test: bkuprestore_advance_check
test: bkuprestore_cleanup
-- start_ignore
--
-- Greenplum DB backup test
--
-- Check database version and pg_dump
select version();
version
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PostgreSQL 8.2.4 (Greenplum Database cvs Head build dev build ) on i386-apple-darwin8.9.1, compiled by GCC i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367) compiled on Jun 17 2007 10:44:13 (with assert checking)
(1 row)
\! pg_dump --version
pg_dump (PostgreSQL) 8.2.4
\echo Test pg_dump
Test pg_dump
\! rm -fr /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype
\! mkdir /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype
\! pg_dump -Fc -f /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/regressbkuptest1_fc regressbkuptest1
\! pg_dump -Fp -f /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/regressbkuptest1_fp regressbkuptest1
\! pg_dump -Ft -f /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/regressbkuptest1_ft regressbkuptest1
\! pg_dump -Fc -Z5 -f /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/regressbkuptest1_fc_Z regressbkuptest1
\! pg_dump -Fc -a -f /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/regressbkuptest1_fc_data regressbkuptest1
\! pg_dump -Fc -s -f /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/regressbkuptest1_fc_schema regressbkuptest1
\! pg_dump -Fc -b -f /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/regressbkuptest1_fc_blobs regressbkuptest1
\! pg_dump -Fc -C -f /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/regressbkuptest1_fc_create regressbkuptest1
-- NOT YET SUPPORTED
-- \! pg_dump -Fc -D -f /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/regressbkuptest1_fc_ins regressbkuptest1
\! pg_dump -Fc -E Unicode -f /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/regressbkuptest1_fc_enc regressbkuptest1
\! pg_dump -Fc -n s6 -f /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/regressbkuptest1_fc_s6 regressbkuptest1
\! pg_dump -Fc -N s6 -f /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/regressbkuptest1_fc_nos6 regressbkuptest1
\! pg_dump -Fc -t t1 -f /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/regressbkuptest1_fc_t1 regressbkuptest1
\! pg_dump -Fc -T t1 -f /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/regressbkuptest1_fc_not1 regressbkuptest1
\! pg_dump -Fc -o -f /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/regressbkuptest1_fc_oid regressbkuptest1
\! pg_dump -Fc -O -f /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/regressbkuptest1_fc_noowner regressbkuptest1
\! pg_dump -Fc -x -f /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/regressbkuptest1_fc_nopriv regressbkuptest1
\! pg_dump -Fc --disable-dollar-quoting -f /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/regressbkuptest1_fc_sqlquote regressbkuptest1
\! pg_dump -Fc --gp-syntax -f /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/regressbkuptest1_fc_gpsyntax regressbkuptest1
-- end_ignore
-- test pg_dumpall. Use diff to check
\! pg_dumpall -g -r | sed s/`whoami`/__USER_LOGIN__/g
BugBug: Jira 1606.
pg_dumpall: query failed: ERROR: syntax error at or near "("
LINE 1: ...shobj_description(oid, 'pg_authid') as rolcomment (SELECT rs...
^
pg_dumpall: query was: SELECT rolname, rolsuper, rolinherit, rolcreaterole, rolcreatedb, rolcatupdate, rolcanlogin, rolconnlimit, rolpassword, rolvaliduntil, pg_catalog.shobj_description(oid, 'pg_authid') as rolcomment (SELECT rsqname FROM pg_resqueue WHERE pg_resqueue.oid = rolresqueue) AS rolqueuename FROM pg_authid ORDER BY 1
--
-- Greenplum Database cluster dump
--
\connect postgres
SET client_encoding = 'SQL_ASCII';
SET standard_conforming_strings = off;
SET escape_string_warning = 'off';
\! pg_dumpall -D | sed s/`whoami`/__USER_LOGIN__/g
--
-- Greenplum Database cluster dump
--
\connect postgres
SET client_encoding = 'SQL_ASCII';
SET standard_conforming_strings = off;
SET escape_string_warning = 'off';
--
-- Roles
--
CREATE ROLE __USER_LOGIN__;
ALTER ROLE __USER_LOGIN__ WITH SUPERUSER INHERIT CREATEROLE CREATEDB LOGIN PASSWORD 'md5eace0363bf527b339f60afbcb5b3b018';
CREATE ROLE luser;
ALTER ROLE luser WITH NOSUPERUSER INHERIT NOCREATEROLE NOCREATEDB NOLOGIN;
--
-- Database creation
--
CREATE DATABASE regressbkuptest1 WITH TEMPLATE = template0 OWNER = __USER_LOGIN__ ENCODING = 'UTF8';
CREATE DATABASE regression WITH TEMPLATE = template0 OWNER = __USER_LOGIN__ ENCODING = 'SQL_ASCII';
ALTER DATABASE regression SET lc_messages TO 'C';
ALTER DATABASE regression SET lc_monetary TO 'C';
ALTER DATABASE regression SET lc_numeric TO 'C';
ALTER DATABASE regression SET lc_time TO 'C';
ALTER DATABASE regression SET timezone_abbreviations TO 'Default';
CREATE DATABASE regressrestoretestadv3 WITH TEMPLATE = template0 OWNER = __USER_LOGIN__ ENCODING = 'UTF8';
REVOKE ALL ON DATABASE template1 FROM PUBLIC;
REVOKE ALL ON DATABASE template1 FROM __USER_LOGIN__;
GRANT ALL ON DATABASE template1 TO __USER_LOGIN__;
GRANT CONNECT ON DATABASE template1 TO PUBLIC;
\connect postgres
--
-- Greenplum Database database dump
--
SET client_encoding = 'SQL_ASCII';
SET standard_conforming_strings = off;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET escape_string_warning = off;
--
-- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: __USER_LOGIN__
--
COMMENT ON SCHEMA public IS 'Standard public schema';
--
-- Name: public; Type: ACL; Schema: -; Owner: __USER_LOGIN__
--
REVOKE ALL ON SCHEMA public FROM PUBLIC;
REVOKE ALL ON SCHEMA public FROM __USER_LOGIN__;
GRANT ALL ON SCHEMA public TO __USER_LOGIN__;
GRANT ALL ON SCHEMA public TO PUBLIC;
--
-- Greenplum Database database dump complete
--
\connect regressbkuptest1
--
-- Greenplum Database database dump
--
SET client_encoding = 'SQL_ASCII';
SET standard_conforming_strings = off;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET escape_string_warning = off;
--
-- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: __USER_LOGIN__
--
COMMENT ON SCHEMA public IS 'Standard public schema';
--
-- Name: s6; Type: SCHEMA; Schema: -; Owner: __USER_LOGIN__
--
CREATE SCHEMA s6;
ALTER SCHEMA s6 OWNER TO __USER_LOGIN__;
SET search_path = public, pg_catalog;
--
-- Name: complex; Type: TYPE; Schema: public; Owner: __USER_LOGIN__
--
CREATE TYPE complex AS (
r real,
i real
);
ALTER TYPE public.complex OWNER TO __USER_LOGIN__;
--
-- Name: comptype; Type: TYPE; Schema: public; Owner: __USER_LOGIN__
--
CREATE TYPE comptype AS (
name text,
price numeric
);
ALTER TYPE public.comptype OWNER TO __USER_LOGIN__;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: t1; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE t1 (
i integer,
si smallint,
bi bigint,
de numeric,
n numeric,
n103 numeric(10,3),
r real,
dou double precision
);
ALTER TABLE public.t1 OWNER TO __USER_LOGIN__;
--
-- Name: t10; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE t10 (
j integer
);
ALTER TABLE public.t10 OWNER TO __USER_LOGIN__;
--
-- Name: t2; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE t2 (
i integer,
s integer NOT NULL,
bs bigint NOT NULL
);
ALTER TABLE public.t2 OWNER TO __USER_LOGIN__;
--
-- Name: t2_bs_seq; Type: SEQUENCE; Schema: public; Owner: __USER_LOGIN__
--
CREATE SEQUENCE t2_bs_seq
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
CACHE 1;
ALTER TABLE public.t2_bs_seq OWNER TO __USER_LOGIN__;
--
-- Name: t2_bs_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: __USER_LOGIN__
--
ALTER SEQUENCE t2_bs_seq OWNED BY t2.bs;
--
-- Name: t2_bs_seq; Type: SEQUENCE SET; Schema: public; Owner: __USER_LOGIN__
--
SELECT pg_catalog.setval('t2_bs_seq', 4, true);
--
-- Name: t2_s_seq; Type: SEQUENCE; Schema: public; Owner: __USER_LOGIN__
--
CREATE SEQUENCE t2_s_seq
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
CACHE 1;
ALTER TABLE public.t2_s_seq OWNER TO __USER_LOGIN__;
--
-- Name: t2_s_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: __USER_LOGIN__
--
ALTER SEQUENCE t2_s_seq OWNED BY t2.s;
--
-- Name: t2_s_seq; Type: SEQUENCE SET; Schema: public; Owner: __USER_LOGIN__
--
SELECT pg_catalog.setval('t2_s_seq', 4, true);
--
-- Name: t3; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE t3 (
m money,
c character(10),
vc character varying(10),
t text,
ba bytea
);
ALTER TABLE public.t3 OWNER TO __USER_LOGIN__;
--
-- Name: t4; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE t4 (
t timestamp without time zone,
t2 timestamp(2) without time zone,
tz timestamp with time zone,
tz3 timestamp(3) with time zone,
i interval,
d date,
ti time without time zone,
ti4 time(4) without time zone,
tiz time with time zone,
tiz5 time(5) with time zone
);
ALTER TABLE public.t4 OWNER TO __USER_LOGIN__;
--
-- Name: t5; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE t5 (
b boolean,
pt point,
ls lseg,
p path,
bo box,
po polygon,
c circle
);
ALTER TABLE public.t5 OWNER TO __USER_LOGIN__;
--
-- Name: t7; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE t7 (
b bit(3),
bv bit varying(5),
ia integer[],
ta text[]
);
ALTER TABLE public.t7 OWNER TO __USER_LOGIN__;
--
-- Name: t8; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE t8 (
i integer,
c complex,
ct comptype
);
ALTER TABLE public.t8 OWNER TO __USER_LOGIN__;
SET default_with_oids = true;
--
-- Name: t9; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE t9 (
i integer
);
ALTER TABLE public.t9 OWNER TO __USER_LOGIN__;
SET search_path = s6, pg_catalog;
SET default_with_oids = false;
--
-- Name: t6; Type: TABLE; Schema: s6; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE t6 (
c cidr,
i inet,
m macaddr
);
ALTER TABLE s6.t6 OWNER TO __USER_LOGIN__;
SET search_path = public, pg_catalog;
--
-- Name: s; Type: DEFAULT; Schema: public; Owner: __USER_LOGIN__
--
ALTER TABLE t2 ALTER COLUMN s SET DEFAULT nextval('t2_s_seq'::regclass);
--
-- Name: bs; Type: DEFAULT; Schema: public; Owner: __USER_LOGIN__
--
ALTER TABLE t2 ALTER COLUMN bs SET DEFAULT nextval('t2_bs_seq'::regclass);
--
-- Data for Name: t1; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
INSERT INTO t1 (i, si, bi, de, n, n103, r, dou) VALUES (1, 2, 3, 3.14, 3.1415, 3.142, 2.71, 2.71828);
INSERT INTO t1 (i, si, bi, de, n, n103, r, dou) VALUES (NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO t1 (i, si, bi, de, n, n103, r, dou) VALUES (2, 2, 2, 2.0, 2.0, 2.000, 'Infinity', 'NaN');
INSERT INTO t1 (i, si, bi, de, n, n103, r, dou) VALUES (-3, -2, -1, 1.4, 1.41, 1.414, 'NaN', '-Infinity');
--
-- Data for Name: t10; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
INSERT INTO t10 (j) VALUES (3);
INSERT INTO t10 (j) VALUES (NULL);
INSERT INTO t10 (j) VALUES (4);
--
-- Data for Name: t2; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
INSERT INTO t2 (i, s, bs) VALUES (1, 1, 1);
INSERT INTO t2 (i, s, bs) VALUES (3, 3, 3);
INSERT INTO t2 (i, s, bs) VALUES (1, 1, 1);
INSERT INTO t2 (i, s, bs) VALUES (2, 2, 2);
INSERT INTO t2 (i, s, bs) VALUES (4, 4, 4);
INSERT INTO t2 (i, s, bs) VALUES (4, 4, 4);
--
-- Data for Name: t3; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
INSERT INTO t3 (m, c, vc, t, ba) VALUES ('$10.20', 'Simple ', 'Simple VC', 'Text column', 'string as ba');
INSERT INTO t3 (m, c, vc, t, ba) VALUES ('$10.00', 'It''s OK ', 'It''s OK', 'It''s still OK', 'It''s binary OK');
INSERT INTO t3 (m, c, vc, t, ba) VALUES ('$100.00', '
v\\ ', '
v\\', '
v\\', '\\011\\015\\012v');
INSERT INTO t3 (m, c, vc, t, ba) VALUES ('$100.00', ' ', '', '', '');
INSERT INTO t3 (m, c, vc, t, ba) VALUES (NULL, NULL, NULL, NULL, NULL);
INSERT INTO t3 (m, c, vc, t, ba) VALUES ('-$3.00', '1234567890', '1234567890', 'Too long to test filling', '\\001\\000\\000\\002\\\\');
--
-- Data for Name: t4; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
INSERT INTO t4 (t, t2, tz, tz3, i, d, ti, ti4, tiz, tiz5) VALUES ('1970-01-01 00:00:00', 'infinity', 'infinity', '-infinity', '00:00:00', '1970-01-01', '00:00:00', '00:00:00', '00:00:00+00', '00:00:00+00');
INSERT INTO t4 (t, t2, tz, tz3, i, d, ti, ti4, tiz, tiz5) VALUES (NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO t4 (t, t2, tz, tz3, i, d, ti, ti4, tiz, tiz5) VALUES ('1999-01-08 04:05:06', '1999-01-08 04:05:06.23', '1999-01-07 18:05:06-08', '1999-01-08 04:05:06.23-08', '1 day 12:34:56', '1999-01-08', '04:05:06', '00:00:00', '00:01:02-08', '00:01:00-02');
--
-- Data for Name: t5; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
INSERT INTO t5 (b, pt, ls, p, bo, po, c) VALUES (true, '(1,2)', '[(1,2),(0,0)]', '((1,1),(2,2),(3,3))', '(2,2),(1,1)', '((1,0),(1,1),(2,2))', '<(0,1),4>');
INSERT INTO t5 (b, pt, ls, p, bo, po, c) VALUES (NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO t5 (b, pt, ls, p, bo, po, c) VALUES (false, '(1,2)', '[(1,2),(0,0)]', '((1,1),(2,2),(3,3),(4,4))', '(2,2),(1,1)', '((1,0),(1,1),(2,2))', '<(0,2),43>');
--
-- Data for Name: t7; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
INSERT INTO t7 (b, bv, ia, ta) VALUES (NULL, NULL, NULL, NULL);
INSERT INTO t7 (b, bv, ia, ta) VALUES (B'101', B'00101', '{1,2,3}', '{{Hello,world},{from,Mars}}');
INSERT INTO t7 (b, bv, ia, ta) VALUES (B'000', B'00', '{4,5}', '{{"",""},{"",""}}');
INSERT INTO t7 (b, bv, ia, ta) VALUES (B'111', B'', '{}', '{{1,2},{3,4},{5,6}}');
--
-- Data for Name: t8; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
INSERT INTO t8 (i, c, ct) VALUES (1, '(1,2)', '(Hello,8.3)');
INSERT INTO t8 (i, c, ct) VALUES (1, '(0,0)', '("",)');
INSERT INTO t8 (i, c, ct) VALUES (NULL, NULL, NULL);
INSERT INTO t8 (i, c, ct) VALUES (2, '(,-1)', '(,)');
--
-- Data for Name: t9; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
INSERT INTO t9 (i) VALUES (1);
INSERT INTO t9 (i) VALUES (NULL);
INSERT INTO t9 (i) VALUES (2);
SET search_path = s6, pg_catalog;
--
-- Data for Name: t6; Type: TABLE DATA; Schema: s6; Owner: __USER_LOGIN__
--
INSERT INTO t6 (c, i, m) VALUES (NULL, NULL, NULL);
INSERT INTO t6 (c, i, m) VALUES ('127.0.0.1/32', '2001:4f8:3:ba::/64', '08:02:0b:02:ac:e3');
--
-- Name: public; Type: ACL; Schema: -; Owner: __USER_LOGIN__
--
REVOKE ALL ON SCHEMA public FROM PUBLIC;
REVOKE ALL ON SCHEMA public FROM __USER_LOGIN__;
GRANT ALL ON SCHEMA public TO __USER_LOGIN__;
GRANT ALL ON SCHEMA public TO PUBLIC;
--
-- Greenplum Database database dump complete
--
\connect regression
--
-- Greenplum Database database dump
--
SET client_encoding = 'SQL_ASCII';
SET standard_conforming_strings = off;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET escape_string_warning = off;
--
-- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: __USER_LOGIN__
--
COMMENT ON SCHEMA public IS 'Standard public schema';
--
-- Name: plpgsql; Type: PROCEDURAL LANGUAGE; Schema: -; Owner: __USER_LOGIN__
--
CREATE PROCEDURAL LANGUAGE plpgsql;
--
-- Name: public; Type: ACL; Schema: -; Owner: __USER_LOGIN__
--
REVOKE ALL ON SCHEMA public FROM PUBLIC;
REVOKE ALL ON SCHEMA public FROM __USER_LOGIN__;
GRANT ALL ON SCHEMA public TO __USER_LOGIN__;
GRANT ALL ON SCHEMA public TO PUBLIC;
--
-- Greenplum Database database dump complete
--
\connect regressrestoretestadv3
--
-- Greenplum Database database dump
--
SET client_encoding = 'SQL_ASCII';
SET standard_conforming_strings = off;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET escape_string_warning = off;
--
-- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: __USER_LOGIN__
--
COMMENT ON SCHEMA public IS 'Standard public schema';
--
-- Name: plpgsql; Type: PROCEDURAL LANGUAGE; Schema: -; Owner: __USER_LOGIN__
--
CREATE PROCEDURAL LANGUAGE plpgsql;
SET search_path = public, pg_catalog;
--
-- Name: us_postal_code; Type: DOMAIN; Schema: public; Owner: __USER_LOGIN__
--
CREATE DOMAIN us_postal_code AS text
CONSTRAINT us_postal_code_check CHECK (((VALUE ~ '^\\d{5}$'::text) OR (VALUE ~ '^\\d{5}-\\d{4}$'::text)));
ALTER DOMAIN public.us_postal_code OWNER TO __USER_LOGIN__;
--
-- Name: c3tobit(character); Type: FUNCTION; Schema: public; Owner: __USER_LOGIN__
--
CREATE FUNCTION c3tobit(s character) RETURNS bit
AS $$ select '101'::bit(3); $$
LANGUAGE sql IMMUTABLE STRICT;
ALTER FUNCTION public.c3tobit(s character) OWNER TO __USER_LOGIN__;
--
-- Name: incr(integer); Type: FUNCTION; Schema: public; Owner: __USER_LOGIN__
--
CREATE FUNCTION incr(i integer) RETURNS integer
AS $$
BEGIN
return i + 1;
END
$$
LANGUAGE plpgsql;
ALTER FUNCTION public.incr(i integer) OWNER TO __USER_LOGIN__;
--
-- Name: trigf(); Type: FUNCTION; Schema: public; Owner: __USER_LOGIN__
--
CREATE FUNCTION trigf() RETURNS "trigger"
AS $$
BEGIN
insert into trig1 values (1, 1);
END
$$
LANGUAGE plpgsql;
ALTER FUNCTION public.trigf() OWNER TO __USER_LOGIN__;
SET search_path = pg_catalog;
--
-- Name: CAST (character AS bit); Type: CAST; Schema: pg_catalog; Owner:
--
CREATE CAST (character AS bit) WITH FUNCTION public.c3tobit(character);
SET search_path = public, pg_catalog;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: idxt; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE idxt (
i integer,
j integer
);
ALTER TABLE public.idxt OWNER TO __USER_LOGIN__;
SET default_with_oids = true;
--
-- Name: oidt; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE oidt (
i integer,
j integer
);
ALTER TABLE public.oidt OWNER TO __USER_LOGIN__;
SET default_with_oids = false;
--
-- Name: rt; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE rt (
i integer,
j integer
);
ALTER TABLE public.rt OWNER TO __USER_LOGIN__;
--
-- Name: seq; Type: SEQUENCE; Schema: public; Owner: __USER_LOGIN__
--
CREATE SEQUENCE seq
INCREMENT BY 10
NO MAXVALUE
MINVALUE 100
CACHE 10;
ALTER TABLE public.seq OWNER TO __USER_LOGIN__;
--
-- Name: seq; Type: SEQUENCE SET; Schema: public; Owner: __USER_LOGIN__
--
SELECT pg_catalog.setval('seq', 190, true);
--
-- Name: t1; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE t1 (
i integer NOT NULL,
j integer NOT NULL,
k integer,
CONSTRAINT t1_check CHECK ((j >= i))
);
ALTER TABLE public.t1 OWNER TO __USER_LOGIN__;
--
-- Name: trig1; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE trig1 (
i integer,
j integer
);
ALTER TABLE public.trig1 OWNER TO __USER_LOGIN__;
--
-- Name: tt1; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE tt1 (
i integer,
j integer,
upc us_postal_code
);
ALTER TABLE public.tt1 OWNER TO __USER_LOGIN__;
--
-- Name: tt2; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE tt2 (
state character(2)
)
INHERITS (tt1);
ALTER TABLE public.tt2 OWNER TO __USER_LOGIN__;
--
-- Name: v1; Type: VIEW; Schema: public; Owner: __USER_LOGIN__
--
CREATE VIEW v1 AS
SELECT t1.i, t1.j, t1.k FROM t1 WHERE (t1.i = t1.j);
ALTER TABLE public.v1 OWNER TO __USER_LOGIN__;
--
-- Data for Name: idxt; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
--
-- Data for Name: oidt; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
INSERT INTO oidt (i, j) VALUES (1, 2);
INSERT INTO oidt (i, j) VALUES (3, 4);
--
-- Data for Name: rt; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
INSERT INTO rt (i, j) VALUES (1, 1);
--
-- Data for Name: t1; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
INSERT INTO t1 (i, j, k) VALUES (1, 1, 1);
INSERT INTO t1 (i, j, k) VALUES (3, 4, NULL);
INSERT INTO t1 (i, j, k) VALUES (2, 2, 2);
--
-- Data for Name: trig1; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
INSERT INTO trig1 (i, j) VALUES (1, 1);
INSERT INTO trig1 (i, j) VALUES (2, 2);
--
-- Data for Name: tt1; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
INSERT INTO tt1 (i, j, upc) VALUES (1, 1, '53706');
INSERT INTO tt1 (i, j, upc) VALUES (3, 1, '55555-4444');
INSERT INTO tt1 (i, j, upc) VALUES (2, 1, '90210');
--
-- Data for Name: tt2; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
INSERT INTO tt2 (i, j, upc, state) VALUES (4, 4, '94041', 'CA');
--
-- Name: t1_pkey; Type: CONSTRAINT; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
ALTER TABLE ONLY t1
ADD CONSTRAINT t1_pkey PRIMARY KEY (i);
--
-- Name: idxt1; Type: INDEX; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE INDEX idxt1 ON idxt USING btree (i);
--
-- Name: idxt2; Type: INDEX; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE UNIQUE INDEX idxt2 ON idxt USING btree (j);
--
-- Name: insrt; Type: RULE; Schema: public; Owner: __USER_LOGIN__
--
CREATE RULE insrt AS ON INSERT TO rt DO INSTEAD UPDATE rt SET j = (rt.i + rt.j);
--
-- Name: nodelrt; Type: RULE; Schema: public; Owner: __USER_LOGIN__
--
CREATE RULE nodelrt AS ON DELETE TO rt DO INSTEAD NOTHING;
--
-- Name: trig; Type: TRIGGER; Schema: public; Owner: __USER_LOGIN__
--
CREATE TRIGGER trig
AFTER DELETE ON trig1
FOR EACH ROW
EXECUTE PROCEDURE trigf();
--
-- Name: public; Type: ACL; Schema: -; Owner: __USER_LOGIN__
--
REVOKE ALL ON SCHEMA public FROM PUBLIC;
REVOKE ALL ON SCHEMA public FROM __USER_LOGIN__;
GRANT ALL ON SCHEMA public TO __USER_LOGIN__;
GRANT ALL ON SCHEMA public TO PUBLIC;
--
-- Greenplum Database database dump complete
--
\connect template1
--
-- Greenplum Database database dump
--
SET client_encoding = 'SQL_ASCII';
SET standard_conforming_strings = off;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET escape_string_warning = off;
--
-- Name: template1; Type: COMMENT; Schema: -; Owner: __USER_LOGIN__
--
COMMENT ON DATABASE template1 IS 'Default template database';
--
-- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: __USER_LOGIN__
--
COMMENT ON SCHEMA public IS 'Standard public schema';
--
-- Name: public; Type: ACL; Schema: -; Owner: __USER_LOGIN__
--
REVOKE ALL ON SCHEMA public FROM PUBLIC;
REVOKE ALL ON SCHEMA public FROM __USER_LOGIN__;
GRANT ALL ON SCHEMA public TO __USER_LOGIN__;
GRANT ALL ON SCHEMA public TO PUBLIC;
--
-- Greenplum Database database dump complete
--
--
-- Greenplum Database cluster dump complete
--
\! pg_dumpall --gp-syntax | sed s/`whoami`/__USER_LOGIN__/g
--
-- Greenplum Database cluster dump
--
\connect postgres
SET client_encoding = 'SQL_ASCII';
SET standard_conforming_strings = off;
SET escape_string_warning = 'off';
--
-- Roles
--
CREATE ROLE __USER_LOGIN__;
ALTER ROLE __USER_LOGIN__ WITH SUPERUSER INHERIT CREATEROLE CREATEDB LOGIN PASSWORD 'md5eace0363bf527b339f60afbcb5b3b018';
CREATE ROLE luser;
ALTER ROLE luser WITH NOSUPERUSER INHERIT NOCREATEROLE NOCREATEDB NOLOGIN;
--
-- Database creation
--
CREATE DATABASE regressbkuptest1 WITH TEMPLATE = template0 OWNER = __USER_LOGIN__ ENCODING = 'UTF8';
CREATE DATABASE regression WITH TEMPLATE = template0 OWNER = __USER_LOGIN__ ENCODING = 'SQL_ASCII';
ALTER DATABASE regression SET lc_messages TO 'C';
ALTER DATABASE regression SET lc_monetary TO 'C';
ALTER DATABASE regression SET lc_numeric TO 'C';
ALTER DATABASE regression SET lc_time TO 'C';
ALTER DATABASE regression SET timezone_abbreviations TO 'Default';
CREATE DATABASE regressrestoretestadv3 WITH TEMPLATE = template0 OWNER = __USER_LOGIN__ ENCODING = 'UTF8';
REVOKE ALL ON DATABASE template1 FROM PUBLIC;
REVOKE ALL ON DATABASE template1 FROM __USER_LOGIN__;
GRANT ALL ON DATABASE template1 TO __USER_LOGIN__;
GRANT CONNECT ON DATABASE template1 TO PUBLIC;
\connect postgres
--
-- Greenplum Database database dump
--
SET client_encoding = 'SQL_ASCII';
SET standard_conforming_strings = off;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET escape_string_warning = off;
--
-- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: __USER_LOGIN__
--
COMMENT ON SCHEMA public IS 'Standard public schema';
--
-- Name: public; Type: ACL; Schema: -; Owner: __USER_LOGIN__
--
REVOKE ALL ON SCHEMA public FROM PUBLIC;
REVOKE ALL ON SCHEMA public FROM __USER_LOGIN__;
GRANT ALL ON SCHEMA public TO __USER_LOGIN__;
GRANT ALL ON SCHEMA public TO PUBLIC;
--
-- Greenplum Database database dump complete
--
\connect regressbkuptest1
--
-- Greenplum Database database dump
--
SET client_encoding = 'SQL_ASCII';
SET standard_conforming_strings = off;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET escape_string_warning = off;
--
-- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: __USER_LOGIN__
--
COMMENT ON SCHEMA public IS 'Standard public schema';
--
-- Name: s6; Type: SCHEMA; Schema: -; Owner: __USER_LOGIN__
--
CREATE SCHEMA s6;
ALTER SCHEMA s6 OWNER TO __USER_LOGIN__;
SET search_path = public, pg_catalog;
--
-- Name: complex; Type: TYPE; Schema: public; Owner: __USER_LOGIN__
--
CREATE TYPE complex AS (
r real,
i real
);
ALTER TYPE public.complex OWNER TO __USER_LOGIN__;
--
-- Name: comptype; Type: TYPE; Schema: public; Owner: __USER_LOGIN__
--
CREATE TYPE comptype AS (
name text,
price numeric
);
ALTER TYPE public.comptype OWNER TO __USER_LOGIN__;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: t1; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE t1 (
i integer,
si smallint,
bi bigint,
de numeric,
n numeric,
n103 numeric(10,3),
r real,
dou double precision
) distributed by (i);
ALTER TABLE public.t1 OWNER TO __USER_LOGIN__;
--
-- Name: t10; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE t10 (
j integer
) distributed by (j);
ALTER TABLE public.t10 OWNER TO __USER_LOGIN__;
--
-- Name: t2; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE t2 (
i integer,
s integer NOT NULL,
bs bigint NOT NULL
) distributed by (i);
ALTER TABLE public.t2 OWNER TO __USER_LOGIN__;
--
-- Name: t2_bs_seq; Type: SEQUENCE; Schema: public; Owner: __USER_LOGIN__
--
CREATE SEQUENCE t2_bs_seq
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
CACHE 1;
ALTER TABLE public.t2_bs_seq OWNER TO __USER_LOGIN__;
--
-- Name: t2_bs_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: __USER_LOGIN__
--
ALTER SEQUENCE t2_bs_seq OWNED BY t2.bs;
--
-- Name: t2_bs_seq; Type: SEQUENCE SET; Schema: public; Owner: __USER_LOGIN__
--
SELECT pg_catalog.setval('t2_bs_seq', 4, true);
--
-- Name: t2_s_seq; Type: SEQUENCE; Schema: public; Owner: __USER_LOGIN__
--
CREATE SEQUENCE t2_s_seq
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
CACHE 1;
ALTER TABLE public.t2_s_seq OWNER TO __USER_LOGIN__;
--
-- Name: t2_s_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: __USER_LOGIN__
--
ALTER SEQUENCE t2_s_seq OWNED BY t2.s;
--
-- Name: t2_s_seq; Type: SEQUENCE SET; Schema: public; Owner: __USER_LOGIN__
--
SELECT pg_catalog.setval('t2_s_seq', 4, true);
--
-- Name: t3; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE t3 (
m money,
c character(10),
vc character varying(10),
t text,
ba bytea
) distributed by (m);
ALTER TABLE public.t3 OWNER TO __USER_LOGIN__;
--
-- Name: t4; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE t4 (
t timestamp without time zone,
t2 timestamp(2) without time zone,
tz timestamp with time zone,
tz3 timestamp(3) with time zone,
i interval,
d date,
ti time without time zone,
ti4 time(4) without time zone,
tiz time with time zone,
tiz5 time(5) with time zone
) distributed by (t);
ALTER TABLE public.t4 OWNER TO __USER_LOGIN__;
--
-- Name: t5; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE t5 (
b boolean,
pt point,
ls lseg,
p path,
bo box,
po polygon,
c circle
) distributed by (b);
ALTER TABLE public.t5 OWNER TO __USER_LOGIN__;
--
-- Name: t7; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE t7 (
b bit(3),
bv bit varying(5),
ia integer[],
ta text[]
) distributed by (b);
ALTER TABLE public.t7 OWNER TO __USER_LOGIN__;
--
-- Name: t8; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE t8 (
i integer,
c complex,
ct comptype
) distributed by (i);
ALTER TABLE public.t8 OWNER TO __USER_LOGIN__;
SET default_with_oids = true;
--
-- Name: t9; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE t9 (
i integer
) distributed by (i);
ALTER TABLE public.t9 OWNER TO __USER_LOGIN__;
SET search_path = s6, pg_catalog;
SET default_with_oids = false;
--
-- Name: t6; Type: TABLE; Schema: s6; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE t6 (
c cidr,
i inet,
m macaddr
) distributed by (c);
ALTER TABLE s6.t6 OWNER TO __USER_LOGIN__;
SET search_path = public, pg_catalog;
--
-- Name: s; Type: DEFAULT; Schema: public; Owner: __USER_LOGIN__
--
ALTER TABLE t2 ALTER COLUMN s SET DEFAULT nextval('t2_s_seq'::regclass);
--
-- Name: bs; Type: DEFAULT; Schema: public; Owner: __USER_LOGIN__
--
ALTER TABLE t2 ALTER COLUMN bs SET DEFAULT nextval('t2_bs_seq'::regclass);
--
-- Data for Name: t1; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
COPY t1 (i, si, bi, de, n, n103, r, dou) FROM stdin;
1 2 3 3.14 3.1415 3.142 2.71 2.71828
2 2 2 2.0 2.0 2.000 Infinity NaN
\N \N \N \N \N \N \N \N
-3 -2 -1 1.4 1.41 1.414 NaN -Infinity
\.
--
-- Data for Name: t10; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
COPY t10 (j) FROM stdin;
3
4
\N
\.
--
-- Data for Name: t2; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
COPY t2 (i, s, bs) FROM stdin;
1 1 1
2 2 2
3 3 3
4 4 4
1 1 1
4 4 4
\.
--
-- Data for Name: t3; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
COPY t3 (m, c, vc, t, ba) FROM stdin;
$10.20 Simple Simple VC Text column string as ba
-$3.00 1234567890 1234567890 Too long to test filling \\001\\000\\000\\002\\\\
$10.00 It's OK It's OK It's still OK It's binary OK
$100.00 \t\r\nv\\ \t\r\nv\\ \t\r\nv\\ \\011\\015\\012v
$100.00
\N \N \N \N \N
\.
--
-- Data for Name: t4; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
COPY t4 (t, t2, tz, tz3, i, d, ti, ti4, tiz, tiz5) FROM stdin;
1970-01-01 00:00:00 infinity infinity -infinity 00:00:00 1970-01-01 00:00:00 00:00:00 00:00:00+00 00:00:00+00
1999-01-08 04:05:06 1999-01-08 04:05:06.23 1999-01-07 18:05:06-08 1999-01-08 04:05:06.23-08 1 day 12:34:56 1999-01-08 04:05:06 00:00:00 00:01:02-08 00:01:00-02
\N \N \N \N \N \N \N \N \N \N
\.
--
-- Data for Name: t5; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
COPY t5 (b, pt, ls, p, bo, po, c) FROM stdin;
t (1,2) [(1,2),(0,0)] ((1,1),(2,2),(3,3)) (2,2),(1,1) ((1,0),(1,1),(2,2)) <(0,1),4>
f (1,2) [(1,2),(0,0)] ((1,1),(2,2),(3,3),(4,4)) (2,2),(1,1) ((1,0),(1,1),(2,2)) <(0,2),43>
\N \N \N \N \N \N \N
\.
--
-- Data for Name: t7; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
COPY t7 (b, bv, ia, ta) FROM stdin;
\N \N \N \N
101 00101 {1,2,3} {{Hello,world},{from,Mars}}
000 00 {4,5} {{"",""},{"",""}}
111 {} {{1,2},{3,4},{5,6}}
\.
--
-- Data for Name: t8; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
COPY t8 (i, c, ct) FROM stdin;
1 (1,2) (Hello,8.3)
2 (,-1) (,)
1 (0,0) ("",)
\N \N \N
\.
--
-- Data for Name: t9; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
COPY t9 (i) FROM stdin;
1
2
\N
\.
SET search_path = s6, pg_catalog;
--
-- Data for Name: t6; Type: TABLE DATA; Schema: s6; Owner: __USER_LOGIN__
--
COPY t6 (c, i, m) FROM stdin;
\N \N \N
127.0.0.1/32 2001:4f8:3:ba::/64 08:02:0b:02:ac:e3
\.
--
-- Name: public; Type: ACL; Schema: -; Owner: __USER_LOGIN__
--
REVOKE ALL ON SCHEMA public FROM PUBLIC;
REVOKE ALL ON SCHEMA public FROM __USER_LOGIN__;
GRANT ALL ON SCHEMA public TO __USER_LOGIN__;
GRANT ALL ON SCHEMA public TO PUBLIC;
--
-- Greenplum Database database dump complete
--
\connect regression
--
-- Greenplum Database database dump
--
SET client_encoding = 'SQL_ASCII';
SET standard_conforming_strings = off;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET escape_string_warning = off;
--
-- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: __USER_LOGIN__
--
COMMENT ON SCHEMA public IS 'Standard public schema';
--
-- Name: plpgsql; Type: PROCEDURAL LANGUAGE; Schema: -; Owner: __USER_LOGIN__
--
CREATE PROCEDURAL LANGUAGE plpgsql;
--
-- Name: public; Type: ACL; Schema: -; Owner: __USER_LOGIN__
--
REVOKE ALL ON SCHEMA public FROM PUBLIC;
REVOKE ALL ON SCHEMA public FROM __USER_LOGIN__;
GRANT ALL ON SCHEMA public TO __USER_LOGIN__;
GRANT ALL ON SCHEMA public TO PUBLIC;
--
-- Greenplum Database database dump complete
--
\connect regressrestoretestadv3
--
-- Greenplum Database database dump
--
SET client_encoding = 'SQL_ASCII';
SET standard_conforming_strings = off;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET escape_string_warning = off;
--
-- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: __USER_LOGIN__
--
COMMENT ON SCHEMA public IS 'Standard public schema';
--
-- Name: plpgsql; Type: PROCEDURAL LANGUAGE; Schema: -; Owner: __USER_LOGIN__
--
CREATE PROCEDURAL LANGUAGE plpgsql;
SET search_path = public, pg_catalog;
--
-- Name: us_postal_code; Type: DOMAIN; Schema: public; Owner: __USER_LOGIN__
--
CREATE DOMAIN us_postal_code AS text
CONSTRAINT us_postal_code_check CHECK (((VALUE ~ '^\\d{5}$'::text) OR (VALUE ~ '^\\d{5}-\\d{4}$'::text)));
ALTER DOMAIN public.us_postal_code OWNER TO __USER_LOGIN__;
--
-- Name: c3tobit(character); Type: FUNCTION; Schema: public; Owner: __USER_LOGIN__
--
CREATE FUNCTION c3tobit(s character) RETURNS bit
AS $$ select '101'::bit(3); $$
LANGUAGE sql IMMUTABLE STRICT;
ALTER FUNCTION public.c3tobit(s character) OWNER TO __USER_LOGIN__;
--
-- Name: incr(integer); Type: FUNCTION; Schema: public; Owner: __USER_LOGIN__
--
CREATE FUNCTION incr(i integer) RETURNS integer
AS $$
BEGIN
return i + 1;
END
$$
LANGUAGE plpgsql;
ALTER FUNCTION public.incr(i integer) OWNER TO __USER_LOGIN__;
--
-- Name: trigf(); Type: FUNCTION; Schema: public; Owner: __USER_LOGIN__
--
CREATE FUNCTION trigf() RETURNS "trigger"
AS $$
BEGIN
insert into trig1 values (1, 1);
END
$$
LANGUAGE plpgsql;
ALTER FUNCTION public.trigf() OWNER TO __USER_LOGIN__;
SET search_path = pg_catalog;
--
-- Name: CAST (character AS bit); Type: CAST; Schema: pg_catalog; Owner:
--
CREATE CAST (character AS bit) WITH FUNCTION public.c3tobit(character);
SET search_path = public, pg_catalog;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: idxt; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE idxt (
i integer,
j integer
) distributed by (j);
ALTER TABLE public.idxt OWNER TO __USER_LOGIN__;
SET default_with_oids = true;
--
-- Name: oidt; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE oidt (
i integer,
j integer
) distributed by (i);
ALTER TABLE public.oidt OWNER TO __USER_LOGIN__;
SET default_with_oids = false;
--
-- Name: rt; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE rt (
i integer,
j integer
) distributed by (i);
ALTER TABLE public.rt OWNER TO __USER_LOGIN__;
--
-- Name: seq; Type: SEQUENCE; Schema: public; Owner: __USER_LOGIN__
--
CREATE SEQUENCE seq
INCREMENT BY 10
NO MAXVALUE
MINVALUE 100
CACHE 10;
ALTER TABLE public.seq OWNER TO __USER_LOGIN__;
--
-- Name: seq; Type: SEQUENCE SET; Schema: public; Owner: __USER_LOGIN__
--
SELECT pg_catalog.setval('seq', 190, true);
--
-- Name: t1; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE t1 (
i integer NOT NULL,
j integer NOT NULL,
k integer,
CONSTRAINT t1_check CHECK ((j >= i))
) distributed by (i);
ALTER TABLE public.t1 OWNER TO __USER_LOGIN__;
--
-- Name: trig1; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE trig1 (
i integer,
j integer
) distributed by (i);
ALTER TABLE public.trig1 OWNER TO __USER_LOGIN__;
--
-- Name: tt1; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE tt1 (
i integer,
j integer,
upc us_postal_code
) distributed by (i);
ALTER TABLE public.tt1 OWNER TO __USER_LOGIN__;
--
-- Name: tt2; Type: TABLE; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE TABLE tt2 (
state character(2)
)
INHERITS (tt1) distributed by (i);
ALTER TABLE public.tt2 OWNER TO __USER_LOGIN__;
--
-- Name: v1; Type: VIEW; Schema: public; Owner: __USER_LOGIN__
--
CREATE VIEW v1 AS
SELECT t1.i, t1.j, t1.k FROM t1 WHERE (t1.i = t1.j);
ALTER TABLE public.v1 OWNER TO __USER_LOGIN__;
--
-- Data for Name: idxt; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
COPY idxt (i, j) FROM stdin;
\.
--
-- Data for Name: oidt; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
COPY oidt (i, j) FROM stdin;
1 2
3 4
\.
--
-- Data for Name: rt; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
COPY rt (i, j) FROM stdin;
1 1
\.
--
-- Data for Name: t1; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
COPY t1 (i, j, k) FROM stdin;
1 1 1
2 2 2
3 4 \N
\.
--
-- Data for Name: trig1; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
COPY trig1 (i, j) FROM stdin;
1 1
2 2
\.
--
-- Data for Name: tt1; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
COPY tt1 (i, j, upc) FROM stdin;
1 1 53706
2 1 90210
3 1 55555-4444
\.
--
-- Data for Name: tt2; Type: TABLE DATA; Schema: public; Owner: __USER_LOGIN__
--
COPY tt2 (i, j, upc, state) FROM stdin;
4 4 94041 CA
\.
--
-- Name: t1_pkey; Type: CONSTRAINT; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
ALTER TABLE ONLY t1
ADD CONSTRAINT t1_pkey PRIMARY KEY (i);
--
-- Name: idxt1; Type: INDEX; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE INDEX idxt1 ON idxt USING btree (i);
--
-- Name: idxt2; Type: INDEX; Schema: public; Owner: __USER_LOGIN__; Tablespace:
--
CREATE UNIQUE INDEX idxt2 ON idxt USING btree (j);
--
-- Name: insrt; Type: RULE; Schema: public; Owner: __USER_LOGIN__
--
CREATE RULE insrt AS ON INSERT TO rt DO INSTEAD UPDATE rt SET j = (rt.i + rt.j);
--
-- Name: nodelrt; Type: RULE; Schema: public; Owner: __USER_LOGIN__
--
CREATE RULE nodelrt AS ON DELETE TO rt DO INSTEAD NOTHING;
--
-- Name: trig; Type: TRIGGER; Schema: public; Owner: __USER_LOGIN__
--
CREATE TRIGGER trig
AFTER DELETE ON trig1
FOR EACH ROW
EXECUTE PROCEDURE trigf();
--
-- Name: public; Type: ACL; Schema: -; Owner: __USER_LOGIN__
--
REVOKE ALL ON SCHEMA public FROM PUBLIC;
REVOKE ALL ON SCHEMA public FROM __USER_LOGIN__;
GRANT ALL ON SCHEMA public TO __USER_LOGIN__;
GRANT ALL ON SCHEMA public TO PUBLIC;
--
-- Greenplum Database database dump complete
--
\connect template1
--
-- Greenplum Database database dump
--
SET client_encoding = 'SQL_ASCII';
SET standard_conforming_strings = off;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET escape_string_warning = off;
--
-- Name: template1; Type: COMMENT; Schema: -; Owner: __USER_LOGIN__
--
COMMENT ON DATABASE template1 IS 'Default template database';
--
-- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: __USER_LOGIN__
--
COMMENT ON SCHEMA public IS 'Standard public schema';
--
-- Name: public; Type: ACL; Schema: -; Owner: __USER_LOGIN__
--
REVOKE ALL ON SCHEMA public FROM PUBLIC;
REVOKE ALL ON SCHEMA public FROM __USER_LOGIN__;
GRANT ALL ON SCHEMA public TO __USER_LOGIN__;
GRANT ALL ON SCHEMA public TO PUBLIC;
--
-- Greenplum Database database dump complete
--
--
-- Greenplum Database cluster dump complete
--
\c regressbkuptestadv
select * from t1;
i | j | k
---+---+---
1 | 1 | 1
3 | 4 |
2 | 2 | 2
(3 rows)
select * from v1;
i | j | k
---+---+---
1 | 1 | 1
2 | 2 | 2
(2 rows)
insert into t1 values (2, 1, 3);
ERROR: new row for relation "t1" violates check constraint "t1_check" (seg1 localhost:13003 pid=10293)
insert into t1 values (1, 5, 10);
ERROR: duplicate key violates unique constraint "t1_pkey" (seg0 localhost:13002 pid=10292)
insert into t1 values (100, NULL, 3);
ERROR: null value in column "j" violates not-null constraint (seg1 localhost:13003 pid=10293)
insert into t1 values (20, 20, 30);
insert into t1 values (21, 22, 23);
select * from t1;
i | j | k
----+----+----
1 | 1 | 1
3 | 4 |
21 | 22 | 23
2 | 2 | 2
20 | 20 | 30
(5 rows)
select * from v1;
i | j | k
----+----+----
1 | 1 | 1
2 | 2 | 2
20 | 20 | 30
(3 rows)
select * from oids;
ERROR: relation "oids" does not exist
select oid from oids where 1 = 0;
ERROR: relation "oids" does not exist
select * from idxt;
i | j
---+---
(0 rows)
insert into idxt (1, 1);
ERROR: syntax error at or near "1"
LINE 1: insert into idxt (1, 1);
^
insert into idxt (1, 1);
ERROR: syntax error at or near "1"
LINE 1: insert into idxt (1, 1);
^
select C3ToBit('OK');
c3tobit
---------
101
(1 row)
select C3ToBit(NULL);
c3tobit
---------
(1 row)
select 'ABC'::char(3)::bit(3);
bit
-----
101
(1 row)
select incr(100);
incr
------
101
(1 row)
create function decr (i int) returns int as
$$
BEGIN
return i-1;
END
$$ language plpgsql;
select decr(100);
decr
------
99
(1 row)
select * from tt1;
i | j | upc
---+---+------------
4 | 4 | 94041
1 | 1 | 53706
2 | 1 | 90210
3 | 1 | 55555-4444
(4 rows)
insert into tt1 values (10, 10, '1234');
ERROR: value for domain us_postal_code violates check constraint "us_postal_code_check" (seg0 slice1 localhost:13002 pid=10294)
insert into tt1 values (11, 11, '1234A');
ERROR: value for domain us_postal_code violates check constraint "us_postal_code_check" (seg0 slice1 localhost:13002 pid=10294)
select * from tt2;
i | j | upc | state
---+---+-------+-------
4 | 4 | 94041 | CA
(1 row)
select * from rt;
i | j
---+---
1 | 1
(1 row)
delete from rt;
select * from rt;
i | j
---+---
1 | 1
(1 row)
insert into rt values (100, 100);
select * from rt;
i | j
---+---
1 | 2
(1 row)
select nextval('seq');
nextval
---------
200
(1 row)
select nextval('seq');
nextval
---------
210
(1 row)
\c regressrestoretestadv1
select * from t1;
i | j | k
---+---+---
1 | 1 | 1
3 | 4 |
2 | 2 | 2
(3 rows)
select * from v1;
i | j | k
---+---+---
1 | 1 | 1
2 | 2 | 2
(2 rows)
insert into t1 values (2, 1, 3);
ERROR: new row for relation "t1" violates check constraint "t1_check" (seg1 localhost:13003 pid=10297)
insert into t1 values (1, 5, 10);
ERROR: duplicate key violates unique constraint "t1_pkey" (seg0 localhost:13002 pid=10296)
insert into t1 values (100, NULL, 3);
ERROR: null value in column "j" violates not-null constraint (seg1 localhost:13003 pid=10297)
insert into t1 values (20, 20, 30);
insert into t1 values (21, 22, 23);
select * from t1;
i | j | k
----+----+----
1 | 1 | 1
3 | 4 |
21 | 22 | 23
2 | 2 | 2
20 | 20 | 30
(5 rows)
select * from v1;
i | j | k
----+----+----
1 | 1 | 1
2 | 2 | 2
20 | 20 | 30
(3 rows)
select * from oids;
ERROR: relation "oids" does not exist
select oid from oids where 1 = 0;
ERROR: relation "oids" does not exist
select * from idxt;
i | j
---+---
(0 rows)
insert into idxt (1, 1);
ERROR: syntax error at or near "1"
LINE 1: insert into idxt (1, 1);
^
insert into idxt (1, 1);
ERROR: syntax error at or near "1"
LINE 1: insert into idxt (1, 1);
^
select C3ToBit('OK');
c3tobit
---------
101
(1 row)
select C3ToBit(NULL);
c3tobit
---------
(1 row)
select 'ABC'::char(3)::bit(3);
bit
-----
101
(1 row)
select incr(100);
incr
------
101
(1 row)
create function decr (i int) returns int as
$$
BEGIN
return i-1;
END
$$ language plpgsql;
select decr(100);
decr
------
99
(1 row)
select * from tt1;
i | j | upc
---+---+------------
1 | 1 | 53706
2 | 1 | 90210
3 | 1 | 55555-4444
4 | 4 | 94041
(4 rows)
insert into tt1 values (10, 10, '1234');
ERROR: value for domain us_postal_code violates check constraint "us_postal_code_check" (seg1 slice1 localhost:13003 pid=10298)
insert into tt1 values (11, 11, '1234A');
ERROR: value for domain us_postal_code violates check constraint "us_postal_code_check" (seg1 slice1 localhost:13003 pid=10298)
select * from tt2;
i | j | upc | state
---+---+-------+-------
4 | 4 | 94041 | CA
(1 row)
select * from rt;
i | j
---+---
1 | 1
(1 row)
delete from rt;
select * from rt;
i | j
---+---
1 | 1
(1 row)
insert into rt values (100, 100);
select * from rt;
i | j
---+---
1 | 2
(1 row)
select nextval('seq');
nextval
---------
200
(1 row)
select nextval('seq');
nextval
---------
210
(1 row)
\c regressrestoretestadv2
select * from t1;
i | j | k
---+---+---
2 | 2 | 2
1 | 1 | 1
3 | 4 |
(3 rows)
select * from v1;
i | j | k
---+---+---
1 | 1 | 1
2 | 2 | 2
(2 rows)
insert into t1 values (2, 1, 3);
ERROR: new row for relation "t1" violates check constraint "t1_check" (seg1 localhost:13003 pid=10301)
insert into t1 values (1, 5, 10);
ERROR: duplicate key violates unique constraint "t1_pkey" (seg0 localhost:13002 pid=10300)
insert into t1 values (100, NULL, 3);
ERROR: null value in column "j" violates not-null constraint (seg1 localhost:13003 pid=10301)
insert into t1 values (20, 20, 30);
insert into t1 values (21, 22, 23);
select * from t1;
i | j | k
----+----+----
1 | 1 | 1
3 | 4 |
21 | 22 | 23
2 | 2 | 2
20 | 20 | 30
(5 rows)
select * from v1;
i | j | k
----+----+----
1 | 1 | 1
2 | 2 | 2
20 | 20 | 30
(3 rows)
select * from oids;
ERROR: relation "oids" does not exist
select oid from oids where 1 = 0;
ERROR: relation "oids" does not exist
select * from idxt;
i | j
---+---
(0 rows)
insert into idxt (1, 1);
ERROR: syntax error at or near "1"
LINE 1: insert into idxt (1, 1);
^
insert into idxt (1, 1);
ERROR: syntax error at or near "1"
LINE 1: insert into idxt (1, 1);
^
select C3ToBit('OK');
c3tobit
---------
101
(1 row)
select C3ToBit(NULL);
c3tobit
---------
(1 row)
select 'ABC'::char(3)::bit(3);
bit
-----
101
(1 row)
select incr(100);
incr
------
101
(1 row)
create function decr (i int) returns int as
$$
BEGIN
return i-1;
END
$$ language plpgsql;
select decr(100);
decr
------
99
(1 row)
select * from tt1;
i | j | upc
---+---+------------
2 | 1 | 90210
4 | 4 | 94041
1 | 1 | 53706
3 | 1 | 55555-4444
(4 rows)
insert into tt1 values (10, 10, '1234');
ERROR: value for domain us_postal_code violates check constraint "us_postal_code_check" (seg0 slice1 localhost:13002 pid=10302)
insert into tt1 values (11, 11, '1234A');
ERROR: value for domain us_postal_code violates check constraint "us_postal_code_check" (seg0 slice1 localhost:13002 pid=10302)
select * from tt2;
i | j | upc | state
---+---+-------+-------
4 | 4 | 94041 | CA
(1 row)
select * from rt;
i | j
---+---
1 | 1
(1 row)
delete from rt;
select * from rt;
i | j
---+---
1 | 1
(1 row)
insert into rt values (100, 100);
select * from rt;
i | j
---+---
1 | 2
(1 row)
select nextval('seq');
nextval
---------
200
(1 row)
select nextval('seq');
nextval
---------
210
(1 row)
\c regressbkuptestmisc
select * from t1;
i | col3
---+------
1 | 1
3 |
2 | 2
(3 rows)
select * from t2;
i | k | j
---+---+---
1 | 1 |
3 | |
2 | 2 |
(3 rows)
select * from t3;
i | j | k
---+---+---
1 | 1 | 1
3 | 4 |
2 | 2 | 2
(3 rows)
select * from t4;
i | j | k
-----+-----+-----
100 | 100 | 100
200 | 200 | 200
(2 rows)
select * from t5;
i | j | k
---+---+---
3 | 4 |
3 | 4 |
1 | 1 | 1
3 | 4 |
2 | 2 | 2
(5 rows)
select relpages, reltuples from pg_class where relname = 't3';
relpages | reltuples
----------+-----------
1 | 2
(1 row)
\c regressrestoretestmisc1
select * from t1;
i | col3
---+------
1 | 1
3 |
2 | 2
(3 rows)
select * from t2;
i | k | j
---+---+---
1 | 1 |
3 | |
2 | 2 |
(3 rows)
select * from t3;
i | j | k
---+---+---
1 | 1 | 1
3 | 4 |
2 | 2 | 2
(3 rows)
select * from t4;
i | j | k
-----+-----+-----
100 | 100 | 100
200 | 200 | 200
(2 rows)
select * from t5;
i | j | k
---+---+---
3 | 4 |
3 | 4 |
1 | 1 | 1
3 | 4 |
2 | 2 | 2
(5 rows)
select relpages, reltuples from pg_class where relname = 't3';
relpages | reltuples
----------+-----------
0 | 0
(1 row)
\c regressrestoretestmisc1
select * from t1;
i | col3
---+------
1 | 1
3 |
2 | 2
(3 rows)
select * from t2;
i | k | j
---+---+---
1 | 1 |
3 | |
2 | 2 |
(3 rows)
select * from t3;
i | j | k
---+---+---
1 | 1 | 1
3 | 4 |
2 | 2 | 2
(3 rows)
select * from t4;
i | j | k
-----+-----+-----
100 | 100 | 100
200 | 200 | 200
(2 rows)
select * from t5;
i | j | k
---+---+---
3 | 4 |
3 | 4 |
1 | 1 | 1
3 | 4 |
2 | 2 | 2
(5 rows)
select relpages, reltuples from pg_class where relname = 't3';
relpages | reltuples
----------+-----------
0 | 0
(1 row)
-- start_ignore
drop database if exists regressbkuptest1;
drop database if exists regressrestoretest1;
drop database if exists regressrestoretest2;
drop database if exists regressrestoretest3;
drop database if exists regressrestoretest4;
drop database if exists regressrestoretest5;
drop database if exists regressrestoretest6;
drop database if exists regressrestoretest7;
drop database if exists regressrestoretest8;
drop database if exists regressrestoretest9;
drop database if exists regressrestoretest10;
drop database if exists regressrestoretest11;
drop database if exists regressrestoretest12;
drop database if exists regressrestoretest13;
drop database if exists regressrestoretest14;
drop database if exists regressrestoretest15;
drop database if exists regressrestoretest16;
drop database if exists regressrestoretest17;
drop database if exists regressrestoretest18;
drop database if exists regressrestoretest19;
drop database if exists regressrestoretest20;
drop database if exists regressrestoretest21;
drop database if exists regressrestoretest22;
drop database if exists regressrestoretest23;
drop database if exists regressrestoretest24;
drop database if exists regressrestoretest25;
drop database if exists regressbkuptestadv;
drop database if exists regressrestoretestadv1;
drop database if exists regressrestoretestadv2;
drop database if exists regressbkuptestmisc;
drop database if exists regressrestoretestmisc1;
drop database if exists regressrestoretestmisc2;
\! rm -fr /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/gpdump* /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump*
-- end_ignore
-- start_ignore
--
-- Greenplum DB backup test
--
-- Check database version and pg_dump
select version();
version
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PostgreSQL 8.2.4 (Greenplum Database cvs Head build dev build ) on i386-apple-darwin8.9.1, compiled by GCC i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367) compiled on Jun 5 2007 12:29:58 (with assert checking)
(1 row)
\! pg_dump --version
pg_dump (PostgreSQL) 8.2.4
-- Create target database
drop database if exists regressbkuptest1;
NOTICE: database "regressbkuptest1" does not exist, skipping
create database regressbkuptest1;
-- Populate some data
\c regressbkuptest1
-- Data type tests
-- table one, numeric types
create table t1(
i int, si smallint, bi bigint,
de decimal, n numeric, n103 numeric(10, 3),
r real, dou double precision
);
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'i' as the Greenplum Database data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
insert into t1 values
(1, 2, 3,
3.14, 3.1415, 3.142,
2.71, 2.71828
),
(2, 2, 2,
2.0, 2.0, 2.00,
'Infinity', 'NaN'
),
(-3, -2, -1,
1.4, 1.41, 1.414,
'NaN', '-Infinity'
),
(NULL, NULL, NULL,
NULL, NULL, NULL,
NULL, NULL
);
-- Data type test2 serial
create table t2 (i int, s serial, bs bigserial);
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'i' as the Greenplum Database data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
insert into t2 values (1), (2), (3);
-- it is OK to specify serial value if no unique/primary key
insert into t2 values (1, 1, 1), (4, 4, 4);
-- but sequence should continue work
insert into t2 values (4);
-- Data type test3, money (deprecated), and char, binary.
create table t3 (m money, c char(10), vc varchar(10), t text, ba bytea);
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'm' as the Greenplum Database data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
insert into t3 values
('$10.2', 'Simple', 'Simple VC', 'Text column', E'string as ba'),
('$10', $$It's OK$$, $$It's OK$$, $$It's still OK$$, E'It\'s binary OK'),
('$100', E'\t\r\n\v\\', E'\t\r\n\v\\', E'\t\r\n\v\\', E'\t\r\n\v'),
('$100', '', '', '', ''),
('$-3', '1234567890', '1234567890', 'Too long to test filling', E'\\001\\000\\000\\002\\\\'),
(NULL, NULL, NULL, NULL, NULL);
-- Data type test 4, Date/Timestamp
create table t4(
t timestamp, t2 timestamp(2),
tz timestamp with time zone, tz3 timestamp(3) with time zone,
i interval, d date,
ti time, ti4 time(4),
tiz time with time zone, tiz5 time(5) with time zone
);
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 't' as the Greenplum Database data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
insert into t4 values
(
'1999-01-08 04:05:06', '1999-01-08 04:05:06.23',
'1999-01-08 04:05:06+02', '1999-01-08 04:05:06.23PST',
'1 12:34:56', '1999-01-08',
'04:05:06', '00:00:00',
'00:01:02-8', '00:01:00-2'
),
(
'epoch', 'infinity',
'infinity', '-infinity',
'0', 'epoch',
'allballs', 'allballs',
'allballs', 'allballs'
),
(NULL, NULL,
NULL, NULL,
NULL, NULL,
NULL, NULL,
NULL, NULL
);
-- Data type test 5, boolean, geo,
create table t5(b bool, pt point, ls lseg, p path, bo box, po polygon, c circle);
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'b' as the Greenplum Database data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
insert into t5 values
( true, '(1.0, 2.0)',
'((1.0, 2.0), (0.0, 0.0))', '((1.0, 1.0), (2.0, 2.0), (3.0, 3.0))',
'((1.0, 1.0), (2.0, 2.0))', '((1.0, 0.0), (1.0, 1.0), (2.0, 2.0))',
'((0.0, 1.0), 4)'
),
( false, '(1.0, 2.0)',
'((1.0, 2.0), (0.0, 0.0))', '((1.0, 1.0), (2.0, 2.0), (3.0, 3.0), (4.0, 4.0))',
'((1.0, 1.0), (2.0, 2.0))', '((1.0, 0.0), (1.0, 1.0), (2.0, 2.0))',
'((0.0, 2.0), 43)'
),
(NULL, NULL, NULL, NULL, NULL, NULL, NULL)
;
-- Data type test 6, Network
create schema s6;
create table s6.t6(c cidr, i inet, m macaddr);
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'c' as the Greenplum Database data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
insert into s6.t6 values
('127.0.0.1', '2001:4f8:3:ba::/64', '08:02:0b:02:ac:e3'),
(NULL, NULL, NULL);
-- Data type test 7, Bit strings and arrays,
create table t7 (b bit(3), bv bit varying(5), ia integer[], ta text[][]);
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'b' as the Greenplum Database data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
insert into t7 values
(B'101', B'00101', '{1, 2, 3}', '{{"Hello", "world"},{"from", "Mars"}}'),
(B'000', B'00', '{4, 5}', '{{"",""}, {"", ""}}'),
(B'111', B'', '{}', '{{"1", "2"}, {"3", "4"}, {"5", "6"}}'),
(NULL, NULL, NULL, NULL);
-- Data type test 8, Composite type
CREATE TYPE Complex As (r real, i real);
CREATE TYPE CompType As (name text, price numeric);
CREATE TABLE t8 (i int, c Complex, ct CompType);
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'i' as the Greenplum Database data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
insert into t8 values
(1, (1, 2), ('Hello', 8.3)),
(1, (0, 0), ('', NULL)),
(2, (NULL, -1), (NULL, NULL)),
(NULL, NULL, NULL);
-- Data type test 9, oid
create table t9 (i int) WITH OIDS;
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'i' as the Greenplum Database data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
create table t10 (j int) WITHOUT OIDS;
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'j' as the Greenplum Database data distribution key for this table.
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
insert into t9 values (1), (2), (NULL);
insert into t10 values (3), (4), (NULL);
\c regression
-- end_ignore
\c regressbkuptest1
select * from t1;
i | si | bi | de | n | n103 | r | dou
----+----+----+------+--------+-------+----------+-----------
1 | 2 | 3 | 3.14 | 3.1415 | 3.142 | 2.71 | 2.71828
| | | | | | |
2 | 2 | 2 | 2.0 | 2.0 | 2.000 | Infinity | NaN
-3 | -2 | -1 | 1.4 | 1.41 | 1.414 | NaN | -Infinity
(4 rows)
select * from t2;
i | s | bs
---+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
(6 rows)
select * from t3;
m | c | vc | t | ba
---------+------------+------------+--------------------------+--------------------
$10.20 | Simple | Simple VC | Text column | string as ba
$10.00 | It's OK | It's OK | It's still OK | It's binary OK
$100.00 | \x09\r | \x09\r | \x09\r | \011\015\012v
: v\ : v\ : v\
$100.00 | | | |
| | | |
-$3.00 | 1234567890 | 1234567890 | Too long to test filling | \001\000\000\002\\
(6 rows)
select * from t4;
t | t2 | tz | tz3 | i | d | ti | ti4 | tiz | tiz5
--------------------------+-----------------------------+------------------------------+---------------------------------+----------------------------------+------------+----------+----------+-------------+-------------
Thu Jan 01 00:00:00 1970 | infinity | infinity | -infinity | @ 0 | 01-01-1970 | 00:00:00 | 00:00:00 | 00:00:00+00 | 00:00:00+00
| | | | | | | | |
Fri Jan 08 04:05:06 1999 | Fri Jan 08 04:05:06.23 1999 | Thu Jan 07 18:05:06 1999 PST | Fri Jan 08 04:05:06.23 1999 PST | @ 1 day 12 hours 34 mins 56 secs | 01-08-1999 | 04:05:06 | 00:00:00 | 00:01:02-08 | 00:01:00-02
(3 rows)
select * from t5;
b | pt | ls | p | bo | po | c
---+-------+---------------+---------------------------+-------------+---------------------+------------
t | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,1),4>
| | | | | |
f | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3),(4,4)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,2),43>
(3 rows)
select * from s6.t6;
c | i | m
--------------+--------------------+-------------------
| |
127.0.0.1/32 | 2001:4f8:3:ba::/64 | 08:02:0b:02:ac:e3
(2 rows)
select * from t7;
b | bv | ia | ta
-----+-------+---------+-----------------------------
| | |
101 | 00101 | {1,2,3} | {{Hello,world},{from,Mars}}
000 | 00 | {4,5} | {{"",""},{"",""}}
111 | | {} | {{1,2},{3,4},{5,6}}
(4 rows)
select * from t8;
i | c | ct
---+-------+-------------
1 | (1,2) | (Hello,8.3)
1 | (0,0) | ("",)
| |
2 | (,-1) | (,)
(4 rows)
select * from t9;
i
---
1
2
(3 rows)
select * from t10;
j
---
3
4
(3 rows)
insert into t2 values (100), (101);
select * from t2;
i | s | bs
-----+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
101 | 6 | 6
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
100 | 5 | 5
(8 rows)
select * from t11;
ERROR: relation "t11" does not exist
\c regressrestoretest1
select * from t1;
i | si | bi | de | n | n103 | r | dou
----+----+----+------+--------+-------+----------+-----------
1 | 2 | 3 | 3.14 | 3.1415 | 3.142 | 2.71 | 2.71828
| | | | | | |
2 | 2 | 2 | 2.0 | 2.0 | 2.000 | Infinity | NaN
-3 | -2 | -1 | 1.4 | 1.41 | 1.414 | NaN | -Infinity
(4 rows)
select * from t2;
i | s | bs
---+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
(6 rows)
select * from t3;
m | c | vc | t | ba
---------+------------+------------+--------------------------+--------------------
$10.20 | Simple | Simple VC | Text column | string as ba
$10.00 | It's OK | It's OK | It's still OK | It's binary OK
$100.00 | \x09\r | \x09\r | \x09\r | \011\015\012v
: v\ : v\ : v\
$100.00 | | | |
| | | |
-$3.00 | 1234567890 | 1234567890 | Too long to test filling | \001\000\000\002\\
(6 rows)
select * from t4;
t | t2 | tz | tz3 | i | d | ti | ti4 | tiz | tiz5
--------------------------+-----------------------------+------------------------------+---------------------------------+----------------------------------+------------+----------+----------+-------------+-------------
Fri Jan 08 04:05:06 1999 | Fri Jan 08 04:05:06.23 1999 | Thu Jan 07 18:05:06 1999 PST | Fri Jan 08 04:05:06.23 1999 PST | @ 1 day 12 hours 34 mins 56 secs | 01-08-1999 | 04:05:06 | 00:00:00 | 00:01:02-08 | 00:01:00-02
Thu Jan 01 00:00:00 1970 | infinity | infinity | -infinity | @ 0 | 01-01-1970 | 00:00:00 | 00:00:00 | 00:00:00+00 | 00:00:00+00
| | | | | | | | |
(3 rows)
select * from t5;
b | pt | ls | p | bo | po | c
---+-------+---------------+---------------------------+-------------+---------------------+------------
t | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,1),4>
| | | | | |
f | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3),(4,4)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,2),43>
(3 rows)
select * from s6.t6;
c | i | m
--------------+--------------------+-------------------
| |
127.0.0.1/32 | 2001:4f8:3:ba::/64 | 08:02:0b:02:ac:e3
(2 rows)
select * from t7;
b | bv | ia | ta
-----+-------+---------+-----------------------------
| | |
101 | 00101 | {1,2,3} | {{Hello,world},{from,Mars}}
000 | 00 | {4,5} | {{"",""},{"",""}}
111 | | {} | {{1,2},{3,4},{5,6}}
(4 rows)
select * from t8;
i | c | ct
---+-------+-------------
1 | (1,2) | (Hello,8.3)
1 | (0,0) | ("",)
| |
2 | (,-1) | (,)
(4 rows)
select * from t9;
i
---
1
2
(3 rows)
select * from t10;
j
---
3
4
(3 rows)
insert into t2 values (100), (101);
select * from t2;
i | s | bs
-----+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
101 | 6 | 6
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
100 | 5 | 5
(8 rows)
select * from t11;
ERROR: relation "t11" does not exist
\c regressrestoretest2
select * from t1;
i | si | bi | de | n | n103 | r | dou
----+----+----+------+--------+-------+----------+-----------
1 | 2 | 3 | 3.14 | 3.1415 | 3.142 | 2.71 | 2.71828
| | | | | | |
2 | 2 | 2 | 2.0 | 2.0 | 2.000 | Infinity | NaN
-3 | -2 | -1 | 1.4 | 1.41 | 1.414 | NaN | -Infinity
(4 rows)
select * from t2;
i | s | bs
---+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
(6 rows)
select * from t3;
m | c | vc | t | ba
---------+------------+------------+--------------------------+--------------------
$10.20 | Simple | Simple VC | Text column | string as ba
$10.00 | It's OK | It's OK | It's still OK | It's binary OK
$100.00 | \x09\r | \x09\r | \x09\r | \011\015\012v
: v\ : v\ : v\
$100.00 | | | |
| | | |
-$3.00 | 1234567890 | 1234567890 | Too long to test filling | \001\000\000\002\\
(6 rows)
select * from t4;
t | t2 | tz | tz3 | i | d | ti | ti4 | tiz | tiz5
--------------------------+-----------------------------+------------------------------+---------------------------------+----------------------------------+------------+----------+----------+-------------+-------------
Thu Jan 01 00:00:00 1970 | infinity | infinity | -infinity | @ 0 | 01-01-1970 | 00:00:00 | 00:00:00 | 00:00:00+00 | 00:00:00+00
| | | | | | | | |
Fri Jan 08 04:05:06 1999 | Fri Jan 08 04:05:06.23 1999 | Thu Jan 07 18:05:06 1999 PST | Fri Jan 08 04:05:06.23 1999 PST | @ 1 day 12 hours 34 mins 56 secs | 01-08-1999 | 04:05:06 | 00:00:00 | 00:01:02-08 | 00:01:00-02
(3 rows)
select * from t5;
b | pt | ls | p | bo | po | c
---+-------+---------------+---------------------------+-------------+---------------------+------------
t | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,1),4>
| | | | | |
f | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3),(4,4)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,2),43>
(3 rows)
select * from s6.t6;
c | i | m
--------------+--------------------+-------------------
| |
127.0.0.1/32 | 2001:4f8:3:ba::/64 | 08:02:0b:02:ac:e3
(2 rows)
select * from t7;
b | bv | ia | ta
-----+-------+---------+-----------------------------
| | |
101 | 00101 | {1,2,3} | {{Hello,world},{from,Mars}}
000 | 00 | {4,5} | {{"",""},{"",""}}
111 | | {} | {{1,2},{3,4},{5,6}}
(4 rows)
select * from t8;
i | c | ct
---+-------+-------------
1 | (1,2) | (Hello,8.3)
1 | (0,0) | ("",)
| |
2 | (,-1) | (,)
(4 rows)
select * from t9;
i
---
1
2
(3 rows)
select * from t10;
j
---
3
4
(3 rows)
insert into t2 values (100), (101);
select * from t2;
i | s | bs
-----+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
101 | 2 | 2
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
100 | 1 | 1
(8 rows)
select * from t11;
ERROR: relation "t11" does not exist
\c regressrestoretest3
select * from t1;
ERROR: relation "t1" does not exist
select * from t2;
ERROR: relation "t2" does not exist
select * from t3;
ERROR: relation "t3" does not exist
select * from t4;
ERROR: relation "t4" does not exist
select * from t5;
ERROR: relation "t5" does not exist
select * from s6.t6;
c | i | m
--------------+--------------------+-------------------
| |
127.0.0.1/32 | 2001:4f8:3:ba::/64 | 08:02:0b:02:ac:e3
(2 rows)
select * from t7;
ERROR: relation "t7" does not exist
select * from t8;
ERROR: relation "t8" does not exist
select * from t9;
ERROR: relation "t9" does not exist
select * from t10;
ERROR: relation "t10" does not exist
insert into t2 values (100), (101);
ERROR: relation "t2" does not exist
select * from t2;
ERROR: relation "t2" does not exist
select * from t11;
ERROR: relation "t11" does not exist
\c regressrestoretest4
select * from t1;
i | si | bi | de | n | n103 | r | dou
----+----+----+------+--------+-------+----------+-----------
1 | 2 | 3 | 3.14 | 3.1415 | 3.142 | 2.71 | 2.71828
| | | | | | |
2 | 2 | 2 | 2.0 | 2.0 | 2.000 | Infinity | NaN
-3 | -2 | -1 | 1.4 | 1.41 | 1.414 | NaN | -Infinity
(4 rows)
select * from t2;
ERROR: relation "t2" does not exist
select * from t3;
ERROR: relation "t3" does not exist
select * from t4;
ERROR: relation "t4" does not exist
select * from t5;
ERROR: relation "t5" does not exist
select * from s6.t6;
ERROR: schema "s6" does not exist
select * from t7;
ERROR: relation "t7" does not exist
select * from t8;
ERROR: relation "t8" does not exist
select * from t9;
ERROR: relation "t9" does not exist
select * from t10;
ERROR: relation "t10" does not exist
insert into t2 values (100), (101);
ERROR: relation "t2" does not exist
select * from t2;
ERROR: relation "t2" does not exist
select * from t11;
ERROR: relation "t11" does not exist
\c regressrestoretest5
select * from t1;
i | si | bi | de | n | n103 | r | dou
----+----+----+------+--------+-------+----------+-----------
1 | 2 | 3 | 3.14 | 3.1415 | 3.142 | 2.71 | 2.71828
| | | | | | |
2 | 2 | 2 | 2.0 | 2.0 | 2.000 | Infinity | NaN
-3 | -2 | -1 | 1.4 | 1.41 | 1.414 | NaN | -Infinity
(4 rows)
select * from t2;
i | s | bs
---+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
(6 rows)
select * from t3;
m | c | vc | t | ba
---------+------------+------------+--------------------------+--------------------
$10.20 | Simple | Simple VC | Text column | string as ba
$10.00 | It's OK | It's OK | It's still OK | It's binary OK
$100.00 | \x09\r | \x09\r | \x09\r | \011\015\012v
: v\ : v\ : v\
$100.00 | | | |
| | | |
-$3.00 | 1234567890 | 1234567890 | Too long to test filling | \001\000\000\002\\
(6 rows)
select * from t4;
t | t2 | tz | tz3 | i | d | ti | ti4 | tiz | tiz5
--------------------------+-----------------------------+------------------------------+---------------------------------+----------------------------------+------------+----------+----------+-------------+-------------
Thu Jan 01 00:00:00 1970 | infinity | infinity | -infinity | @ 0 | 01-01-1970 | 00:00:00 | 00:00:00 | 00:00:00+00 | 00:00:00+00
| | | | | | | | |
Fri Jan 08 04:05:06 1999 | Fri Jan 08 04:05:06.23 1999 | Thu Jan 07 18:05:06 1999 PST | Fri Jan 08 04:05:06.23 1999 PST | @ 1 day 12 hours 34 mins 56 secs | 01-08-1999 | 04:05:06 | 00:00:00 | 00:01:02-08 | 00:01:00-02
(3 rows)
select * from t5;
b | pt | ls | p | bo | po | c
---+-------+---------------+---------------------------+-------------+---------------------+------------
t | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,1),4>
| | | | | |
f | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3),(4,4)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,2),43>
(3 rows)
select * from s6.t6;
c | i | m
--------------+--------------------+-------------------
| |
127.0.0.1/32 | 2001:4f8:3:ba::/64 | 08:02:0b:02:ac:e3
(2 rows)
select * from t7;
b | bv | ia | ta
-----+-------+---------+-----------------------------
| | |
101 | 00101 | {1,2,3} | {{Hello,world},{from,Mars}}
000 | 00 | {4,5} | {{"",""},{"",""}}
111 | | {} | {{1,2},{3,4},{5,6}}
(4 rows)
select * from t8;
i | c | ct
---+-------+-------------
2 | (,-1) | (,)
1 | (1,2) | (Hello,8.3)
1 | (0,0) | ("",)
| |
(4 rows)
select * from t9;
i
---
1
2
(3 rows)
select * from t10;
j
---
3
4
(3 rows)
insert into t2 values (100), (101);
select * from t2;
i | s | bs
-----+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
101 | 6 | 6
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
100 | 5 | 5
(8 rows)
select * from t11;
ERROR: relation "t11" does not exist
\c regressrestoretest6
select * from t1;
i | si | bi | de | n | n103 | r | dou
----+----+----+------+--------+-------+----------+-----------
1 | 2 | 3 | 3.14 | 3.1415 | 3.142 | 2.71 | 2.71828
| | | | | | |
2 | 2 | 2 | 2.0 | 2.0 | 2.000 | Infinity | NaN
-3 | -2 | -1 | 1.4 | 1.41 | 1.414 | NaN | -Infinity
(4 rows)
select * from t2;
i | s | bs
---+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
(6 rows)
select * from t3;
m | c | vc | t | ba
---------+------------+------------+--------------------------+--------------------
$10.20 | Simple | Simple VC | Text column | string as ba
$10.00 | It's OK | It's OK | It's still OK | It's binary OK
$100.00 | \x09\r | \x09\r | \x09\r | \011\015\012v
: v\ : v\ : v\
$100.00 | | | |
| | | |
-$3.00 | 1234567890 | 1234567890 | Too long to test filling | \001\000\000\002\\
(6 rows)
select * from t4;
t | t2 | tz | tz3 | i | d | ti | ti4 | tiz | tiz5
--------------------------+-----------------------------+------------------------------+---------------------------------+----------------------------------+------------+----------+----------+-------------+-------------
Thu Jan 01 00:00:00 1970 | infinity | infinity | -infinity | @ 0 | 01-01-1970 | 00:00:00 | 00:00:00 | 00:00:00+00 | 00:00:00+00
| | | | | | | | |
Fri Jan 08 04:05:06 1999 | Fri Jan 08 04:05:06.23 1999 | Thu Jan 07 18:05:06 1999 PST | Fri Jan 08 04:05:06.23 1999 PST | @ 1 day 12 hours 34 mins 56 secs | 01-08-1999 | 04:05:06 | 00:00:00 | 00:01:02-08 | 00:01:00-02
(3 rows)
select * from t5;
b | pt | ls | p | bo | po | c
---+-------+---------------+---------------------------+-------------+---------------------+------------
t | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,1),4>
| | | | | |
f | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3),(4,4)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,2),43>
(3 rows)
select * from s6.t6;
c | i | m
--------------+--------------------+-------------------
| |
127.0.0.1/32 | 2001:4f8:3:ba::/64 | 08:02:0b:02:ac:e3
(2 rows)
select * from t7;
b | bv | ia | ta
-----+-------+---------+-----------------------------
| | |
101 | 00101 | {1,2,3} | {{Hello,world},{from,Mars}}
000 | 00 | {4,5} | {{"",""},{"",""}}
111 | | {} | {{1,2},{3,4},{5,6}}
(4 rows)
select * from t8;
i | c | ct
---+-------+-------------
1 | (1,2) | (Hello,8.3)
1 | (0,0) | ("",)
| |
2 | (,-1) | (,)
(4 rows)
select * from t9;
i
---
1
2
(3 rows)
select * from t10;
j
---
3
4
(3 rows)
insert into t2 values (100), (101);
select * from t2;
i | s | bs
-----+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
101 | 6 | 6
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
100 | 5 | 5
(8 rows)
select * from t11;
ERROR: relation "t11" does not exist
\c regressrestoretest7
select * from t1;
i | si | bi | de | n | n103 | r | dou
----+----+----+------+--------+-------+----------+-----------
1 | 2 | 3 | 3.14 | 3.1415 | 3.142 | 2.71 | 2.71828
| | | | | | |
2 | 2 | 2 | 2.0 | 2.0 | 2.000 | Infinity | NaN
-3 | -2 | -1 | 1.4 | 1.41 | 1.414 | NaN | -Infinity
(4 rows)
select * from t2;
i | s | bs
---+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
(6 rows)
select * from t3;
m | c | vc | t | ba
---------+------------+------------+--------------------------+--------------------
$10.20 | Simple | Simple VC | Text column | string as ba
$10.00 | It's OK | It's OK | It's still OK | It's binary OK
$100.00 | \x09\r | \x09\r | \x09\r | \011\015\012v
: v\ : v\ : v\
$100.00 | | | |
| | | |
-$3.00 | 1234567890 | 1234567890 | Too long to test filling | \001\000\000\002\\
(6 rows)
select * from t4;
t | t2 | tz | tz3 | i | d | ti | ti4 | tiz | tiz5
--------------------------+-----------------------------+------------------------------+---------------------------------+----------------------------------+------------+----------+----------+-------------+-------------
Thu Jan 01 00:00:00 1970 | infinity | infinity | -infinity | @ 0 | 01-01-1970 | 00:00:00 | 00:00:00 | 00:00:00+00 | 00:00:00+00
| | | | | | | | |
Fri Jan 08 04:05:06 1999 | Fri Jan 08 04:05:06.23 1999 | Thu Jan 07 18:05:06 1999 PST | Fri Jan 08 04:05:06.23 1999 PST | @ 1 day 12 hours 34 mins 56 secs | 01-08-1999 | 04:05:06 | 00:00:00 | 00:01:02-08 | 00:01:00-02
(3 rows)
select * from t5;
b | pt | ls | p | bo | po | c
---+-------+---------------+---------------------------+-------------+---------------------+------------
t | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,1),4>
| | | | | |
f | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3),(4,4)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,2),43>
(3 rows)
select * from s6.t6;
c | i | m
--------------+--------------------+-------------------
| |
127.0.0.1/32 | 2001:4f8:3:ba::/64 | 08:02:0b:02:ac:e3
(2 rows)
select * from t7;
b | bv | ia | ta
-----+-------+---------+-----------------------------
| | |
101 | 00101 | {1,2,3} | {{Hello,world},{from,Mars}}
000 | 00 | {4,5} | {{"",""},{"",""}}
111 | | {} | {{1,2},{3,4},{5,6}}
(4 rows)
select * from t8;
i | c | ct
---+-------+-------------
1 | (1,2) | (Hello,8.3)
1 | (0,0) | ("",)
| |
2 | (,-1) | (,)
(4 rows)
select * from t9;
i
---
1
2
(3 rows)
select * from t10;
j
---
3
4
(3 rows)
insert into t2 values (100), (101);
select * from t2;
i | s | bs
-----+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
101 | 6 | 6
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
100 | 5 | 5
(8 rows)
select * from t11;
ERROR: relation "t11" does not exist
\c regressrestoretest8
select * from t1;
i | si | bi | de | n | n103 | r | dou
---+----+----+----+---+------+---+-----
(0 rows)
select * from t2;
i | s | bs
---+---+----
(0 rows)
select * from t3;
m | c | vc | t | ba
---+---+----+---+----
(0 rows)
select * from t4;
t | t2 | tz | tz3 | i | d | ti | ti4 | tiz | tiz5
---+----+----+-----+---+---+----+-----+-----+------
(0 rows)
select * from t5;
b | pt | ls | p | bo | po | c
---+----+----+---+----+----+---
(0 rows)
select * from s6.t6;
c | i | m
---+---+---
(0 rows)
select * from t7;
b | bv | ia | ta
---+----+----+----
(0 rows)
select * from t8;
i | c | ct
---+---+----
(0 rows)
select * from t9;
i
---
(0 rows)
select * from t10;
j
---
(0 rows)
insert into t2 values (100), (101);
select * from t2;
i | s | bs
-----+---+----
101 | 6 | 6
100 | 5 | 5
(2 rows)
select * from t11;
ERROR: relation "t11" does not exist
\c regressrestoretest9
select * from t1;
i | si | bi | de | n | n103 | r | dou
----+----+----+------+--------+-------+----------+-----------
1 | 2 | 3 | 3.14 | 3.1415 | 3.142 | 2.71 | 2.71828
| | | | | | |
2 | 2 | 2 | 2.0 | 2.0 | 2.000 | Infinity | NaN
-3 | -2 | -1 | 1.4 | 1.41 | 1.414 | NaN | -Infinity
(4 rows)
select * from t2;
i | s | bs
---+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
(6 rows)
select * from t3;
m | c | vc | t | ba
---------+------------+------------+--------------------------+--------------------
$10.20 | Simple | Simple VC | Text column | string as ba
$10.00 | It's OK | It's OK | It's still OK | It's binary OK
$100.00 | \x09\r | \x09\r | \x09\r | \011\015\012v
: v\ : v\ : v\
$100.00 | | | |
| | | |
-$3.00 | 1234567890 | 1234567890 | Too long to test filling | \001\000\000\002\\
(6 rows)
select * from t4;
t | t2 | tz | tz3 | i | d | ti | ti4 | tiz | tiz5
--------------------------+-----------------------------+------------------------------+---------------------------------+----------------------------------+------------+----------+----------+-------------+-------------
Thu Jan 01 00:00:00 1970 | infinity | infinity | -infinity | @ 0 | 01-01-1970 | 00:00:00 | 00:00:00 | 00:00:00+00 | 00:00:00+00
| | | | | | | | |
Fri Jan 08 04:05:06 1999 | Fri Jan 08 04:05:06.23 1999 | Thu Jan 07 18:05:06 1999 PST | Fri Jan 08 04:05:06.23 1999 PST | @ 1 day 12 hours 34 mins 56 secs | 01-08-1999 | 04:05:06 | 00:00:00 | 00:01:02-08 | 00:01:00-02
(3 rows)
select * from t5;
b | pt | ls | p | bo | po | c
---+-------+---------------+---------------------------+-------------+---------------------+------------
t | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,1),4>
| | | | | |
f | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3),(4,4)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,2),43>
(3 rows)
select * from s6.t6;
c | i | m
--------------+--------------------+-------------------
| |
127.0.0.1/32 | 2001:4f8:3:ba::/64 | 08:02:0b:02:ac:e3
(2 rows)
select * from t7;
b | bv | ia | ta
-----+-------+---------+-----------------------------
| | |
101 | 00101 | {1,2,3} | {{Hello,world},{from,Mars}}
000 | 00 | {4,5} | {{"",""},{"",""}}
111 | | {} | {{1,2},{3,4},{5,6}}
(4 rows)
select * from t8;
i | c | ct
---+-------+-------------
1 | (1,2) | (Hello,8.3)
1 | (0,0) | ("",)
| |
2 | (,-1) | (,)
(4 rows)
select * from t9;
i
---
1
2
(3 rows)
select * from t10;
j
---
3
4
(3 rows)
insert into t2 values (100), (101);
select * from t2;
i | s | bs
-----+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
101 | 6 | 6
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
100 | 5 | 5
(8 rows)
select * from t11;
ERROR: relation "t11" does not exist
\c regressrestoretest10
select * from t1;
i | si | bi | de | n | n103 | r | dou
----+----+----+------+--------+-------+----------+-----------
1 | 2 | 3 | 3.14 | 3.1415 | 3.142 | 2.71 | 2.71828
| | | | | | |
2 | 2 | 2 | 2.0 | 2.0 | 2.000 | Infinity | NaN
-3 | -2 | -1 | 1.4 | 1.41 | 1.414 | NaN | -Infinity
(4 rows)
select * from t2;
i | s | bs
---+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
(6 rows)
select * from t3;
m | c | vc | t | ba
---------+------------+------------+--------------------------+--------------------
$10.20 | Simple | Simple VC | Text column | string as ba
$10.00 | It's OK | It's OK | It's still OK | It's binary OK
$100.00 | \x09\r | \x09\r | \x09\r | \011\015\012v
: v\ : v\ : v\
$100.00 | | | |
| | | |
-$3.00 | 1234567890 | 1234567890 | Too long to test filling | \001\000\000\002\\
(6 rows)
select * from t4;
t | t2 | tz | tz3 | i | d | ti | ti4 | tiz | tiz5
--------------------------+-----------------------------+------------------------------+---------------------------------+----------------------------------+------------+----------+----------+-------------+-------------
Thu Jan 01 00:00:00 1970 | infinity | infinity | -infinity | @ 0 | 01-01-1970 | 00:00:00 | 00:00:00 | 00:00:00+00 | 00:00:00+00
| | | | | | | | |
Fri Jan 08 04:05:06 1999 | Fri Jan 08 04:05:06.23 1999 | Thu Jan 07 18:05:06 1999 PST | Fri Jan 08 04:05:06.23 1999 PST | @ 1 day 12 hours 34 mins 56 secs | 01-08-1999 | 04:05:06 | 00:00:00 | 00:01:02-08 | 00:01:00-02
(3 rows)
select * from t5;
b | pt | ls | p | bo | po | c
---+-------+---------------+---------------------------+-------------+---------------------+------------
t | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,1),4>
| | | | | |
f | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3),(4,4)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,2),43>
(3 rows)
select * from s6.t6;
c | i | m
--------------+--------------------+-------------------
| |
127.0.0.1/32 | 2001:4f8:3:ba::/64 | 08:02:0b:02:ac:e3
(2 rows)
select * from t7;
b | bv | ia | ta
-----+-------+---------+-----------------------------
| | |
101 | 00101 | {1,2,3} | {{Hello,world},{from,Mars}}
000 | 00 | {4,5} | {{"",""},{"",""}}
111 | | {} | {{1,2},{3,4},{5,6}}
(4 rows)
select * from t8;
i | c | ct
---+-------+-------------
1 | (1,2) | (Hello,8.3)
1 | (0,0) | ("",)
| |
2 | (,-1) | (,)
(4 rows)
select * from t9;
i
---
1
2
(3 rows)
select * from t10;
j
---
3
4
(3 rows)
insert into t2 values (100), (101);
select * from t2;
i | s | bs
-----+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
101 | 6 | 6
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
100 | 5 | 5
(8 rows)
select * from t11;
ERROR: relation "t11" does not exist
\c regressrestoretest11
select * from t1;
i | si | bi | de | n | n103 | r | dou
----+----+----+------+--------+-------+----------+-----------
1 | 2 | 3 | 3.14 | 3.1415 | 3.142 | 2.71 | 2.71828
| | | | | | |
2 | 2 | 2 | 2.0 | 2.0 | 2.000 | Infinity | NaN
-3 | -2 | -1 | 1.4 | 1.41 | 1.414 | NaN | -Infinity
(4 rows)
select * from t2;
i | s | bs
---+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
(6 rows)
select * from t3;
m | c | vc | t | ba
---------+------------+------------+--------------------------+--------------------
$10.20 | Simple | Simple VC | Text column | string as ba
$10.00 | It's OK | It's OK | It's still OK | It's binary OK
$100.00 | \x09\r | \x09\r | \x09\r | \011\015\012v
: v\ : v\ : v\
$100.00 | | | |
| | | |
-$3.00 | 1234567890 | 1234567890 | Too long to test filling | \001\000\000\002\\
(6 rows)
select * from t4;
t | t2 | tz | tz3 | i | d | ti | ti4 | tiz | tiz5
--------------------------+-----------------------------+------------------------------+---------------------------------+----------------------------------+------------+----------+----------+-------------+-------------
Thu Jan 01 00:00:00 1970 | infinity | infinity | -infinity | @ 0 | 01-01-1970 | 00:00:00 | 00:00:00 | 00:00:00+00 | 00:00:00+00
| | | | | | | | |
Fri Jan 08 04:05:06 1999 | Fri Jan 08 04:05:06.23 1999 | Thu Jan 07 18:05:06 1999 PST | Fri Jan 08 04:05:06.23 1999 PST | @ 1 day 12 hours 34 mins 56 secs | 01-08-1999 | 04:05:06 | 00:00:00 | 00:01:02-08 | 00:01:00-02
(3 rows)
select * from t5;
b | pt | ls | p | bo | po | c
---+-------+---------------+---------------------------+-------------+---------------------+------------
t | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,1),4>
| | | | | |
f | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3),(4,4)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,2),43>
(3 rows)
select * from s6.t6;
c | i | m
--------------+--------------------+-------------------
| |
127.0.0.1/32 | 2001:4f8:3:ba::/64 | 08:02:0b:02:ac:e3
(2 rows)
select * from t7;
b | bv | ia | ta
-----+-------+---------+-----------------------------
| | |
101 | 00101 | {1,2,3} | {{Hello,world},{from,Mars}}
000 | 00 | {4,5} | {{"",""},{"",""}}
111 | | {} | {{1,2},{3,4},{5,6}}
(4 rows)
select * from t8;
i | c | ct
---+-------+-------------
1 | (1,2) | (Hello,8.3)
1 | (0,0) | ("",)
| |
2 | (,-1) | (,)
(4 rows)
select * from t9;
i
---
1
2
(3 rows)
select * from t10;
j
---
3
4
(3 rows)
insert into t2 values (100), (101);
select * from t2;
i | s | bs
-----+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
101 | 6 | 6
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
100 | 5 | 5
(8 rows)
select * from t11;
ERROR: relation "t11" does not exist
\c regressrestoretest12
select * from t1;
i | si | bi | de | n | n103 | r | dou
----+----+----+------+--------+-------+----------+-----------
1 | 2 | 3 | 3.14 | 3.1415 | 3.142 | 2.71 | 2.71828
| | | | | | |
2 | 2 | 2 | 2.0 | 2.0 | 2.000 | Infinity | NaN
-3 | -2 | -1 | 1.4 | 1.41 | 1.414 | NaN | -Infinity
(4 rows)
select * from t2;
i | s | bs
---+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
(6 rows)
select * from t3;
m | c | vc | t | ba
---------+------------+------------+--------------------------+--------------------
$10.20 | Simple | Simple VC | Text column | string as ba
$10.00 | It's OK | It's OK | It's still OK | It's binary OK
$100.00 | \x09\r | \x09\r | \x09\r | \011\015\012v
: v\ : v\ : v\
$100.00 | | | |
| | | |
-$3.00 | 1234567890 | 1234567890 | Too long to test filling | \001\000\000\002\\
(6 rows)
select * from t4;
t | t2 | tz | tz3 | i | d | ti | ti4 | tiz | tiz5
--------------------------+-----------------------------+------------------------------+---------------------------------+----------------------------------+------------+----------+----------+-------------+-------------
Thu Jan 01 00:00:00 1970 | infinity | infinity | -infinity | @ 0 | 01-01-1970 | 00:00:00 | 00:00:00 | 00:00:00+00 | 00:00:00+00
| | | | | | | | |
Fri Jan 08 04:05:06 1999 | Fri Jan 08 04:05:06.23 1999 | Thu Jan 07 18:05:06 1999 PST | Fri Jan 08 04:05:06.23 1999 PST | @ 1 day 12 hours 34 mins 56 secs | 01-08-1999 | 04:05:06 | 00:00:00 | 00:01:02-08 | 00:01:00-02
(3 rows)
select * from t5;
b | pt | ls | p | bo | po | c
---+-------+---------------+---------------------------+-------------+---------------------+------------
t | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,1),4>
| | | | | |
f | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3),(4,4)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,2),43>
(3 rows)
select * from s6.t6;
c | i | m
--------------+--------------------+-------------------
| |
127.0.0.1/32 | 2001:4f8:3:ba::/64 | 08:02:0b:02:ac:e3
(2 rows)
select * from t7;
b | bv | ia | ta
-----+-------+---------+-----------------------------
| | |
101 | 00101 | {1,2,3} | {{Hello,world},{from,Mars}}
000 | 00 | {4,5} | {{"",""},{"",""}}
111 | | {} | {{1,2},{3,4},{5,6}}
(4 rows)
select * from t8;
i | c | ct
---+-------+-------------
1 | (1,2) | (Hello,8.3)
1 | (0,0) | ("",)
| |
2 | (,-1) | (,)
(4 rows)
select * from t9;
i
---
1
2
(3 rows)
select * from t10;
j
---
3
4
(3 rows)
insert into t2 values (100), (101);
select * from t2;
i | s | bs
-----+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
101 | 6 | 6
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
100 | 5 | 5
(8 rows)
select * from t11;
ERROR: relation "t11" does not exist
\c regressrestoretest13
select * from t1;
i | si | bi | de | n | n103 | r | dou
----+----+----+------+--------+-------+----------+-----------
1 | 2 | 3 | 3.14 | 3.1415 | 3.142 | 2.71 | 2.71828
| | | | | | |
2 | 2 | 2 | 2.0 | 2.0 | 2.000 | Infinity | NaN
-3 | -2 | -1 | 1.4 | 1.41 | 1.414 | NaN | -Infinity
(4 rows)
select * from t2;
i | s | bs
---+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
(6 rows)
select * from t3;
m | c | vc | t | ba
---------+------------+------------+--------------------------+--------------------
$10.20 | Simple | Simple VC | Text column | string as ba
$10.00 | It's OK | It's OK | It's still OK | It's binary OK
$100.00 | \x09\r | \x09\r | \x09\r | \011\015\012v
: v\ : v\ : v\
$100.00 | | | |
| | | |
-$3.00 | 1234567890 | 1234567890 | Too long to test filling | \001\000\000\002\\
(6 rows)
select * from t4;
t | t2 | tz | tz3 | i | d | ti | ti4 | tiz | tiz5
--------------------------+-----------------------------+------------------------------+---------------------------------+----------------------------------+------------+----------+----------+-------------+-------------
Thu Jan 01 00:00:00 1970 | infinity | infinity | -infinity | @ 0 | 01-01-1970 | 00:00:00 | 00:00:00 | 00:00:00+00 | 00:00:00+00
| | | | | | | | |
Fri Jan 08 04:05:06 1999 | Fri Jan 08 04:05:06.23 1999 | Thu Jan 07 18:05:06 1999 PST | Fri Jan 08 04:05:06.23 1999 PST | @ 1 day 12 hours 34 mins 56 secs | 01-08-1999 | 04:05:06 | 00:00:00 | 00:01:02-08 | 00:01:00-02
(3 rows)
select * from t5;
b | pt | ls | p | bo | po | c
---+-------+---------------+---------------------------+-------------+---------------------+------------
t | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,1),4>
| | | | | |
f | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3),(4,4)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,2),43>
(3 rows)
select * from s6.t6;
c | i | m
--------------+--------------------+-------------------
| |
127.0.0.1/32 | 2001:4f8:3:ba::/64 | 08:02:0b:02:ac:e3
(2 rows)
select * from t7;
b | bv | ia | ta
-----+-------+---------+-----------------------------
| | |
101 | 00101 | {1,2,3} | {{Hello,world},{from,Mars}}
000 | 00 | {4,5} | {{"",""},{"",""}}
111 | | {} | {{1,2},{3,4},{5,6}}
(4 rows)
select * from t8;
i | c | ct
---+-------+-------------
1 | (1,2) | (Hello,8.3)
1 | (0,0) | ("",)
| |
2 | (,-1) | (,)
(4 rows)
select * from t9;
i
---
1
2
(3 rows)
select * from t10;
j
---
3
4
(3 rows)
insert into t2 values (100), (101);
select * from t2;
i | s | bs
-----+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
101 | 6 | 6
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
100 | 5 | 5
(8 rows)
select * from t11;
ERROR: relation "t11" does not exist
\c regressrestoretest14
select * from t1;
i | si | bi | de | n | n103 | r | dou
----+----+----+------+--------+-------+----------+-----------
2 | 2 | 2 | 2.0 | 2.0 | 2.000 | Infinity | NaN
-3 | -2 | -1 | 1.4 | 1.41 | 1.414 | NaN | -Infinity
1 | 2 | 3 | 3.14 | 3.1415 | 3.142 | 2.71 | 2.71828
| | | | | | |
(4 rows)
select * from t2;
i | s | bs
---+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
(6 rows)
select * from t3;
m | c | vc | t | ba
---------+------------+------------+--------------------------+--------------------
$10.20 | Simple | Simple VC | Text column | string as ba
$10.00 | It's OK | It's OK | It's still OK | It's binary OK
$100.00 | \x09\r | \x09\r | \x09\r | \011\015\012v
: v\ : v\ : v\
$100.00 | | | |
| | | |
-$3.00 | 1234567890 | 1234567890 | Too long to test filling | \001\000\000\002\\
(6 rows)
select * from t4;
t | t2 | tz | tz3 | i | d | ti | ti4 | tiz | tiz5
--------------------------+-----------------------------+------------------------------+---------------------------------+----------------------------------+------------+----------+----------+-------------+-------------
Thu Jan 01 00:00:00 1970 | infinity | infinity | -infinity | @ 0 | 01-01-1970 | 00:00:00 | 00:00:00 | 00:00:00+00 | 00:00:00+00
| | | | | | | | |
Fri Jan 08 04:05:06 1999 | Fri Jan 08 04:05:06.23 1999 | Thu Jan 07 18:05:06 1999 PST | Fri Jan 08 04:05:06.23 1999 PST | @ 1 day 12 hours 34 mins 56 secs | 01-08-1999 | 04:05:06 | 00:00:00 | 00:01:02-08 | 00:01:00-02
(3 rows)
select * from t5;
b | pt | ls | p | bo | po | c
---+-------+---------------+---------------------------+-------------+---------------------+------------
t | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,1),4>
| | | | | |
f | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3),(4,4)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,2),43>
(3 rows)
select * from s6.t6;
c | i | m
--------------+--------------------+-------------------
| |
127.0.0.1/32 | 2001:4f8:3:ba::/64 | 08:02:0b:02:ac:e3
(2 rows)
select * from t7;
b | bv | ia | ta
-----+-------+---------+-----------------------------
| | |
101 | 00101 | {1,2,3} | {{Hello,world},{from,Mars}}
000 | 00 | {4,5} | {{"",""},{"",""}}
111 | | {} | {{1,2},{3,4},{5,6}}
(4 rows)
select * from t8;
i | c | ct
---+-------+-------------
1 | (1,2) | (Hello,8.3)
1 | (0,0) | ("",)
| |
2 | (,-1) | (,)
(4 rows)
select * from t9;
i
---
1
2
(3 rows)
select * from t10;
j
---
3
4
(3 rows)
insert into t2 values (100), (101);
select * from t2;
i | s | bs
-----+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
101 | 6 | 6
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
100 | 5 | 5
(8 rows)
select * from t11;
ERROR: relation "t11" does not exist
\c regressrestoretest15
select * from t1;
i | si | bi | de | n | n103 | r | dou
----+----+----+------+--------+-------+----------+-----------
1 | 2 | 3 | 3.14 | 3.1415 | 3.142 | 2.71 | 2.71828
| | | | | | |
2 | 2 | 2 | 2.0 | 2.0 | 2.000 | Infinity | NaN
-3 | -2 | -1 | 1.4 | 1.41 | 1.414 | NaN | -Infinity
(4 rows)
select * from t2;
i | s | bs
---+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
(6 rows)
select * from t3;
m | c | vc | t | ba
---------+------------+------------+--------------------------+--------------------
$10.20 | Simple | Simple VC | Text column | string as ba
$10.00 | It's OK | It's OK | It's still OK | It's binary OK
$100.00 | \x09\r | \x09\r | \x09\r | \011\015\012v
: v\ : v\ : v\
$100.00 | | | |
| | | |
-$3.00 | 1234567890 | 1234567890 | Too long to test filling | \001\000\000\002\\
(6 rows)
select * from t4;
t | t2 | tz | tz3 | i | d | ti | ti4 | tiz | tiz5
--------------------------+-----------------------------+------------------------------+---------------------------------+----------------------------------+------------+----------+----------+-------------+-------------
Thu Jan 01 00:00:00 1970 | infinity | infinity | -infinity | @ 0 | 01-01-1970 | 00:00:00 | 00:00:00 | 00:00:00+00 | 00:00:00+00
| | | | | | | | |
Fri Jan 08 04:05:06 1999 | Fri Jan 08 04:05:06.23 1999 | Thu Jan 07 18:05:06 1999 PST | Fri Jan 08 04:05:06.23 1999 PST | @ 1 day 12 hours 34 mins 56 secs | 01-08-1999 | 04:05:06 | 00:00:00 | 00:01:02-08 | 00:01:00-02
(3 rows)
select * from t5;
b | pt | ls | p | bo | po | c
---+-------+---------------+---------------------------+-------------+---------------------+------------
t | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,1),4>
| | | | | |
f | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3),(4,4)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,2),43>
(3 rows)
select * from s6.t6;
c | i | m
--------------+--------------------+-------------------
| |
127.0.0.1/32 | 2001:4f8:3:ba::/64 | 08:02:0b:02:ac:e3
(2 rows)
select * from t7;
b | bv | ia | ta
-----+-------+---------+-----------------------------
101 | 00101 | {1,2,3} | {{Hello,world},{from,Mars}}
000 | 00 | {4,5} | {{"",""},{"",""}}
111 | | {} | {{1,2},{3,4},{5,6}}
| | |
(4 rows)
select * from t8;
i | c | ct
---+-------+-------------
1 | (1,2) | (Hello,8.3)
1 | (0,0) | ("",)
| |
2 | (,-1) | (,)
(4 rows)
select * from t9;
i
---
1
2
(3 rows)
select * from t10;
j
---
3
4
(3 rows)
insert into t2 values (100), (101);
select * from t2;
i | s | bs
-----+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
101 | 6 | 6
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
100 | 5 | 5
(8 rows)
select * from t11;
ERROR: relation "t11" does not exist
\c regressrestoretest16
select * from t1;
i | si | bi | de | n | n103 | r | dou
----+----+----+------+--------+-------+----------+-----------
1 | 2 | 3 | 3.14 | 3.1415 | 3.142 | 2.71 | 2.71828
| | | | | | |
2 | 2 | 2 | 2.0 | 2.0 | 2.000 | Infinity | NaN
-3 | -2 | -1 | 1.4 | 1.41 | 1.414 | NaN | -Infinity
(4 rows)
select * from t2;
i | s | bs
---+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
(6 rows)
select * from t3;
m | c | vc | t | ba
---------+------------+------------+--------------------------+--------------------
$10.20 | Simple | Simple VC | Text column | string as ba
$10.00 | It's OK | It's OK | It's still OK | It's binary OK
$100.00 | \x09\r | \x09\r | \x09\r | \011\015\012v
: v\ : v\ : v\
$100.00 | | | |
| | | |
-$3.00 | 1234567890 | 1234567890 | Too long to test filling | \001\000\000\002\\
(6 rows)
select * from t4;
t | t2 | tz | tz3 | i | d | ti | ti4 | tiz | tiz5
--------------------------+-----------------------------+------------------------------+---------------------------------+----------------------------------+------------+----------+----------+-------------+-------------
Thu Jan 01 00:00:00 1970 | infinity | infinity | -infinity | @ 0 | 01-01-1970 | 00:00:00 | 00:00:00 | 00:00:00+00 | 00:00:00+00
| | | | | | | | |
Fri Jan 08 04:05:06 1999 | Fri Jan 08 04:05:06.23 1999 | Thu Jan 07 18:05:06 1999 PST | Fri Jan 08 04:05:06.23 1999 PST | @ 1 day 12 hours 34 mins 56 secs | 01-08-1999 | 04:05:06 | 00:00:00 | 00:01:02-08 | 00:01:00-02
(3 rows)
select * from t5;
b | pt | ls | p | bo | po | c
---+-------+---------------+---------------------------+-------------+---------------------+------------
t | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,1),4>
| | | | | |
f | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3),(4,4)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,2),43>
(3 rows)
select * from s6.t6;
c | i | m
--------------+--------------------+-------------------
| |
127.0.0.1/32 | 2001:4f8:3:ba::/64 | 08:02:0b:02:ac:e3
(2 rows)
select * from t7;
b | bv | ia | ta
-----+-------+---------+-----------------------------
| | |
101 | 00101 | {1,2,3} | {{Hello,world},{from,Mars}}
000 | 00 | {4,5} | {{"",""},{"",""}}
111 | | {} | {{1,2},{3,4},{5,6}}
(4 rows)
select * from t8;
i | c | ct
---+-------+-------------
1 | (1,2) | (Hello,8.3)
1 | (0,0) | ("",)
| |
2 | (,-1) | (,)
(4 rows)
select * from t9;
i
---
1
2
(3 rows)
select * from t10;
j
---
3
4
(3 rows)
insert into t2 values (100), (101);
select * from t2;
i | s | bs
-----+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
101 | 6 | 6
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
100 | 5 | 5
(8 rows)
select * from t11;
ERROR: relation "t11" does not exist
\c regressrestoretest17
select * from t1;
ERROR: relation "t1" does not exist
select * from t2;
ERROR: relation "t2" does not exist
select * from t3;
ERROR: relation "t3" does not exist
select * from t4;
ERROR: relation "t4" does not exist
select * from t5;
ERROR: relation "t5" does not exist
select * from s6.t6;
c | i | m
--------------+--------------------+-------------------
| |
127.0.0.1/32 | 2001:4f8:3:ba::/64 | 08:02:0b:02:ac:e3
(2 rows)
select * from t7;
ERROR: relation "t7" does not exist
select * from t8;
ERROR: relation "t8" does not exist
select * from t9;
ERROR: relation "t9" does not exist
select * from t10;
ERROR: relation "t10" does not exist
insert into t2 values (100), (101);
ERROR: relation "t2" does not exist
select * from t2;
ERROR: relation "t2" does not exist
select * from t11;
ERROR: relation "t11" does not exist
\c regressrestoretest18
select * from t1;
i | si | bi | de | n | n103 | r | dou
----+----+----+------+--------+-------+----------+-----------
1 | 2 | 3 | 3.14 | 3.1415 | 3.142 | 2.71 | 2.71828
| | | | | | |
2 | 2 | 2 | 2.0 | 2.0 | 2.000 | Infinity | NaN
-3 | -2 | -1 | 1.4 | 1.41 | 1.414 | NaN | -Infinity
(4 rows)
select * from t2;
i | s | bs
---+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
(6 rows)
select * from t3;
m | c | vc | t | ba
---------+------------+------------+--------------------------+--------------------
$10.20 | Simple | Simple VC | Text column | string as ba
$10.00 | It's OK | It's OK | It's still OK | It's binary OK
$100.00 | \x09\r | \x09\r | \x09\r | \011\015\012v
: v\ : v\ : v\
$100.00 | | | |
| | | |
-$3.00 | 1234567890 | 1234567890 | Too long to test filling | \001\000\000\002\\
(6 rows)
select * from t4;
t | t2 | tz | tz3 | i | d | ti | ti4 | tiz | tiz5
--------------------------+-----------------------------+------------------------------+---------------------------------+----------------------------------+------------+----------+----------+-------------+-------------
Thu Jan 01 00:00:00 1970 | infinity | infinity | -infinity | @ 0 | 01-01-1970 | 00:00:00 | 00:00:00 | 00:00:00+00 | 00:00:00+00
| | | | | | | | |
Fri Jan 08 04:05:06 1999 | Fri Jan 08 04:05:06.23 1999 | Thu Jan 07 18:05:06 1999 PST | Fri Jan 08 04:05:06.23 1999 PST | @ 1 day 12 hours 34 mins 56 secs | 01-08-1999 | 04:05:06 | 00:00:00 | 00:01:02-08 | 00:01:00-02
(3 rows)
select * from t5;
b | pt | ls | p | bo | po | c
---+-------+---------------+---------------------------+-------------+---------------------+------------
t | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,1),4>
| | | | | |
f | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3),(4,4)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,2),43>
(3 rows)
select * from s6.t6;
ERROR: schema "s6" does not exist
select * from t7;
b | bv | ia | ta
-----+-------+---------+-----------------------------
| | |
101 | 00101 | {1,2,3} | {{Hello,world},{from,Mars}}
000 | 00 | {4,5} | {{"",""},{"",""}}
111 | | {} | {{1,2},{3,4},{5,6}}
(4 rows)
select * from t8;
i | c | ct
---+-------+-------------
1 | (1,2) | (Hello,8.3)
1 | (0,0) | ("",)
| |
2 | (,-1) | (,)
(4 rows)
select * from t9;
i
---
1
2
(3 rows)
select * from t10;
j
---
3
4
(3 rows)
insert into t2 values (100), (101);
select * from t2;
i | s | bs
-----+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
101 | 6 | 6
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
100 | 5 | 5
(8 rows)
select * from t11;
ERROR: relation "t11" does not exist
\c regressrestoretest19
select * from t1;
i | si | bi | de | n | n103 | r | dou
----+----+----+------+--------+-------+----------+-----------
1 | 2 | 3 | 3.14 | 3.1415 | 3.142 | 2.71 | 2.71828
| | | | | | |
2 | 2 | 2 | 2.0 | 2.0 | 2.000 | Infinity | NaN
-3 | -2 | -1 | 1.4 | 1.41 | 1.414 | NaN | -Infinity
(4 rows)
select * from t2;
ERROR: relation "t2" does not exist
select * from t3;
ERROR: relation "t3" does not exist
select * from t4;
ERROR: relation "t4" does not exist
select * from t5;
ERROR: relation "t5" does not exist
select * from s6.t6;
ERROR: schema "s6" does not exist
select * from t7;
ERROR: relation "t7" does not exist
select * from t8;
ERROR: relation "t8" does not exist
select * from t9;
ERROR: relation "t9" does not exist
select * from t10;
ERROR: relation "t10" does not exist
insert into t2 values (100), (101);
ERROR: relation "t2" does not exist
select * from t2;
ERROR: relation "t2" does not exist
select * from t11;
ERROR: relation "t11" does not exist
\c regressrestoretest20
select * from t1;
ERROR: relation "t1" does not exist
select * from t2;
i | s | bs
---+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
(6 rows)
select * from t3;
m | c | vc | t | ba
---------+------------+------------+--------------------------+--------------------
$10.20 | Simple | Simple VC | Text column | string as ba
$10.00 | It's OK | It's OK | It's still OK | It's binary OK
$100.00 | \x09\r | \x09\r | \x09\r | \011\015\012v
: v\ : v\ : v\
$100.00 | | | |
| | | |
-$3.00 | 1234567890 | 1234567890 | Too long to test filling | \001\000\000\002\\
(6 rows)
select * from t4;
t | t2 | tz | tz3 | i | d | ti | ti4 | tiz | tiz5
--------------------------+-----------------------------+------------------------------+---------------------------------+----------------------------------+------------+----------+----------+-------------+-------------
Thu Jan 01 00:00:00 1970 | infinity | infinity | -infinity | @ 0 | 01-01-1970 | 00:00:00 | 00:00:00 | 00:00:00+00 | 00:00:00+00
| | | | | | | | |
Fri Jan 08 04:05:06 1999 | Fri Jan 08 04:05:06.23 1999 | Thu Jan 07 18:05:06 1999 PST | Fri Jan 08 04:05:06.23 1999 PST | @ 1 day 12 hours 34 mins 56 secs | 01-08-1999 | 04:05:06 | 00:00:00 | 00:01:02-08 | 00:01:00-02
(3 rows)
select * from t5;
b | pt | ls | p | bo | po | c
---+-------+---------------+---------------------------+-------------+---------------------+------------
t | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,1),4>
| | | | | |
f | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3),(4,4)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,2),43>
(3 rows)
select * from s6.t6;
c | i | m
--------------+--------------------+-------------------
| |
127.0.0.1/32 | 2001:4f8:3:ba::/64 | 08:02:0b:02:ac:e3
(2 rows)
select * from t7;
b | bv | ia | ta
-----+-------+---------+-----------------------------
| | |
101 | 00101 | {1,2,3} | {{Hello,world},{from,Mars}}
000 | 00 | {4,5} | {{"",""},{"",""}}
111 | | {} | {{1,2},{3,4},{5,6}}
(4 rows)
select * from t8;
i | c | ct
---+-------+-------------
1 | (1,2) | (Hello,8.3)
1 | (0,0) | ("",)
| |
2 | (,-1) | (,)
(4 rows)
select * from t9;
i
---
1
2
(3 rows)
select * from t10;
j
---
3
4
(3 rows)
insert into t2 values (100), (101);
select * from t2;
i | s | bs
-----+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
101 | 6 | 6
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
100 | 5 | 5
(8 rows)
select * from t11;
ERROR: relation "t11" does not exist
\c regressrestoretest21
select * from t1;
i | si | bi | de | n | n103 | r | dou
----+----+----+------+--------+-------+----------+-----------
1 | 2 | 3 | 3.14 | 3.1415 | 3.142 | 2.71 | 2.71828
| | | | | | |
2 | 2 | 2 | 2.0 | 2.0 | 2.000 | Infinity | NaN
-3 | -2 | -1 | 1.4 | 1.41 | 1.414 | NaN | -Infinity
(4 rows)
select * from t2;
i | s | bs
---+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
(6 rows)
select * from t3;
m | c | vc | t | ba
---------+------------+------------+--------------------------+--------------------
$10.20 | Simple | Simple VC | Text column | string as ba
$10.00 | It's OK | It's OK | It's still OK | It's binary OK
$100.00 | \x09\r | \x09\r | \x09\r | \011\015\012v
: v\ : v\ : v\
$100.00 | | | |
| | | |
-$3.00 | 1234567890 | 1234567890 | Too long to test filling | \001\000\000\002\\
(6 rows)
select * from t4;
t | t2 | tz | tz3 | i | d | ti | ti4 | tiz | tiz5
--------------------------+-----------------------------+------------------------------+---------------------------------+----------------------------------+------------+----------+----------+-------------+-------------
Thu Jan 01 00:00:00 1970 | infinity | infinity | -infinity | @ 0 | 01-01-1970 | 00:00:00 | 00:00:00 | 00:00:00+00 | 00:00:00+00
| | | | | | | | |
Fri Jan 08 04:05:06 1999 | Fri Jan 08 04:05:06.23 1999 | Thu Jan 07 18:05:06 1999 PST | Fri Jan 08 04:05:06.23 1999 PST | @ 1 day 12 hours 34 mins 56 secs | 01-08-1999 | 04:05:06 | 00:00:00 | 00:01:02-08 | 00:01:00-02
(3 rows)
select * from t5;
b | pt | ls | p | bo | po | c
---+-------+---------------+---------------------------+-------------+---------------------+------------
t | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,1),4>
| | | | | |
f | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3),(4,4)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,2),43>
(3 rows)
select * from s6.t6;
c | i | m
--------------+--------------------+-------------------
| |
127.0.0.1/32 | 2001:4f8:3:ba::/64 | 08:02:0b:02:ac:e3
(2 rows)
select * from t7;
b | bv | ia | ta
-----+-------+---------+-----------------------------
| | |
101 | 00101 | {1,2,3} | {{Hello,world},{from,Mars}}
000 | 00 | {4,5} | {{"",""},{"",""}}
111 | | {} | {{1,2},{3,4},{5,6}}
(4 rows)
select * from t8;
i | c | ct
---+-------+-------------
1 | (1,2) | (Hello,8.3)
1 | (0,0) | ("",)
| |
2 | (,-1) | (,)
(4 rows)
select * from t9;
i
---
1
2
(3 rows)
select * from t10;
j
---
3
4
(3 rows)
insert into t2 values (100), (101);
select * from t2;
i | s | bs
-----+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
101 | 6 | 6
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
100 | 5 | 5
(8 rows)
select * from t11;
ERROR: relation "t11" does not exist
\c regressrestoretest22
select * from t1;
i | si | bi | de | n | n103 | r | dou
----+----+----+------+--------+-------+----------+-----------
1 | 2 | 3 | 3.14 | 3.1415 | 3.142 | 2.71 | 2.71828
| | | | | | |
2 | 2 | 2 | 2.0 | 2.0 | 2.000 | Infinity | NaN
-3 | -2 | -1 | 1.4 | 1.41 | 1.414 | NaN | -Infinity
(4 rows)
select * from t2;
i | s | bs
---+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
(6 rows)
select * from t3;
m | c | vc | t | ba
---------+------------+------------+--------------------------+--------------------
$10.20 | Simple | Simple VC | Text column | string as ba
$10.00 | It's OK | It's OK | It's still OK | It's binary OK
$100.00 | \x09\r | \x09\r | \x09\r | \011\015\012v
: v\ : v\ : v\
$100.00 | | | |
| | | |
-$3.00 | 1234567890 | 1234567890 | Too long to test filling | \001\000\000\002\\
(6 rows)
select * from t4;
t | t2 | tz | tz3 | i | d | ti | ti4 | tiz | tiz5
--------------------------+-----------------------------+------------------------------+---------------------------------+----------------------------------+------------+----------+----------+-------------+-------------
Thu Jan 01 00:00:00 1970 | infinity | infinity | -infinity | @ 0 | 01-01-1970 | 00:00:00 | 00:00:00 | 00:00:00+00 | 00:00:00+00
| | | | | | | | |
Fri Jan 08 04:05:06 1999 | Fri Jan 08 04:05:06.23 1999 | Thu Jan 07 18:05:06 1999 PST | Fri Jan 08 04:05:06.23 1999 PST | @ 1 day 12 hours 34 mins 56 secs | 01-08-1999 | 04:05:06 | 00:00:00 | 00:01:02-08 | 00:01:00-02
(3 rows)
select * from t5;
b | pt | ls | p | bo | po | c
---+-------+---------------+---------------------------+-------------+---------------------+------------
t | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,1),4>
| | | | | |
f | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3),(4,4)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,2),43>
(3 rows)
select * from s6.t6;
c | i | m
--------------+--------------------+-------------------
| |
127.0.0.1/32 | 2001:4f8:3:ba::/64 | 08:02:0b:02:ac:e3
(2 rows)
select * from t7;
b | bv | ia | ta
-----+-------+---------+-----------------------------
| | |
101 | 00101 | {1,2,3} | {{Hello,world},{from,Mars}}
000 | 00 | {4,5} | {{"",""},{"",""}}
111 | | {} | {{1,2},{3,4},{5,6}}
(4 rows)
select * from t8;
i | c | ct
---+-------+-------------
1 | (1,2) | (Hello,8.3)
1 | (0,0) | ("",)
| |
2 | (,-1) | (,)
(4 rows)
select * from t9;
i
---
1
2
(3 rows)
select * from t10;
j
---
3
4
(3 rows)
insert into t2 values (100), (101);
select * from t2;
i | s | bs
-----+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
101 | 6 | 6
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
100 | 5 | 5
(8 rows)
select * from t11;
ERROR: relation "t11" does not exist
\c regressrestoretest23
select * from t1;
i | si | bi | de | n | n103 | r | dou
----+----+----+------+--------+-------+----------+-----------
1 | 2 | 3 | 3.14 | 3.1415 | 3.142 | 2.71 | 2.71828
| | | | | | |
2 | 2 | 2 | 2.0 | 2.0 | 2.000 | Infinity | NaN
-3 | -2 | -1 | 1.4 | 1.41 | 1.414 | NaN | -Infinity
(4 rows)
select * from t2;
i | s | bs
---+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
(6 rows)
select * from t3;
m | c | vc | t | ba
---------+------------+------------+--------------------------+--------------------
$10.20 | Simple | Simple VC | Text column | string as ba
$10.00 | It's OK | It's OK | It's still OK | It's binary OK
$100.00 | \x09\r | \x09\r | \x09\r | \011\015\012v
: v\ : v\ : v\
$100.00 | | | |
| | | |
-$3.00 | 1234567890 | 1234567890 | Too long to test filling | \001\000\000\002\\
(6 rows)
select * from t4;
t | t2 | tz | tz3 | i | d | ti | ti4 | tiz | tiz5
--------------------------+-----------------------------+------------------------------+---------------------------------+----------------------------------+------------+----------+----------+-------------+-------------
Thu Jan 01 00:00:00 1970 | infinity | infinity | -infinity | @ 0 | 01-01-1970 | 00:00:00 | 00:00:00 | 00:00:00+00 | 00:00:00+00
| | | | | | | | |
Fri Jan 08 04:05:06 1999 | Fri Jan 08 04:05:06.23 1999 | Thu Jan 07 18:05:06 1999 PST | Fri Jan 08 04:05:06.23 1999 PST | @ 1 day 12 hours 34 mins 56 secs | 01-08-1999 | 04:05:06 | 00:00:00 | 00:01:02-08 | 00:01:00-02
(3 rows)
select * from t5;
b | pt | ls | p | bo | po | c
---+-------+---------------+---------------------------+-------------+---------------------+------------
t | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,1),4>
| | | | | |
f | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3),(4,4)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,2),43>
(3 rows)
select * from s6.t6;
c | i | m
--------------+--------------------+-------------------
| |
127.0.0.1/32 | 2001:4f8:3:ba::/64 | 08:02:0b:02:ac:e3
(2 rows)
select * from t7;
b | bv | ia | ta
-----+-------+---------+-----------------------------
| | |
101 | 00101 | {1,2,3} | {{Hello,world},{from,Mars}}
000 | 00 | {4,5} | {{"",""},{"",""}}
111 | | {} | {{1,2},{3,4},{5,6}}
(4 rows)
select * from t8;
i | c | ct
---+-------+-------------
1 | (1,2) | (Hello,8.3)
1 | (0,0) | ("",)
| |
2 | (,-1) | (,)
(4 rows)
select * from t9;
i
---
1
2
(3 rows)
select * from t10;
j
---
3
4
(3 rows)
insert into t2 values (100), (101);
select * from t2;
i | s | bs
-----+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
101 | 6 | 6
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
100 | 5 | 5
(8 rows)
select * from t11;
ERROR: relation "t11" does not exist
\c regressrestoretest24
select * from t1;
i | si | bi | de | n | n103 | r | dou
----+----+----+------+--------+-------+----------+-----------
1 | 2 | 3 | 3.14 | 3.1415 | 3.142 | 2.71 | 2.71828
| | | | | | |
2 | 2 | 2 | 2.0 | 2.0 | 2.000 | Infinity | NaN
-3 | -2 | -1 | 1.4 | 1.41 | 1.414 | NaN | -Infinity
(4 rows)
select * from t2;
i | s | bs
---+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
(6 rows)
select * from t3;
m | c | vc | t | ba
---------+------------+------------+--------------------------+--------------------
$10.20 | Simple | Simple VC | Text column | string as ba
$10.00 | It's OK | It's OK | It's still OK | It's binary OK
$100.00 | \x09\r | \x09\r | \x09\r | \011\015\012v
: v\ : v\ : v\
$100.00 | | | |
| | | |
-$3.00 | 1234567890 | 1234567890 | Too long to test filling | \001\000\000\002\\
(6 rows)
select * from t4;
t | t2 | tz | tz3 | i | d | ti | ti4 | tiz | tiz5
--------------------------+-----------------------------+------------------------------+---------------------------------+----------------------------------+------------+----------+----------+-------------+-------------
Thu Jan 01 00:00:00 1970 | infinity | infinity | -infinity | @ 0 | 01-01-1970 | 00:00:00 | 00:00:00 | 00:00:00+00 | 00:00:00+00
| | | | | | | | |
Fri Jan 08 04:05:06 1999 | Fri Jan 08 04:05:06.23 1999 | Thu Jan 07 18:05:06 1999 PST | Fri Jan 08 04:05:06.23 1999 PST | @ 1 day 12 hours 34 mins 56 secs | 01-08-1999 | 04:05:06 | 00:00:00 | 00:01:02-08 | 00:01:00-02
(3 rows)
select * from t5;
b | pt | ls | p | bo | po | c
---+-------+---------------+---------------------------+-------------+---------------------+------------
t | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,1),4>
| | | | | |
f | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3),(4,4)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,2),43>
(3 rows)
select * from s6.t6;
c | i | m
--------------+--------------------+-------------------
| |
127.0.0.1/32 | 2001:4f8:3:ba::/64 | 08:02:0b:02:ac:e3
(2 rows)
select * from t7;
b | bv | ia | ta
-----+-------+---------+-----------------------------
| | |
101 | 00101 | {1,2,3} | {{Hello,world},{from,Mars}}
000 | 00 | {4,5} | {{"",""},{"",""}}
111 | | {} | {{1,2},{3,4},{5,6}}
(4 rows)
select * from t8;
i | c | ct
---+-------+-------------
1 | (1,2) | (Hello,8.3)
1 | (0,0) | ("",)
| |
2 | (,-1) | (,)
(4 rows)
select * from t9;
i
---
1
2
(3 rows)
select * from t10;
j
---
3
4
(3 rows)
insert into t2 values (100), (101);
select * from t2;
i | s | bs
-----+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
101 | 6 | 6
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
100 | 5 | 5
(8 rows)
select * from t11;
ERROR: relation "t11" does not exist
\c regressrestoretest25
select * from t1;
i | si | bi | de | n | n103 | r | dou
----+----+----+------+--------+-------+----------+-----------
1 | 2 | 3 | 3.14 | 3.1415 | 3.142 | 2.71 | 2.71828
| | | | | | |
2 | 2 | 2 | 2.0 | 2.0 | 2.000 | Infinity | NaN
-3 | -2 | -1 | 1.4 | 1.41 | 1.414 | NaN | -Infinity
(4 rows)
select * from t2;
i | s | bs
---+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
(6 rows)
select * from t3;
m | c | vc | t | ba
---------+------------+------------+--------------------------+--------------------
$10.20 | Simple | Simple VC | Text column | string as ba
$10.00 | It's OK | It's OK | It's still OK | It's binary OK
$100.00 | \x09\r | \x09\r | \x09\r | \011\015\012v
: v\ : v\ : v\
$100.00 | | | |
| | | |
-$3.00 | 1234567890 | 1234567890 | Too long to test filling | \001\000\000\002\\
(6 rows)
select * from t4;
t | t2 | tz | tz3 | i | d | ti | ti4 | tiz | tiz5
--------------------------+-----------------------------+------------------------------+---------------------------------+----------------------------------+------------+----------+----------+-------------+-------------
Fri Jan 08 04:05:06 1999 | Fri Jan 08 04:05:06.23 1999 | Thu Jan 07 18:05:06 1999 PST | Fri Jan 08 04:05:06.23 1999 PST | @ 1 day 12 hours 34 mins 56 secs | 01-08-1999 | 04:05:06 | 00:00:00 | 00:01:02-08 | 00:01:00-02
Thu Jan 01 00:00:00 1970 | infinity | infinity | -infinity | @ 0 | 01-01-1970 | 00:00:00 | 00:00:00 | 00:00:00+00 | 00:00:00+00
| | | | | | | | |
(3 rows)
select * from t5;
b | pt | ls | p | bo | po | c
---+-------+---------------+---------------------------+-------------+---------------------+------------
t | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,1),4>
| | | | | |
f | (1,2) | [(1,2),(0,0)] | ((1,1),(2,2),(3,3),(4,4)) | (2,2),(1,1) | ((1,0),(1,1),(2,2)) | <(0,2),43>
(3 rows)
select * from s6.t6;
c | i | m
--------------+--------------------+-------------------
| |
127.0.0.1/32 | 2001:4f8:3:ba::/64 | 08:02:0b:02:ac:e3
(2 rows)
select * from t7;
b | bv | ia | ta
-----+-------+---------+-----------------------------
| | |
101 | 00101 | {1,2,3} | {{Hello,world},{from,Mars}}
000 | 00 | {4,5} | {{"",""},{"",""}}
111 | | {} | {{1,2},{3,4},{5,6}}
(4 rows)
select * from t8;
i | c | ct
---+-------+-------------
1 | (1,2) | (Hello,8.3)
1 | (0,0) | ("",)
| |
2 | (,-1) | (,)
(4 rows)
select * from t9;
i
---
1
2
(3 rows)
select * from t10;
j
---
3
4
(3 rows)
insert into t2 values (100), (101);
select * from t2;
i | s | bs
-----+---+----
1 | 1 | 1
3 | 3 | 3
1 | 1 | 1
101 | 6 | 6
2 | 2 | 2
4 | 4 | 4
4 | 4 | 4
100 | 5 | 5
(8 rows)
select * from t11;
ERROR: relation "t11" does not exist
\c regress
\connect: FATAL: database "regress" does not exist
-- start_ignore
-- find version info
select version();
version
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PostgreSQL 8.2.4 (Greenplum Database cvs Head build dev build ) on i386-apple-darwin8.9.1, compiled by GCC i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367) compiled on Jun 5 2007 12:29:58 (with assert checking)
(1 row)
\echo Test pg_restore
Now test pg_restore
drop database if exists regressrestoretest9;
NOTICE: database "regressrestoretest9" does not exist, skipping
create database regressrestoretest9;
\! pg_restore -d regressrestoretest9 /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/bkuptest1_fc
pg_restore: [archiver] could not open input file: No such file or directory
drop database if exists regressrestoretest10;
NOTICE: database "regressrestoretest10" does not exist, skipping
create database regressrestoretest10;
\c regressrestoretest10
\i /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/bkuptest1_fp
/Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/bkuptest1_fp: No such file or directory
\c regression
drop database if exists regressrestoretest11;
NOTICE: database "regressrestoretest11" does not exist, skipping
create database regressrestoretest11;
\! pg_restore -d regressrestoretest11 /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/bkuptest1_ft
pg_restore: [archiver] could not open input file: No such file or directory
drop database if exists regressrestoretest12;
NOTICE: database "regressrestoretest12" does not exist, skipping
create database regressrestoretest12;
\! pg_restore -d regressrestoretest12 /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/bkuptest1_fc_Z
pg_restore: [archiver] could not open input file: No such file or directory
drop database if exists regressrestoretest13;
NOTICE: database "regressrestoretest13" does not exist, skipping
create database regressrestoretest13;
\! pg_restore -d regressrestoretest13 /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/bkuptest1_fc_schema
pg_restore: [archiver] could not open input file: No such file or directory
\! pg_restore -d regressrestoretest13 /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/bkuptest1_fc_data
pg_restore: [archiver] could not open input file: No such file or directory
drop database if exists regressrestoretest14;
NOTICE: database "regressrestoretest14" does not exist, skipping
create database regressrestoretest14;
\! pg_restore -d regressrestoretest14 /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/bkuptest1_fc_blobs
pg_restore: [archiver] could not open input file: No such file or directory
drop database if exists regressrestoretest15;
NOTICE: database "regressrestoretest15" does not exist, skipping
create database regressrestoretest15;
\! pg_restore -d regressrestoretest15 /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/bkuptest1_fc_create
pg_restore: [archiver] could not open input file: No such file or directory
drop database if exists regressrestoretest16;
NOTICE: database "regressrestoretest16" does not exist, skipping
create database regressrestoretest16;
\! pg_restore -d regressrestoretest16 /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/bkuptest1_fc_enc
pg_restore: [archiver] could not open input file: No such file or directory
drop database if exists regressrestoretest17;
NOTICE: database "regressrestoretest17" does not exist, skipping
create database regressrestoretest17;
\! pg_restore -d regressrestoretest17 /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/bkuptest1_fc_s6
pg_restore: [archiver] could not open input file: No such file or directory
drop database if exists regressrestoretest18;
NOTICE: database "regressrestoretest18" does not exist, skipping
create database regressrestoretest18;
\! pg_restore -d regressrestoretest18 /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/bkuptest1_fc_nos6
pg_restore: [archiver] could not open input file: No such file or directory
drop database if exists regressrestoretest19;
NOTICE: database "regressrestoretest19" does not exist, skipping
create database regressrestoretest19;
\! pg_restore -d regressrestoretest19 /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/bkuptest1_fc_t1
pg_restore: [archiver] could not open input file: No such file or directory
drop database if exists regressrestoretest20;
NOTICE: database "regressrestoretest20" does not exist, skipping
create database regressrestoretest20;
\! pg_restore -d regressrestoretest20 /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/bkuptest1_fc_not1
pg_restore: [archiver] could not open input file: No such file or directory
drop database if exists regressrestoretest21;
NOTICE: database "regressrestoretest21" does not exist, skipping
create database regressrestoretest21;
\! pg_restore -d regressrestoretest21 /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/bkuptest1_fc_oid
pg_restore: [archiver] could not open input file: No such file or directory
drop database if exists regressrestoretest22;
NOTICE: database "regressrestoretest22" does not exist, skipping
create database regressrestoretest22;
\! pg_restore -d regressrestoretest22 /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/bkuptest1_fc_noowner
pg_restore: [archiver] could not open input file: No such file or directory
drop database if exists regressrestoretest23;
NOTICE: database "regressrestoretest23" does not exist, skipping
create database regressrestoretest23;
\! pg_restore -d regressrestoretest23 /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/bkuptest1_fc_nopriv
pg_restore: [archiver] could not open input file: No such file or directory
drop database if exists regressrestoretest24;
NOTICE: database "regressrestoretest24" does not exist, skipping
create database regressrestoretest24;
\! pg_restore -d regressrestoretest24 /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/bkuptest1_fc_sqlquote
pg_restore: [archiver] could not open input file: No such file or directory
drop database if exists regressrestoretest25;
NOTICE: database "regressrestoretest25" does not exist, skipping
create database regressrestoretest25;
\! pg_restore -d regressrestoretest25 /Users/ftian/work/crashburn/cdb2/cdb-pg/src/test/regress/results/pgdump_datatype/bkuptest1_fc_gpsyntax
pg_restore: [archiver] could not open input file: No such file or directory
-- end_ignore
-- start_ignore
--
-- Greenplum DB backup test
--
-- Check database version and pg_dump
select version();
\! pg_dump --version
\echo Test pg_dump
\! rm -fr @abs_builddir@/results/pgdump_datatype
\! mkdir @abs_builddir@/results/pgdump_datatype
\! pg_dump -Fc -f @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc regressbkuptest1
\! pg_dump -Fp -f @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fp regressbkuptest1
\! pg_dump -Ft -f @abs_builddir@/results/pgdump_datatype/regressbkuptest1_ft regressbkuptest1
\! pg_dump -Fc -Z5 -f @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_Z regressbkuptest1
\! pg_dump -Fc -a -f @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_data regressbkuptest1
\! pg_dump -Fc -s -f @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_schema regressbkuptest1
\! pg_dump -Fc -b -f @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_blobs regressbkuptest1
\! pg_dump -Fc -C -f @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_create regressbkuptest1
-- NOT YET SUPPORTED
-- \! pg_dump -Fc -D -f @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_ins regressbkuptest1
\! pg_dump -Fc -E Unicode -f @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_enc regressbkuptest1
\! pg_dump -Fc -n s6 -f @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_s6 regressbkuptest1
\! pg_dump -Fc -N s6 -f @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_nos6 regressbkuptest1
\! pg_dump -Fc -t t1 -f @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_t1 regressbkuptest1
\! pg_dump -Fc -T t1 -f @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_not1 regressbkuptest1
\! pg_dump -Fc -o -f @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_oid regressbkuptest1
\! pg_dump -Fc -O -f @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_noowner regressbkuptest1
\! pg_dump -Fc -x -f @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_nopriv regressbkuptest1
\! pg_dump -Fc --disable-dollar-quoting -f @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_sqlquote regressbkuptest1
\! pg_dump -Fc --gp-syntax -f @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_gpsyntax regressbkuptest1
-- end_ignore
-- test pg_dumpall. Use diff to check
\! pg_dumpall -g -r | sed s/`whoami`/__USER_LOGIN__/g
\! pg_dumpall -D | sed s/`whoami`/__USER_LOGIN__/g
\! pg_dumpall --gp-syntax | sed s/`whoami`/__USER_LOGIN__/g
-- start_ignore
drop database if exists regressbkuptest1;
drop database if exists regressrestoretest1;
drop database if exists regressrestoretest2;
drop database if exists regressrestoretest3;
drop database if exists regressrestoretest4;
drop database if exists regressrestoretest5;
drop database if exists regressrestoretest6;
drop database if exists regressrestoretest7;
drop database if exists regressrestoretest8;
drop database if exists regressrestoretest9;
drop database if exists regressrestoretest10;
drop database if exists regressrestoretest11;
drop database if exists regressrestoretest12;
drop database if exists regressrestoretest13;
drop database if exists regressrestoretest14;
drop database if exists regressrestoretest15;
drop database if exists regressrestoretest16;
drop database if exists regressrestoretest17;
drop database if exists regressrestoretest18;
drop database if exists regressrestoretest19;
drop database if exists regressrestoretest20;
drop database if exists regressrestoretest21;
drop database if exists regressrestoretest22;
drop database if exists regressrestoretest23;
drop database if exists regressrestoretest24;
drop database if exists regressrestoretest25;
drop database if exists regressbkuptestadv;
drop database if exists regressrestoretestadv1;
drop database if exists regressrestoretestadv2;
drop database if exists regressbkuptestmisc;
drop database if exists regressrestoretestmisc1;
drop database if exists regressrestoretestmisc2;
\! rm -fr @abs_builddir@/results/gpdump* @abs_builddir@/results/pgdump*
-- end_ignore
-- start_ignore
-- find version info
select version();
\! pg_restore --version
\echo Test pg_restore
drop database if exists regressrestoretest9;
create database regressrestoretest9;
\! pg_restore -d regressrestoretest9 @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc
drop database if exists regressrestoretest10;
create database regressrestoretest10;
\c regressrestoretest10
\i @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fp
\c regression
drop database if exists regressrestoretest11;
create database regressrestoretest11;
\! pg_restore -d regressrestoretest11 @abs_builddir@/results/pgdump_datatype/regressbkuptest1_ft
drop database if exists regressrestoretest12;
create database regressrestoretest12;
\! pg_restore -d regressrestoretest12 @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_Z
drop database if exists regressrestoretest13;
create database regressrestoretest13;
\! pg_restore -d regressrestoretest13 @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_schema
\! pg_restore -d regressrestoretest13 @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_data
drop database if exists regressrestoretest14;
create database regressrestoretest14;
\! pg_restore -d regressrestoretest14 @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_blobs
drop database if exists regressrestoretest15;
create database regressrestoretest15;
\! pg_restore -d regressrestoretest15 @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_create
drop database if exists regressrestoretest16;
create database regressrestoretest16;
\! pg_restore -d regressrestoretest16 @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_enc
drop database if exists regressrestoretest17;
create database regressrestoretest17;
\! pg_restore -d regressrestoretest17 @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_s6
drop database if exists regressrestoretest18;
create database regressrestoretest18;
\! pg_restore -d regressrestoretest18 @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_nos6
drop database if exists regressrestoretest19;
create database regressrestoretest19;
\! pg_restore -d regressrestoretest19 @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_t1
drop database if exists regressrestoretest20;
create database regressrestoretest20;
\! pg_restore -d regressrestoretest20 @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_not1
drop database if exists regressrestoretest21;
create database regressrestoretest21;
\! pg_restore -d regressrestoretest21 @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_oid
drop database if exists regressrestoretest22;
create database regressrestoretest22;
\! pg_restore -d regressrestoretest22 @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_noowner
drop database if exists regressrestoretest23;
create database regressrestoretest23;
\! pg_restore -d regressrestoretest23 @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_nopriv
drop database if exists regressrestoretest24;
create database regressrestoretest24;
\! pg_restore -d regressrestoretest24 @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_sqlquote
drop database if exists regressrestoretest25;
create database regressrestoretest25;
\! pg_restore -d regressrestoretest25 @abs_builddir@/results/pgdump_datatype/regressbkuptest1_fc_gpsyntax
-- end_ignore
......@@ -9,15 +9,10 @@
/security_label.sql
/tablespace.sql
restore_restoredb.sql
sreh.sql
upg2.sql
gptokencheck.sql
bkuprestore_advance.sql
bkuprestore_cleanup.sql
aocs.sql
appendonly.sql
bkup_bkupdb.sql
filespace.sql
upgrade.sql
auth_constraint.sql
......
\c regressbkuptestadv
select * from t1;
select * from v1;
insert into t1 values (2, 1, 3);
insert into t1 values (1, 5, 10);
insert into t1 values (100, NULL, 3);
insert into t1 values (20, 20, 30);
insert into t1 values (21, 22, 23);
select * from t1;
select * from v1;
select * from oids;
select oid from oids where 1 = 0;
select * from idxt;
insert into idxt (1, 1);
insert into idxt (1, 1);
select C3ToBit('OK');
select C3ToBit(NULL);
select 'ABC'::char(3)::bit(3);
select incr(100);
create function decr (i int) returns int as
$$
BEGIN
return i-1;
END
$$ language plpgsql NO SQL;
select decr(100);
select * from tt1;
insert into tt1 values (10, 10, '1234');
insert into tt1 values (11, 11, '1234A');
select * from tt2;
select * from rt;
delete from rt;
select * from rt;
insert into rt values (100, 100);
select * from rt;
select nextval('seq');
select nextval('seq');
\c regressrestoretestadv1
select * from t1;
select * from v1;
insert into t1 values (2, 1, 3);
insert into t1 values (1, 5, 10);
insert into t1 values (100, NULL, 3);
insert into t1 values (20, 20, 30);
insert into t1 values (21, 22, 23);
select * from t1;
select * from v1;
select * from oids;
select oid from oids where 1 = 0;
select * from idxt;
insert into idxt (1, 1);
insert into idxt (1, 1);
select C3ToBit('OK');
select C3ToBit(NULL);
select 'ABC'::char(3)::bit(3);
select incr(100);
create function decr (i int) returns int as
$$
BEGIN
return i-1;
END
$$ language plpgsql NO SQL
select decr(100);
select * from tt1;
insert into tt1 values (10, 10, '1234');
insert into tt1 values (11, 11, '1234A');
select * from tt2;
select * from rt;
delete from rt;
select * from rt;
insert into rt values (100, 100);
select * from rt;
select nextval('seq');
select nextval('seq');
\c regressrestoretestadv2
select * from t1;
select * from v1;
insert into t1 values (2, 1, 3);
insert into t1 values (1, 5, 10);
insert into t1 values (100, NULL, 3);
insert into t1 values (20, 20, 30);
insert into t1 values (21, 22, 23);
select * from t1;
select * from v1;
select * from oids;
select oid from oids where 1 = 0;
select * from idxt;
insert into idxt (1, 1);
insert into idxt (1, 1);
select C3ToBit('OK');
select C3ToBit(NULL);
select 'ABC'::char(3)::bit(3);
select incr(100);
create function decr (i int) returns int as
$$
BEGIN
return i-1;
END
$$ language plpgsql NO SQL;
select decr(100);
select * from tt1;
insert into tt1 values (10, 10, '1234');
insert into tt1 values (11, 11, '1234A');
select * from tt2;
select * from rt;
delete from rt;
select * from rt;
insert into rt values (100, 100);
select * from rt;
select nextval('seq');
select nextval('seq');
\c regressbkuptestmisc
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select relpages, reltuples from pg_class where relname = 't3';
\c regressrestoretestmisc1
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select relpages, reltuples from pg_class where relname = 't3';
\c regressrestoretestmisc1
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select relpages, reltuples from pg_class where relname = 't3';
-- start_ignore
--
-- Greenplum DB backup test
--
-- Check database version and pg_dump
select version();
\! pg_dump --version
-- Create target database
drop database if exists regressbkuptest1;
create database regressbkuptest1;
-- Populate some data
\c regressbkuptest1
-- Data type tests
-- table one, numeric types
create table t1(
i int, si smallint, bi bigint,
de decimal, n numeric, n103 numeric(10, 3),
r real, dou double precision
);
insert into t1 values
(1, 2, 3,
3.14, 3.1415, 3.142,
2.71, 2.71828
),
(2, 2, 2,
2.0, 2.0, 2.00,
'Infinity', 'NaN'
),
(-3, -2, -1,
1.4, 1.41, 1.414,
'NaN', '-Infinity'
),
(NULL, NULL, NULL,
NULL, NULL, NULL,
NULL, NULL
);
-- Data type test2 serial
create table t2 (i int, s serial, bs bigserial);
insert into t2 values (1), (2), (3);
-- it is OK to specify serial value if no unique/primary key
insert into t2 values (1, 1, 1), (4, 4, 4);
-- but sequence should continue work
insert into t2 values (4);
-- Data type test3, money (deprecated), and char, binary.
create table t3 (m money, c char(10), vc varchar(10), t text, ba bytea);
insert into t3 values
('$10.2', 'Simple', 'Simple VC', 'Text column', E'string as ba'),
('$10', $$It's OK$$, $$It's OK$$, $$It's still OK$$, E'It\'s binary OK'),
('$100', E'\t\r\n\v\\', E'\t\r\n\v\\', E'\t\r\n\v\\', E'\t\r\n\v'),
('$100', '', '', '', ''),
('$-3', '1234567890', '1234567890', 'Too long to test filling', E'\\001\\000\\000\\002\\\\'),
(NULL, NULL, NULL, NULL, NULL);
-- Data type test 4, Date/Timestamp
create table t4(
t timestamp, t2 timestamp(2),
tz timestamp with time zone, tz3 timestamp(3) with time zone,
i interval, d date,
ti time, ti4 time(4),
tiz time with time zone, tiz5 time(5) with time zone
);
insert into t4 values
(
'1999-01-08 04:05:06', '1999-01-08 04:05:06.23',
'1999-01-08 04:05:06+02', '1999-01-08 04:05:06.23PST',
'1 12:34:56', '1999-01-08',
'04:05:06', '00:00:00',
'00:01:02-8', '00:01:00-2'
),
(
'epoch', 'infinity',
'infinity', '-infinity',
'0', 'epoch',
'allballs', 'allballs',
'allballs', 'allballs'
),
(NULL, NULL,
NULL, NULL,
NULL, NULL,
NULL, NULL,
NULL, NULL
);
-- Data type test 5, boolean, geo,
create table t5(b bool, pt point, ls lseg, p path, bo box, po polygon, c circle);
insert into t5 values
( true, '(1.0, 2.0)',
'((1.0, 2.0), (0.0, 0.0))', '((1.0, 1.0), (2.0, 2.0), (3.0, 3.0))',
'((1.0, 1.0), (2.0, 2.0))', '((1.0, 0.0), (1.0, 1.0), (2.0, 2.0))',
'((0.0, 1.0), 4)'
),
( false, '(1.0, 2.0)',
'((1.0, 2.0), (0.0, 0.0))', '((1.0, 1.0), (2.0, 2.0), (3.0, 3.0), (4.0, 4.0))',
'((1.0, 1.0), (2.0, 2.0))', '((1.0, 0.0), (1.0, 1.0), (2.0, 2.0))',
'((0.0, 2.0), 43)'
),
(NULL, NULL, NULL, NULL, NULL, NULL, NULL)
;
-- Data type test 6, Network
create schema s6;
create table s6.t6(c cidr, i inet, m macaddr);
insert into s6.t6 values
('127.0.0.1', '2001:4f8:3:ba::/64', '08:02:0b:02:ac:e3'),
(NULL, NULL, NULL);
-- Data type test 7, Bit strings and arrays,
create table t7 (b bit(3), bv bit varying(5), ia integer[], ta text[][]);
insert into t7 values
(B'101', B'00101', '{1, 2, 3}', '{{"Hello", "world"},{"from", "Mars"}}'),
(B'000', B'00', '{4, 5}', '{{"",""}, {"", ""}}'),
(B'111', B'', '{}', '{{"1", "2"}, {"3", "4"}, {"5", "6"}}'),
(NULL, NULL, NULL, NULL);
-- Data type test 8, Composite type
CREATE TYPE Complex As (r real, i real);
CREATE TYPE CompType As (name text, price numeric);
CREATE TABLE t8 (i int, c Complex, ct CompType);
insert into t8 values
(1, (1, 2), ('Hello', 8.3)),
(1, (0, 0), ('', NULL)),
(2, (NULL, -1), (NULL, NULL)),
(NULL, NULL, NULL);
-- Data type test 9, oid
create table t9 (i int) WITH OIDS;
create table t10 (j int) WITHOUT OIDS;
insert into t9 values (1), (2), (NULL);
insert into t10 values (3), (4), (NULL);
\c regression
-- end_ignore
\c regressbkuptest1
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select * from s6.t6;
select * from t7;
select * from t8;
select * from t9;
select * from t10;
insert into t2 values (100), (101);
select * from t2;
select * from t11;
\c regressrestoretest1
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select * from s6.t6;
select * from t7;
select * from t8;
select * from t9;
select * from t10;
insert into t2 values (100), (101);
select * from t2;
select * from t11;
\c regressrestoretest2
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select * from s6.t6;
select * from t7;
select * from t8;
select * from t9;
select * from t10;
insert into t2 values (100), (101);
select * from t2;
select * from t11;
\c regressrestoretest3
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select * from s6.t6;
select * from t7;
select * from t8;
select * from t9;
select * from t10;
insert into t2 values (100), (101);
select * from t2;
select * from t11;
\c regressrestoretest4
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select * from s6.t6;
select * from t7;
select * from t8;
select * from t9;
select * from t10;
insert into t2 values (100), (101);
select * from t2;
select * from t11;
\c regressrestoretest5
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select * from s6.t6;
select * from t7;
select * from t8;
select * from t9;
select * from t10;
insert into t2 values (100), (101);
select * from t2;
select * from t11;
\c regressrestoretest6
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select * from s6.t6;
select * from t7;
select * from t8;
select * from t9;
select * from t10;
insert into t2 values (100), (101);
select * from t2;
select * from t11;
\c regressrestoretest7
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select * from s6.t6;
select * from t7;
select * from t8;
select * from t9;
select * from t10;
insert into t2 values (100), (101);
select * from t2;
select * from t11;
\c regressrestoretest8
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select * from s6.t6;
select * from t7;
select * from t8;
select * from t9;
select * from t10;
insert into t2 values (100), (101);
select * from t2;
select * from t11;
\c regressrestoretest9
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select * from s6.t6;
select * from t7;
select * from t8;
select * from t9;
select * from t10;
insert into t2 values (100), (101);
select * from t2;
select * from t11;
\c regressrestoretest10
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select * from s6.t6;
select * from t7;
select * from t8;
select * from t9;
select * from t10;
insert into t2 values (100), (101);
select * from t2;
select * from t11;
\c regressrestoretest11
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select * from s6.t6;
select * from t7;
select * from t8;
select * from t9;
select * from t10;
insert into t2 values (100), (101);
select * from t2;
select * from t11;
\c regressrestoretest12
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select * from s6.t6;
select * from t7;
select * from t8;
select * from t9;
select * from t10;
insert into t2 values (100), (101);
select * from t2;
select * from t11;
\c regressrestoretest13
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select * from s6.t6;
select * from t7;
select * from t8;
select * from t9;
select * from t10;
insert into t2 values (100), (101);
select * from t2;
select * from t11;
\c regressrestoretest14
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select * from s6.t6;
select * from t7;
select * from t8;
select * from t9;
select * from t10;
insert into t2 values (100), (101);
select * from t2;
select * from t11;
\c regressrestoretest15
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select * from s6.t6;
select * from t7;
select * from t8;
select * from t9;
select * from t10;
insert into t2 values (100), (101);
select * from t2;
select * from t11;
\c regressrestoretest16
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select * from s6.t6;
select * from t7;
select * from t8;
select * from t9;
select * from t10;
insert into t2 values (100), (101);
select * from t2;
select * from t11;
\c regressrestoretest17
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select * from s6.t6;
select * from t7;
select * from t8;
select * from t9;
select * from t10;
insert into t2 values (100), (101);
select * from t2;
select * from t11;
\c regressrestoretest18
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select * from s6.t6;
select * from t7;
select * from t8;
select * from t9;
select * from t10;
insert into t2 values (100), (101);
select * from t2;
select * from t11;
\c regressrestoretest19
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select * from s6.t6;
select * from t7;
select * from t8;
select * from t9;
select * from t10;
insert into t2 values (100), (101);
select * from t2;
select * from t11;
\c regressrestoretest20
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select * from s6.t6;
select * from t7;
select * from t8;
select * from t9;
select * from t10;
insert into t2 values (100), (101);
select * from t2;
select * from t11;
\c regressrestoretest21
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select * from s6.t6;
select * from t7;
select * from t8;
select * from t9;
select * from t10;
insert into t2 values (100), (101);
select * from t2;
select * from t11;
\c regressrestoretest22
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select * from s6.t6;
select * from t7;
select * from t8;
select * from t9;
select * from t10;
insert into t2 values (100), (101);
select * from t2;
select * from t11;
\c regressrestoretest23
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select * from s6.t6;
select * from t7;
select * from t8;
select * from t9;
select * from t10;
insert into t2 values (100), (101);
select * from t2;
select * from t11;
\c regressrestoretest24
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select * from s6.t6;
select * from t7;
select * from t8;
select * from t9;
select * from t10;
insert into t2 values (100), (101);
select * from t2;
select * from t11;
\c regressrestoretest25
select * from t1;
select * from t2;
select * from t3;
select * from t4;
select * from t5;
select * from s6.t6;
select * from t7;
select * from t8;
select * from t9;
select * from t10;
insert into t2 values (100), (101);
select * from t2;
select * from t11;
\c regress
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册