~ubuntu-branches/ubuntu/raring/apgdiff/raring

« back to all changes in this revision

Viewing changes to src/test/resources/cz/startnet/utils/pgdiff/add_transaction_new.sql

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Berg
  • Date: 2008-09-09 15:42:54 UTC
  • Revision ID: james.westby@ubuntu.com-20080909154254-458sv7ew1rczdal1
Tags: upstream-1.2
ImportĀ upstreamĀ versionĀ 1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--
 
2
-- PostgreSQL database dump
 
3
--
 
4
 
 
5
SET client_encoding = 'UTF8';
 
6
SET standard_conforming_strings = off;
 
7
SET check_function_bodies = false;
 
8
SET client_min_messages = warning;
 
9
SET escape_string_warning = off;
 
10
 
 
11
--
 
12
-- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: postgres
 
13
--
 
14
 
 
15
COMMENT ON SCHEMA public IS 'Standard public schema';
 
16
 
 
17
 
 
18
--
 
19
-- Name: testschema2; Type: SCHEMA; Schema: -; Owner: fordfrog
 
20
--
 
21
 
 
22
CREATE SCHEMA testschema2;
 
23
 
 
24
 
 
25
ALTER SCHEMA testschema2 OWNER TO fordfrog;
 
26
 
 
27
SET search_path = public, pg_catalog;
 
28
 
 
29
SET default_tablespace = '';
 
30
 
 
31
SET default_with_oids = false;
 
32
 
 
33
--
 
34
-- Name: testtable1; Type: TABLE; Schema: public; Owner: fordfrog; Tablespace: 
 
35
--
 
36
 
 
37
CREATE TABLE testtable1 (
 
38
    id bigint NOT NULL
 
39
);
 
40
 
 
41
 
 
42
ALTER TABLE public.testtable1 OWNER TO fordfrog;
 
43
 
 
44
--
 
45
-- Name: testtable1_id_seq; Type: SEQUENCE; Schema: public; Owner: fordfrog
 
46
--
 
47
 
 
48
CREATE SEQUENCE testtable1_id_seq
 
49
    START WITH 1
 
50
    INCREMENT BY 1
 
51
    NO MAXVALUE
 
52
    NO MINVALUE
 
53
    CACHE 1;
 
54
 
 
55
 
 
56
ALTER TABLE public.testtable1_id_seq OWNER TO fordfrog;
 
57
 
 
58
--
 
59
-- Name: testtable1_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: fordfrog
 
60
--
 
61
 
 
62
ALTER SEQUENCE testtable1_id_seq OWNED BY testtable1.id;
 
63
 
 
64
 
 
65
--
 
66
-- Name: testtable1_id_seq; Type: SEQUENCE SET; Schema: public; Owner: fordfrog
 
67
--
 
68
 
 
69
SELECT pg_catalog.setval('testtable1_id_seq', 1, false);
 
70
 
 
71
 
 
72
--
 
73
-- Name: testtable3; Type: TABLE; Schema: public; Owner: fordfrog; Tablespace: 
 
74
--
 
75
 
 
76
CREATE TABLE testtable3 (
 
77
    id bigint NOT NULL
 
78
);
 
79
 
 
80
 
 
81
ALTER TABLE public.testtable3 OWNER TO fordfrog;
 
82
 
 
83
--
 
84
-- Name: testtable3_id_seq; Type: SEQUENCE; Schema: public; Owner: fordfrog
 
85
--
 
86
 
 
87
CREATE SEQUENCE testtable3_id_seq
 
88
    START WITH 1
 
89
    INCREMENT BY 1
 
90
    NO MAXVALUE
 
91
    NO MINVALUE
 
92
    CACHE 1;
 
93
 
 
94
 
 
95
ALTER TABLE public.testtable3_id_seq OWNER TO fordfrog;
 
96
 
 
97
--
 
98
-- Name: testtable3_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: fordfrog
 
99
--
 
100
 
 
101
ALTER SEQUENCE testtable3_id_seq OWNED BY testtable3.id;
 
102
 
 
103
 
 
104
--
 
105
-- Name: testtable3_id_seq; Type: SEQUENCE SET; Schema: public; Owner: fordfrog
 
106
--
 
107
 
 
108
SELECT pg_catalog.setval('testtable3_id_seq', 1, false);
 
109
 
 
110
 
 
111
SET search_path = testschema2, pg_catalog;
 
112
 
 
113
--
 
114
-- Name: testtable1; Type: TABLE; Schema: testschema2; Owner: fordfrog; Tablespace: 
 
115
--
 
116
 
 
117
CREATE TABLE testtable1 (
 
118
    id integer NOT NULL
 
119
);
 
120
 
 
121
 
 
122
ALTER TABLE testschema2.testtable1 OWNER TO fordfrog;
 
123
 
 
124
--
 
125
-- Name: testtable1_id_seq; Type: SEQUENCE; Schema: testschema2; Owner: fordfrog
 
126
--
 
127
 
 
128
CREATE SEQUENCE testtable1_id_seq
 
129
    START WITH 1
 
130
    INCREMENT BY 1
 
131
    NO MAXVALUE
 
132
    NO MINVALUE
 
133
    CACHE 1;
 
134
 
 
135
 
 
136
ALTER TABLE testschema2.testtable1_id_seq OWNER TO fordfrog;
 
137
 
 
138
--
 
139
-- Name: testtable1_id_seq; Type: SEQUENCE OWNED BY; Schema: testschema2; Owner: fordfrog
 
140
--
 
141
 
 
142
ALTER SEQUENCE testtable1_id_seq OWNED BY testtable1.id;
 
143
 
 
144
 
 
145
--
 
146
-- Name: testtable1_id_seq; Type: SEQUENCE SET; Schema: testschema2; Owner: fordfrog
 
147
--
 
148
 
 
149
SELECT pg_catalog.setval('testtable1_id_seq', 1, false);
 
150
 
 
151
 
 
152
SET search_path = public, pg_catalog;
 
153
 
 
154
--
 
155
-- Name: id; Type: DEFAULT; Schema: public; Owner: fordfrog
 
156
--
 
157
 
 
158
ALTER TABLE testtable1 ALTER COLUMN id SET DEFAULT nextval('testtable1_id_seq'::regclass);
 
159
 
 
160
 
 
161
--
 
162
-- Name: id; Type: DEFAULT; Schema: public; Owner: fordfrog
 
163
--
 
164
 
 
165
ALTER TABLE testtable3 ALTER COLUMN id SET DEFAULT nextval('testtable3_id_seq'::regclass);
 
166
 
 
167
 
 
168
SET search_path = testschema2, pg_catalog;
 
169
 
 
170
--
 
171
-- Name: id; Type: DEFAULT; Schema: testschema2; Owner: fordfrog
 
172
--
 
173
 
 
174
ALTER TABLE testtable1 ALTER COLUMN id SET DEFAULT nextval('testtable1_id_seq'::regclass);
 
175
 
 
176
 
 
177
SET search_path = public, pg_catalog;
 
178
 
 
179
--
 
180
-- Data for Name: testtable1; Type: TABLE DATA; Schema: public; Owner: fordfrog
 
181
--
 
182
 
 
183
 
 
184
 
 
185
--
 
186
-- Data for Name: testtable3; Type: TABLE DATA; Schema: public; Owner: fordfrog
 
187
--
 
188
 
 
189
 
 
190
 
 
191
SET search_path = testschema2, pg_catalog;
 
192
 
 
193
--
 
194
-- Data for Name: testtable1; Type: TABLE DATA; Schema: testschema2; Owner: fordfrog
 
195
--
 
196
 
 
197
 
 
198
 
 
199
--
 
200
-- Name: public; Type: ACL; Schema: -; Owner: postgres
 
201
--
 
202
 
 
203
REVOKE ALL ON SCHEMA public FROM PUBLIC;
 
204
REVOKE ALL ON SCHEMA public FROM postgres;
 
205
GRANT ALL ON SCHEMA public TO postgres;
 
206
GRANT ALL ON SCHEMA public TO PUBLIC;
 
207
 
 
208
 
 
209
--
 
210
-- PostgreSQL database dump complete
 
211
--
 
212