]> granicus.if.org Git - postgresql/commitdiff
Update format to add uniform headers on files.
authorThomas G. Lockhart <lockhart@fourpalms.org>
Wed, 5 Jan 2000 17:32:29 +0000 (17:32 +0000)
committerThomas G. Lockhart <lockhart@fourpalms.org>
Wed, 5 Jan 2000 17:32:29 +0000 (17:32 +0000)
17 files changed:
src/test/regress/input/constraints.source
src/test/regress/input/copy.source
src/test/regress/input/create_function_1.source
src/test/regress/input/create_function_2.source
src/test/regress/input/install_plpgsql.source
src/test/regress/input/misc.source
src/test/regress/sql/aggregates.sql
src/test/regress/sql/alter_table.sql
src/test/regress/sql/arrays.sql
src/test/regress/sql/create_aggregate.sql
src/test/regress/sql/create_index.sql
src/test/regress/sql/create_misc.sql
src/test/regress/sql/create_operator.sql
src/test/regress/sql/create_table.sql
src/test/regress/sql/create_type.sql
src/test/regress/sql/create_view.sql
src/test/regress/sql/triggers.sql

index af10193c3333a597e216738fff6d91094cec64ae..f30a2dd0ae704b5b3be874c15755e2e79d187b61 100644 (file)
@@ -1,5 +1,5 @@
 --
--- Check constraints
+-- CONSTRAINTS
 -- Constraints can be specified with:
 --  - DEFAULT clause
 --  - CHECK clauses
index 7df2c6057ad39bc0871a3a372beb4a8b73fa4aa5..ad327bef810a8bf59f822d5e565e77912d63f618 100644 (file)
@@ -1,6 +1,5 @@
 --
--- create.source
---
+-- COPY
 --
 
 -- CLASS POPULATION
@@ -54,3 +53,4 @@ COPY bt_name_heap FROM '_OBJWD_/data/hash.data';
 COPY bt_txt_heap FROM '_OBJWD_/data/desc.data';
 
 COPY bt_f8_heap FROM '_OBJWD_/data/hash.data';
+
index 13533c7874a9d6919fd5c9f4d617422c42d724c8..52b1c22e13bb1107b0c967b96102021a145a4578 100644 (file)
@@ -1,6 +1,5 @@
 --
--- create.source
---
+-- CREATE_FUNCTION_1
 --
 
 CREATE FUNCTION widget_in(opaque)
@@ -16,35 +15,30 @@ CREATE FUNCTION widget_out(opaque)
 CREATE FUNCTION check_primary_key ()
        RETURNS opaque
        AS '_OBJWD_/../../../contrib/spi/refint_DLSUFFIX_'
-       LANGUAGE 'c'
-;
+       LANGUAGE 'c';
 
 CREATE FUNCTION check_foreign_key ()
        RETURNS opaque
        AS '_OBJWD_/../../../contrib/spi/refint_DLSUFFIX_'
-       LANGUAGE 'c'
-;
+       LANGUAGE 'c';
 
 CREATE FUNCTION autoinc ()
        RETURNS opaque
        AS '_OBJWD_/../../../contrib/spi/autoinc_DLSUFFIX_'
-       LANGUAGE 'c'
-;
+       LANGUAGE 'c';
 
 CREATE FUNCTION funny_dup17 ()
         RETURNS opaque
         AS '_OBJWD_/regress_DLSUFFIX_'
-        LANGUAGE 'c'
-;                                                                              
+        LANGUAGE 'c';
 
 CREATE FUNCTION ttdummy ()
         RETURNS opaque
         AS '_OBJWD_/regress_DLSUFFIX_'
-        LANGUAGE 'c'
-;                                                                              
+        LANGUAGE 'c';
 
 CREATE FUNCTION set_ttdummy (int4)
         RETURNS int4
         AS '_OBJWD_/regress_DLSUFFIX_'
-        LANGUAGE 'c'
-;                                                                              
+        LANGUAGE 'c';
+
index c68305b3608614915ae901feae557de344a6d847..ebc612261f4e712e6d585fa0ac30c4f7472b893d 100644 (file)
@@ -1,5 +1,5 @@
 --
--- FUNCTION DEFINITIONS
+-- CREATE_FUNCTION_2
 --
 CREATE FUNCTION hobbies(person)
    RETURNS setof hobbies_r 
@@ -53,7 +53,7 @@ CREATE FUNCTION reverse_name(name)
    LANGUAGE 'c';
 
 --
--- FUNCTION DYNAMIC LOADING
+-- Function dynamic loading
 --
 LOAD '_OBJWD_/regress_DLSUFFIX_';
 
index 7b4c1b7e50ce56d577c8cdbdf672ce0217c6f35a..d163d0f4947ebe8030cc2e745aec6e7142b2859f 100644 (file)
@@ -1,6 +1,5 @@
 --
--- install_plpgsql.source
---
+-- INSTALL_PLPGSQL
 --
 
 CREATE FUNCTION plpgsql_call_handler()
@@ -11,3 +10,4 @@ CREATE FUNCTION plpgsql_call_handler()
 CREATE TRUSTED PROCEDURAL LANGUAGE 'plpgsql'
    HANDLER plpgsql_call_handler
    LANCOMPILER 'PL/pgSQL';
+
index f582381299d1cefca729e38811399ce96c36ab11..2a97cf5c4090dd36ea69328d77b1e1dc784c92e9 100644 (file)
@@ -1,6 +1,6 @@
 --
--- replace
---
+-- MISC
+
 --
 -- BTREE
 --
@@ -86,11 +86,11 @@ SELECT * FROM a_star*;
 
 SELECT * 
    FROM b_star* x
-   WHERE x.b = 'bumble'::text or x.a < 3;
+   WHERE x.b = text 'bumble' or x.a < 3;
 
 SELECT class, a 
    FROM c_star* x 
-   WHERE x.c ~ 'hi'::text;
+   WHERE x.c ~ text 'hi';
 
 SELECT class, b, c
    FROM d_star* x
@@ -148,7 +148,7 @@ SELECT * FROM e_star*;
 ALTER TABLE a_star* ADD COLUMN a text;
 
 --UPDATE b_star*
---   SET a = 'gazpacho'::text
+--   SET a = text 'gazpacho'
 --   WHERE aa > 4;
 
 SELECT class, aa, a FROM a_star*;
@@ -208,7 +208,7 @@ SELECT p.hobbies.equipment.name, p.hobbies.name, p.name FROM person* p;
 SELECT user_relns() AS user_relns
    ORDER BY user_relns;
 
---SELECT name(equipment(hobby_construct('skywalking'::text, 'mer'::text))) AS equip_name;
+--SELECT name(equipment(hobby_construct(text 'skywalking', text 'mer'))) AS equip_name;
 
 
 --
@@ -222,3 +222,4 @@ SELECT user_relns() AS user_relns
 --
 -- rewrite rules
 --
+
index 03ea7de2bbcbdc60d8aaeadb696101b51d5d1542..b5aa3c0ed6375d16d3033af13f0314622b4fa0bc 100644 (file)
@@ -1,6 +1,7 @@
 --
 -- AGGREGATES
 --
+
 SELECT avg(four) AS avg_1 FROM onek;
 
 SELECT avg(a) AS avg_32 FROM aggtest WHERE a < 100;
index 2be9f021fce638922cf4ebe5919537f3b6e0878d..d80d1d1156d060defabdb5c0f4b7276938eb6e7e 100644 (file)
@@ -1,6 +1,7 @@
 --
 -- add attribute
 --
+
 CREATE TABLE tmp (initial int4);
 
 ALTER TABLE tmp ADD COLUMN a int4;
index a82a185c92266fbc6f4b096392fcca37ee95659a..c403ad5befc4fcde485adab7c5a9405e43b1700b 100644 (file)
@@ -1,6 +1,7 @@
 --
 -- ARRAYS
 --
+
 SELECT * FROM arrtest;
 
 SELECT arrtest.a[1],
index 22630c013edacf174259b314084e3771c4d3c562..046f945738b8008a6b2cb96cc40be237eafe92ee 100644 (file)
@@ -1,5 +1,5 @@
 --
--- AGGREGATE DEFINITIONS
+-- CREATE_AGGREGATE
 --
 
 -- all functions CREATEd
index e9f93eb75b47dc25bd5c4d55e585dd4c4daf8040..00281765a3025dbdd8ec195784bb76a8cecba65c 100644 (file)
@@ -1,5 +1,6 @@
 --
--- CREATE ancillary data structures (i.e. indices)
+-- CREATE_INDEX
+-- Create ancillary data structures (i.e. indices)
 --
 
 --
index 6431614a30b8a67c37e7f8fe7b0fb81da62fd64e..307767c5be1fa0928164b864f5fc3fc88353696b 100644 (file)
@@ -1,6 +1,5 @@
 --
--- create.source
---
+-- CREATE_MISC
 --
 
 -- CLASS POPULATION
index 0fafa5c2fd4280946d34704f12f2f01eecc836ce..c4251144ca36b01a1d772e0617612f7ee5591ea5 100644 (file)
@@ -1,6 +1,7 @@
 --
--- OPERATOR DEFINITIONS
+-- CREATE_OPERATOR
 --
+
 CREATE OPERATOR ## ( 
    leftarg = path,
    rightarg = path,
index ad955290fadeb14672fe7ccf7642d79b73b7c0fa..fe5470894483fa7cfadcb5293966f8342bfb5023 100644 (file)
@@ -1,6 +1,5 @@
 --
--- create.source
---
+-- CREATE_TABLE
 --
 
 --
@@ -19,16 +18,16 @@ CREATE TABLE equipment_r (
 CREATE TABLE onek (
        unique1         int4,
        unique2         int4,
-       two             int4,
+       two                     int4,
        four            int4,
-       ten             int4,
+       ten                     int4,
        twenty          int4,
        hundred         int4,
        thousand        int4,
        twothousand     int4,
        fivethous       int4,
        tenthous        int4,
-       odd             int4,
+       odd                     int4,
        even            int4,
        stringu1        name,
        stringu2        name,
@@ -38,16 +37,16 @@ CREATE TABLE onek (
 CREATE TABLE tenk1 (
        unique1         int4,
        unique2         int4,
-       two             int4,
+       two                     int4,
        four            int4,
-       ten             int4,
+       ten                     int4,
        twenty          int4,
        hundred         int4,
        thousand        int4,
        twothousand     int4,
        fivethous       int4,
        tenthous        int4,
-       odd             int4,
+       odd                     int4,
        even            int4,
        stringu1        name,
        stringu2        name,
@@ -59,14 +58,14 @@ CREATE TABLE tenk2 (
        unique2         int4,
        two             int4,
        four            int4,
-       ten             int4,
+       ten                     int4,
        twenty          int4,
        hundred         int4,
        thousand        int4,
-       twothousand     int4,
+       twothousand int4,
        fivethous       int4,
        tenthous        int4,
-       odd             int4,
+       odd                     int4,
        even            int4,
        stringu1        name,
        stringu2        name,
@@ -76,7 +75,7 @@ CREATE TABLE tenk2 (
 
 CREATE TABLE person (
        name            text,
-       age             int4,
+       age                     int4,
        location        point
 );
 
@@ -128,7 +127,7 @@ CREATE TABLE shighway (
 ) INHERITS (road);
 
 CREATE TABLE real_city (
-       pop             int4,
+       pop                     int4,
        cname           text,
        outline         path
 );
@@ -145,42 +144,42 @@ CREATE TABLE real_city (
 --
 CREATE TABLE a_star (
        class           char, 
-       a               int4
+       a                       int4
 );
 
 CREATE TABLE b_star (
-       b               text
+       b                       text
 ) INHERITS (a_star);
 
 CREATE TABLE c_star (
-       c               name
+       c                       name
 ) INHERITS (a_star);
 
 CREATE TABLE d_star (
-       d               float8
+       d                       float8
 ) INHERITS (b_star, c_star);
 
 CREATE TABLE e_star (
-       e               int2
+       e                       int2
 ) INHERITS (c_star);
 
 CREATE TABLE f_star (
-       f               polygon
+       f                       polygon
 ) INHERITS (e_star);
 
 CREATE TABLE aggtest (
-       a               int2,
-       b               float4
+       a                       int2,
+       b                       float4
 );
 
 CREATE TABLE arrtest (
-       a               int2[],
-       b               int4[][][],
-       c               name[],
-       d               text[][], 
-       e               float8[],
-       f               char(5)[],
-       g               varchar(5)[]
+       a                       int2[],
+       b                       int4[][][],
+       c                       name[],
+       d                       text[][], 
+       e                       float8[],
+       f                       char(5)[],
+       g                       varchar(5)[]
 );
 
 CREATE TABLE hash_i4_heap (
@@ -207,8 +206,8 @@ CREATE TABLE hash_f8_heap (
 -- the data set is too large for what it's worth
 -- 
 -- CREATE TABLE hash_ovfl_heap (
---     x               int4,
---     y               int4
+--     x                       int4,
+--     y                       int4
 -- );
 
 CREATE TABLE bt_i4_heap (
index 1a75ba52950623dda992d598329034ab72cfbe1f..96655eed631c06da806e68099a3d7d218e929887 100644 (file)
@@ -1,6 +1,5 @@
 --
--- create.source
---
+-- CREATE_TYPE
 --
 
 CREATE TYPE widget (
index a8e248ce8374196ab96fde8e2068ff303e126499..2d7ab12e580651c7af4d9a46abc14c78d05d9790 100644 (file)
@@ -1,5 +1,6 @@
 --
--- VIRTUAL CLASS DEFINITIONS
+-- CREATE_VIEW
+-- Virtual class definitions
 --     (this also tests the query rewrite system)
 --
 
index 5740dcac9fb1b18a893e01c7d05bf7ff530efd52..6358249116e7a2f1c7cba89b096582c51e1a3f48 100644 (file)
@@ -1,3 +1,6 @@
+--
+-- TRIGGERS
+--
 
 create table pkeys (pkey1 int4 not null, pkey2 text not null);
 create table fkeys (fkey1 int4, fkey2 text, fkey3 int);