~ubuntu-branches/ubuntu/karmic/apgdiff/karmic

« back to all changes in this revision

Viewing changes to src/test/resources/cz/startnet/utils/pgdiff/add_cluster_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
SET search_path = public, pg_catalog;
 
19
 
 
20
SET default_tablespace = '';
 
21
 
 
22
SET default_with_oids = false;
 
23
 
 
24
--
 
25
-- Name: testtable; Type: TABLE; Schema: public; Owner: fordfrog; Tablespace: 
 
26
--
 
27
 
 
28
CREATE TABLE testtable (
 
29
    field1 integer,
 
30
    field2 integer,
 
31
    field3 character varying(150) DEFAULT 'none'::character varying,
 
32
    field4 double precision
 
33
);
 
34
 
 
35
 
 
36
ALTER TABLE public.testtable OWNER TO fordfrog;
 
37
 
 
38
--
 
39
-- Name: testtable2; Type: TABLE; Schema: public; Owner: fordfrog; Tablespace: 
 
40
--
 
41
 
 
42
CREATE TABLE testtable2 (
 
43
    id integer NOT NULL,
 
44
    col1 boolean NOT NULL
 
45
);
 
46
 
 
47
 
 
48
ALTER TABLE public.testtable2 OWNER TO fordfrog;
 
49
 
 
50
--
 
51
-- Name: testtable2_id_seq; Type: SEQUENCE; Schema: public; Owner: fordfrog
 
52
--
 
53
 
 
54
CREATE SEQUENCE testtable2_id_seq
 
55
    START WITH 1
 
56
    INCREMENT BY 1
 
57
    NO MAXVALUE
 
58
    NO MINVALUE
 
59
    CACHE 1;
 
60
 
 
61
 
 
62
ALTER TABLE public.testtable2_id_seq OWNER TO fordfrog;
 
63
 
 
64
--
 
65
-- Name: testtable2_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: fordfrog
 
66
--
 
67
 
 
68
ALTER SEQUENCE testtable2_id_seq OWNED BY testtable2.id;
 
69
 
 
70
 
 
71
--
 
72
-- Name: testtable2_id_seq; Type: SEQUENCE SET; Schema: public; Owner: fordfrog
 
73
--
 
74
 
 
75
SELECT pg_catalog.setval('testtable2_id_seq', 1, false);
 
76
 
 
77
 
 
78
--
 
79
-- Name: id; Type: DEFAULT; Schema: public; Owner: fordfrog
 
80
--
 
81
 
 
82
ALTER TABLE testtable2 ALTER COLUMN id SET DEFAULT nextval('testtable2_id_seq'::regclass);
 
83
 
 
84
 
 
85
--
 
86
-- Data for Name: testtable; Type: TABLE DATA; Schema: public; Owner: fordfrog
 
87
--
 
88
 
 
89
 
 
90
 
 
91
--
 
92
-- Data for Name: testtable2; Type: TABLE DATA; Schema: public; Owner: fordfrog
 
93
--
 
94
 
 
95
 
 
96
 
 
97
--
 
98
-- Name: testindex; Type: INDEX; Schema: public; Owner: fordfrog; Tablespace: 
 
99
--
 
100
 
 
101
CREATE INDEX testindex ON testtable USING btree (field1);
 
102
 
 
103
ALTER TABLE testtable CLUSTER ON testindex;
 
104
 
 
105
 
 
106
--
 
107
-- Name: testtable2_col1; Type: INDEX; Schema: public; Owner: fordfrog; Tablespace: 
 
108
--
 
109
 
 
110
CREATE INDEX testtable2_col1 ON testtable2 USING btree (col1);
 
111
 
 
112
ALTER TABLE testtable2 CLUSTER ON testtable2_col1;
 
113
 
 
114
 
 
115
--
 
116
-- Name: public; Type: ACL; Schema: -; Owner: postgres
 
117
--
 
118
 
 
119
REVOKE ALL ON SCHEMA public FROM PUBLIC;
 
120
REVOKE ALL ON SCHEMA public FROM postgres;
 
121
GRANT ALL ON SCHEMA public TO postgres;
 
122
GRANT ALL ON SCHEMA public TO PUBLIC;
 
123
 
 
124
 
 
125
--
 
126
-- PostgreSQL database dump complete
 
127
--
 
128