Commit c0cab6f4 authored by Thomas G. Lockhart's avatar Thomas G. Lockhart

Update format to add uniform headers on files.

parent 69789bf3
-- --
-- Check constraints -- CONSTRAINTS
-- Constraints can be specified with: -- Constraints can be specified with:
-- - DEFAULT clause -- - DEFAULT clause
-- - CHECK clauses -- - CHECK clauses
......
-- --
-- create.source -- COPY
--
-- --
-- CLASS POPULATION -- CLASS POPULATION
...@@ -54,3 +53,4 @@ COPY bt_name_heap FROM '_OBJWD_/data/hash.data'; ...@@ -54,3 +53,4 @@ COPY bt_name_heap FROM '_OBJWD_/data/hash.data';
COPY bt_txt_heap FROM '_OBJWD_/data/desc.data'; COPY bt_txt_heap FROM '_OBJWD_/data/desc.data';
COPY bt_f8_heap FROM '_OBJWD_/data/hash.data'; COPY bt_f8_heap FROM '_OBJWD_/data/hash.data';
-- --
-- create.source -- CREATE_FUNCTION_1
--
-- --
CREATE FUNCTION widget_in(opaque) CREATE FUNCTION widget_in(opaque)
...@@ -16,35 +15,30 @@ CREATE FUNCTION widget_out(opaque) ...@@ -16,35 +15,30 @@ CREATE FUNCTION widget_out(opaque)
CREATE FUNCTION check_primary_key () CREATE FUNCTION check_primary_key ()
RETURNS opaque RETURNS opaque
AS '_OBJWD_/../../../contrib/spi/refint_DLSUFFIX_' AS '_OBJWD_/../../../contrib/spi/refint_DLSUFFIX_'
LANGUAGE 'c' LANGUAGE 'c';
;
CREATE FUNCTION check_foreign_key () CREATE FUNCTION check_foreign_key ()
RETURNS opaque RETURNS opaque
AS '_OBJWD_/../../../contrib/spi/refint_DLSUFFIX_' AS '_OBJWD_/../../../contrib/spi/refint_DLSUFFIX_'
LANGUAGE 'c' LANGUAGE 'c';
;
CREATE FUNCTION autoinc () CREATE FUNCTION autoinc ()
RETURNS opaque RETURNS opaque
AS '_OBJWD_/../../../contrib/spi/autoinc_DLSUFFIX_' AS '_OBJWD_/../../../contrib/spi/autoinc_DLSUFFIX_'
LANGUAGE 'c' LANGUAGE 'c';
;
CREATE FUNCTION funny_dup17 () CREATE FUNCTION funny_dup17 ()
RETURNS opaque RETURNS opaque
AS '_OBJWD_/regress_DLSUFFIX_' AS '_OBJWD_/regress_DLSUFFIX_'
LANGUAGE 'c' LANGUAGE 'c';
;
CREATE FUNCTION ttdummy () CREATE FUNCTION ttdummy ()
RETURNS opaque RETURNS opaque
AS '_OBJWD_/regress_DLSUFFIX_' AS '_OBJWD_/regress_DLSUFFIX_'
LANGUAGE 'c' LANGUAGE 'c';
;
CREATE FUNCTION set_ttdummy (int4) CREATE FUNCTION set_ttdummy (int4)
RETURNS int4 RETURNS int4
AS '_OBJWD_/regress_DLSUFFIX_' AS '_OBJWD_/regress_DLSUFFIX_'
LANGUAGE 'c' LANGUAGE 'c';
;
-- --
-- FUNCTION DEFINITIONS -- CREATE_FUNCTION_2
-- --
CREATE FUNCTION hobbies(person) CREATE FUNCTION hobbies(person)
RETURNS setof hobbies_r RETURNS setof hobbies_r
...@@ -53,7 +53,7 @@ CREATE FUNCTION reverse_name(name) ...@@ -53,7 +53,7 @@ CREATE FUNCTION reverse_name(name)
LANGUAGE 'c'; LANGUAGE 'c';
-- --
-- FUNCTION DYNAMIC LOADING -- Function dynamic loading
-- --
LOAD '_OBJWD_/regress_DLSUFFIX_'; LOAD '_OBJWD_/regress_DLSUFFIX_';
-- --
-- install_plpgsql.source -- INSTALL_PLPGSQL
--
-- --
CREATE FUNCTION plpgsql_call_handler() CREATE FUNCTION plpgsql_call_handler()
...@@ -11,3 +10,4 @@ CREATE FUNCTION plpgsql_call_handler() ...@@ -11,3 +10,4 @@ CREATE FUNCTION plpgsql_call_handler()
CREATE TRUSTED PROCEDURAL LANGUAGE 'plpgsql' CREATE TRUSTED PROCEDURAL LANGUAGE 'plpgsql'
HANDLER plpgsql_call_handler HANDLER plpgsql_call_handler
LANCOMPILER 'PL/pgSQL'; LANCOMPILER 'PL/pgSQL';
-- --
-- replace -- MISC
--
-- --
-- BTREE -- BTREE
-- --
...@@ -86,11 +86,11 @@ SELECT * FROM a_star*; ...@@ -86,11 +86,11 @@ SELECT * FROM a_star*;
SELECT * SELECT *
FROM b_star* x 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 SELECT class, a
FROM c_star* x FROM c_star* x
WHERE x.c ~ 'hi'::text; WHERE x.c ~ text 'hi';
SELECT class, b, c SELECT class, b, c
FROM d_star* x FROM d_star* x
...@@ -148,7 +148,7 @@ SELECT * FROM e_star*; ...@@ -148,7 +148,7 @@ SELECT * FROM e_star*;
ALTER TABLE a_star* ADD COLUMN a text; ALTER TABLE a_star* ADD COLUMN a text;
--UPDATE b_star* --UPDATE b_star*
-- SET a = 'gazpacho'::text -- SET a = text 'gazpacho'
-- WHERE aa > 4; -- WHERE aa > 4;
SELECT class, aa, a FROM a_star*; SELECT class, aa, a FROM a_star*;
...@@ -208,7 +208,7 @@ SELECT p.hobbies.equipment.name, p.hobbies.name, p.name FROM person* p; ...@@ -208,7 +208,7 @@ SELECT p.hobbies.equipment.name, p.hobbies.name, p.name FROM person* p;
SELECT user_relns() AS user_relns SELECT user_relns() AS user_relns
ORDER BY 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 ...@@ -222,3 +222,4 @@ SELECT user_relns() AS user_relns
-- --
-- rewrite rules -- rewrite rules
-- --
-- --
-- AGGREGATES -- AGGREGATES
-- --
SELECT avg(four) AS avg_1 FROM onek; SELECT avg(four) AS avg_1 FROM onek;
SELECT avg(a) AS avg_32 FROM aggtest WHERE a < 100; SELECT avg(a) AS avg_32 FROM aggtest WHERE a < 100;
......
-- --
-- add attribute -- add attribute
-- --
CREATE TABLE tmp (initial int4); CREATE TABLE tmp (initial int4);
ALTER TABLE tmp ADD COLUMN a int4; ALTER TABLE tmp ADD COLUMN a int4;
......
-- --
-- ARRAYS -- ARRAYS
-- --
SELECT * FROM arrtest; SELECT * FROM arrtest;
SELECT arrtest.a[1], SELECT arrtest.a[1],
......
-- --
-- AGGREGATE DEFINITIONS -- CREATE_AGGREGATE
-- --
-- all functions CREATEd -- all functions CREATEd
......
-- --
-- CREATE ancillary data structures (i.e. indices) -- CREATE_INDEX
-- Create ancillary data structures (i.e. indices)
-- --
-- --
......
-- --
-- create.source -- CREATE_MISC
--
-- --
-- CLASS POPULATION -- CLASS POPULATION
......
-- --
-- OPERATOR DEFINITIONS -- CREATE_OPERATOR
-- --
CREATE OPERATOR ## ( CREATE OPERATOR ## (
leftarg = path, leftarg = path,
rightarg = path, rightarg = path,
......
-- --
-- create.source -- CREATE_TABLE
--
-- --
-- --
......
-- --
-- create.source -- CREATE_TYPE
--
-- --
CREATE TYPE widget ( CREATE TYPE widget (
......
-- --
-- VIRTUAL CLASS DEFINITIONS -- CREATE_VIEW
-- Virtual class definitions
-- (this also tests the query rewrite system) -- (this also tests the query rewrite system)
-- --
......
--
-- TRIGGERS
--
create table pkeys (pkey1 int4 not null, pkey2 text not null); create table pkeys (pkey1 int4 not null, pkey2 text not null);
create table fkeys (fkey1 int4, fkey2 text, fkey3 int); create table fkeys (fkey1 int4, fkey2 text, fkey3 int);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment