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

« back to all changes in this revision

Viewing changes to src/test/resources/cz/startnet/utils/pgdiff/modify_view_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
    id bigint,
 
30
    name character varying(30)
 
31
);
 
32
 
 
33
 
 
34
ALTER TABLE public.testtable OWNER TO fordfrog;
 
35
 
 
36
--
 
37
-- Name: testview; Type: VIEW; Schema: public; Owner: fordfrog
 
38
--
 
39
 
 
40
CREATE VIEW testview AS
 
41
    SELECT testtable.name, testtable.id FROM testtable;
 
42
 
 
43
 
 
44
ALTER TABLE public.testview OWNER TO fordfrog;
 
45
 
 
46
--
 
47
-- Data for Name: testtable; Type: TABLE DATA; Schema: public; Owner: fordfrog
 
48
--
 
49
 
 
50
 
 
51
 
 
52
--
 
53
-- Name: public; Type: ACL; Schema: -; Owner: postgres
 
54
--
 
55
 
 
56
REVOKE ALL ON SCHEMA public FROM PUBLIC;
 
57
REVOKE ALL ON SCHEMA public FROM postgres;
 
58
GRANT ALL ON SCHEMA public TO postgres;
 
59
GRANT ALL ON SCHEMA public TO PUBLIC;
 
60
 
 
61
 
 
62
--
 
63
-- PostgreSQL database dump complete
 
64
--
 
65