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

« back to all changes in this revision

Viewing changes to src/test/resources/cz/startnet/utils/pgdiff/drop_function_similar_original.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 check_function_bodies = false;
 
7
SET client_min_messages = warning;
 
8
 
 
9
--
 
10
-- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: postgres
 
11
--
 
12
 
 
13
COMMENT ON SCHEMA public IS 'Standard public schema';
 
14
 
 
15
 
 
16
--
 
17
-- Name: plpgsql; Type: PROCEDURAL LANGUAGE; Schema: -; Owner: 
 
18
--
 
19
 
 
20
CREATE PROCEDURAL LANGUAGE plpgsql;
 
21
 
 
22
 
 
23
SET search_path = public, pg_catalog;
 
24
 
 
25
--
 
26
-- Name: multiply_numbers(integer, integer); Type: FUNCTION; Schema: public; Owner: fordfrog
 
27
--
 
28
 
 
29
CREATE FUNCTION multiply_numbers(number2 integer, number1 integer) RETURNS integer
 
30
    AS $$
 
31
begin
 
32
        return number2 * number1;
 
33
end;
 
34
$$
 
35
    LANGUAGE plpgsql;
 
36
 
 
37
 
 
38
ALTER FUNCTION public.multiply_numbers(number2 integer, number1 integer) OWNER TO fordfrog;
 
39
 
 
40
--
 
41
-- Name: multiply_numbers(smallint, smallint); Type: FUNCTION; Schema: public; Owner: fordfrog
 
42
--
 
43
 
 
44
CREATE FUNCTION multiply_numbers(number2 smallint, number1 smallint) RETURNS smallint
 
45
    AS $$
 
46
begin
 
47
        return number2 * number1;
 
48
end;
 
49
$$
 
50
    LANGUAGE plpgsql;
 
51
 
 
52
 
 
53
ALTER FUNCTION public.multiply_numbers(number2 smallint, number1 smallint) OWNER TO fordfrog;
 
54
 
 
55
SET default_tablespace = '';
 
56
 
 
57
SET default_with_oids = false;
 
58
 
 
59
--
 
60
-- Name: test_table; Type: TABLE; Schema: public; Owner: fordfrog; Tablespace: 
 
61
--
 
62
 
 
63
CREATE TABLE test_table (
 
64
    id serial NOT NULL
 
65
);
 
66
 
 
67
 
 
68
ALTER TABLE public.test_table OWNER TO fordfrog;
 
69
 
 
70
--
 
71
-- Name: test_table_pkey; Type: CONSTRAINT; Schema: public; Owner: fordfrog; Tablespace: 
 
72
--
 
73
 
 
74
ALTER TABLE ONLY test_table
 
75
    ADD CONSTRAINT test_table_pkey PRIMARY KEY (id);
 
76
 
 
77
 
 
78
--
 
79
-- Name: public; Type: ACL; Schema: -; Owner: postgres
 
80
--
 
81
 
 
82
REVOKE ALL ON SCHEMA public FROM PUBLIC;
 
83
REVOKE ALL ON SCHEMA public FROM postgres;
 
84
GRANT ALL ON SCHEMA public TO postgres;
 
85
GRANT ALL ON SCHEMA public TO PUBLIC;
 
86
 
 
87
 
 
88
--
 
89
-- PostgreSQL database dump complete
 
90
--
 
91