? doc/src/sgml/ref/TMP.ref ? doc/src/sgml/ref/fig.interleaf Index: doc/src/sgml/ref/abort.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/abort.sgml,v retrieving revision 1.11 diff -c -r1.11 abort.sgml *** doc/src/sgml/ref/abort.sgml 2002/04/21 19:02:39 1.11 --- doc/src/sgml/ref/abort.sgml 2003/02/23 15:27:36 *************** *** 20,28 **** 1999-07-20 ! ! ABORT [ WORK | TRANSACTION ] ! --- 20,32 ---- 1999-07-20 ! ! ABORT ! ! WORK ! TRANSACTION ! ! Index: doc/src/sgml/ref/alter_database.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/alter_database.sgml,v retrieving revision 1.4 diff -c -r1.4 alter_database.sgml *** doc/src/sgml/ref/alter_database.sgml 2003/01/19 00:13:29 1.4 --- doc/src/sgml/ref/alter_database.sgml 2003/02/23 15:27:40 *************** *** 15,24 **** ! ! ALTER DATABASE name SET variable { TO | = } { value | DEFAULT } ! ALTER DATABASE name RESET variable ! --- 15,41 ---- ! ! ALTER DATABASE ! name ! SET ! variable ! ! TO ! = ! ! ! value ! DEFAULT ! ! ! ! ! ALTER DATABASE ! name ! RESET ! variable ! Index: doc/src/sgml/ref/alter_domain.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/alter_domain.sgml,v retrieving revision 1.7 diff -c -r1.7 alter_domain.sgml *** doc/src/sgml/ref/alter_domain.sgml 2003/01/06 00:31:44 1.7 --- doc/src/sgml/ref/alter_domain.sgml 2003/02/23 15:27:41 *************** *** 20,37 **** 2002-11-27 ! ! ALTER DOMAIN domain ! { SET DEFAULT value | DROP DEFAULT } ! ALTER DOMAIN domain ! { SET | DROP } NOT NULL ! ALTER DOMAIN domain ! ADD domain_constraint ! ALTER DOMAIN domain ! DROP CONSTRAINT constraint_name [ RESTRICT | CASCADE ] ! ALTER DOMAIN domain ! OWNER TO new_owner ! --- 20,64 ---- 2002-11-27 ! ! ALTER DOMAIN ! domain ! ! SET DEFAULT value ! DROP DEFAULT ! ! ! ! ALTER DOMAIN ! domain ! ! SET ! DROP ! ! NOT NULL ! ! ! ALTER DOMAIN ! domain ! ADD ! domain_constraint ! ! ! ALTER DOMAIN ! domain ! DROP CONSTRAINT ! constraint_name ! ! RESTRICT ! CASCADE ! ! ! ! ALTER DOMAIN ! domain ! OWNER TO ! new_owner ! Index: doc/src/sgml/ref/alter_group.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/alter_group.sgml,v retrieving revision 1.8 diff -c -r1.8 alter_group.sgml *** doc/src/sgml/ref/alter_group.sgml 2002/04/21 19:02:39 1.8 --- doc/src/sgml/ref/alter_group.sgml 2003/02/23 15:27:42 *************** *** 20,29 **** 2000-01-14 ! ! ALTER GROUP name ADD USER username [, ... ] ! ALTER GROUP name DROP USER username [, ... ] ! --- 20,39 ---- 2000-01-14 ! ! ALTER GROUP ! name ! ADD USER ! username ! , ! ! ! ALTER GROUP ! name ! DROP USER ! username ! , ! Index: doc/src/sgml/ref/alter_table.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/alter_table.sgml,v retrieving revision 1.56 diff -c -r1.56 alter_table.sgml *** doc/src/sgml/ref/alter_table.sgml 2003/02/19 04:06:28 1.56 --- doc/src/sgml/ref/alter_table.sgml 2003/02/23 15:27:48 *************** *** 20,52 **** 1999-07-20 ! ! ALTER TABLE [ ONLY ] table [ * ] ! ADD [ COLUMN ] column type [ column_constraint [ ... ] ] ! ALTER TABLE [ ONLY ] table [ * ] ! DROP [ COLUMN ] column [ RESTRICT | CASCADE ] ! ALTER TABLE [ ONLY ] table [ * ] ! ALTER [ COLUMN ] column { SET DEFAULT value | DROP DEFAULT } ! ALTER TABLE [ ONLY ] table [ * ] ! ALTER [ COLUMN ] column { SET | DROP } NOT NULL ! ALTER TABLE [ ONLY ] table [ * ] ! ALTER [ COLUMN ] column SET STATISTICS integer ! ALTER TABLE [ ONLY ] table [ * ] ! ALTER [ COLUMN ] column SET STORAGE { PLAIN | EXTERNAL | EXTENDED | MAIN } ! ALTER TABLE [ ONLY ] table [ * ] ! SET WITHOUT OIDS ! ALTER TABLE [ ONLY ] table [ * ] ! RENAME [ COLUMN ] column TO new_column ! ALTER TABLE table RENAME TO new_table ! ALTER TABLE [ ONLY ] table [ * ] ! ADD table_constraint ! ALTER TABLE [ ONLY ] table [ * ] ! DROP CONSTRAINT constraint_name [ RESTRICT | CASCADE ] ! ALTER TABLE table OWNER TO new_owner ! --- 20,160 ---- 1999-07-20 ! ! ALTER TABLE ! ONLY ! table ! * ! ADD ! COLUMN ! column ! type ! column_constraint ! ! ! ALTER TABLE ! ONLY ! table ! * ! DROP ! COLUMN ! column ! ! RESTRICT ! CASCADE ! ! ! ! ALTER TABLE ! ONLY ! table ! * ! ALTER ! COLUMN ! column ! ! SET DEFAULT value ! DROP DEFAULT ! ! ! ! ALTER TABLE ! ONLY ! table ! * ! ALTER ! COLUMN ! column ! ! SET ! DROP ! ! NOT NULL ! ! ! ALTER TABLE ! ONLY ! table ! * ! ALTER ! COLUMN ! ! column ! SET STATISTICS integer ! ! ! ! ALTER TABLE ! ONLY ! table ! * ! ALTER ! COLUMN ! ! column SET STORAGE ! ! ! PLAIN ! EXTERNAL ! EXTENDED ! MAIN ! ! ! ! ALTER TABLE ! ONLY ! table ! * ! SET WITHOUT OIDS ! ! ! ALTER TABLE ! ONLY ! table ! * ! RENAME ! COLUMN ! ! column TO ! new_column ! ! ! ! ALTER TABLE ! ! table RENAME TO new_table ! ! ! ! ALTER TABLE ! ONLY ! table ! * ! ADD ! table_constraint ! ! ! ! ALTER TABLE ! ONLY ! table ! * ! DROP CONSTRAINT ! constraint_name ! ! ! RESTRICT ! CASCADE ! ! ! ! ALTER TABLE ! ! table OWNER TO new_owner ! ! Index: doc/src/sgml/ref/alter_trigger.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/alter_trigger.sgml,v retrieving revision 1.3 diff -c -r1.3 alter_trigger.sgml *** doc/src/sgml/ref/alter_trigger.sgml 2002/11/23 03:59:06 1.3 --- doc/src/sgml/ref/alter_trigger.sgml 2003/02/23 15:27:50 *************** *** 21,30 **** 2002-04-19 ! ! ALTER TRIGGER trigger ON table RENAME TO newname ! --- 21,34 ---- 2002-04-19 ! ! ALTER TRIGGER ! ! trigger ON ! table RENAME TO newname ! ! Index: doc/src/sgml/ref/alter_user.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/alter_user.sgml,v retrieving revision 1.24 diff -c -r1.24 alter_user.sgml *** doc/src/sgml/ref/alter_user.sgml 2003/01/19 00:13:29 1.24 --- doc/src/sgml/ref/alter_user.sgml 2003/02/23 15:27:50 *************** *** 15,33 **** ! ! ALTER USER username [ [ WITH ] option [ ... ] ] ! where option can be: ! ! [ ENCRYPTED | UNENCRYPTED ] PASSWORD 'password' ! | CREATEDB | NOCREATEDB ! | CREATEUSER | NOCREATEUSER ! | VALID UNTIL 'abstime' ! ! ALTER USER username SET variable { TO | = } { value | DEFAULT } ! ALTER USER username RESET variable ! --- 15,67 ---- ! ! ALTER USER ! username ! ! WITH ! option ! ! ! ! ! ! ENCRYPTED ! UNENCRYPTED ! ! PASSWORD 'password' ! ! CREATEDB ! NOCREATEDB ! CREATEUSER ! NOCREATEUSER ! VALID UNTIL 'abstime' ! ! ! ! ! ALTER USER ! ! username ! SET variable ! ! ! TO ! = ! ! ! value ! DEFAULT ! ! ! ! ALTER USER ! ! username ! RESET variable ! ! Index: doc/src/sgml/ref/analyze.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/analyze.sgml,v retrieving revision 1.10 diff -c -r1.10 analyze.sgml *** doc/src/sgml/ref/analyze.sgml 2003/01/19 00:13:29 1.10 --- doc/src/sgml/ref/analyze.sgml 2003/02/23 15:28:08 *************** *** 20,28 **** 2001-05-04 ! ! ANALYZE [ VERBOSE ] [ table [ (column [, ...] ) ] ] ! --- 20,33 ---- 2001-05-04 ! ! ANALYZE ! VERBOSE ! table ! (column ! ,) ! ! Index: doc/src/sgml/ref/begin.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/begin.sgml,v retrieving revision 1.21 diff -c -r1.21 begin.sgml *** doc/src/sgml/ref/begin.sgml 2003/01/19 00:13:29 1.21 --- doc/src/sgml/ref/begin.sgml 2003/02/23 15:28:13 *************** *** 15,30 **** start a transaction block ! 1999-07-20 ! ! BEGIN [ WORK | TRANSACTION ] ! ! 1999-06-11 --- 15,34 ---- start a transaction block ! 1999-07-20 ! ! BEGIN ! ! WORK ! TRANSACTION ! ! ! 1999-06-11 Index: doc/src/sgml/ref/checkpoint.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/checkpoint.sgml,v retrieving revision 1.7 diff -c -r1.7 checkpoint.sgml *** doc/src/sgml/ref/checkpoint.sgml 2003/01/19 00:13:29 1.7 --- doc/src/sgml/ref/checkpoint.sgml 2003/02/23 15:28:13 *************** *** 12,20 **** ! ! CHECKPOINT ! --- 12,20 ---- ! ! CHECKPOINT ! Index: doc/src/sgml/ref/close.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/close.sgml,v retrieving revision 1.13 diff -c -r1.13 close.sgml *** doc/src/sgml/ref/close.sgml 2002/05/18 15:44:47 1.13 --- doc/src/sgml/ref/close.sgml 2003/02/23 15:28:31 *************** *** 20,28 **** 1999-07-20 ! ! CLOSE cursor ! --- 20,29 ---- 1999-07-20 ! ! CLOSE ! cursor ! Index: doc/src/sgml/ref/cluster.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/cluster.sgml,v retrieving revision 1.24 diff -c -r1.24 cluster.sgml *** doc/src/sgml/ref/cluster.sgml 2003/02/19 04:06:28 1.24 --- doc/src/sgml/ref/cluster.sgml 2003/02/23 15:28:39 *************** *** 20,30 **** 1999-07-20 ! ! CLUSTER indexname ON tablename ! CLUSTER tablename ! CLUSTER ! --- 20,39 ---- 1999-07-20 ! ! CLUSTER ! ! indexname ON ! tablename ! ! ! ! CLUSTER ! tablename ! ! ! CLUSTER ! Index: doc/src/sgml/ref/clusterdb.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/clusterdb.sgml,v retrieving revision 1.7 diff -c -r1.7 clusterdb.sgml *** doc/src/sgml/ref/clusterdb.sgml 2003/02/19 04:06:28 1.7 --- doc/src/sgml/ref/clusterdb.sgml 2003/02/23 15:28:46 *************** *** 19,25 **** clusterdb connection-options ! --table | -t table dbname clusterdb --- 19,28 ---- clusterdb connection-options ! ! --table ! -t table ! dbname clusterdb Index: doc/src/sgml/ref/comment.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/comment.sgml,v retrieving revision 1.20 diff -c -r1.20 comment.sgml *** doc/src/sgml/ref/comment.sgml 2002/07/12 18:43:12 1.20 --- doc/src/sgml/ref/comment.sgml 2003/02/23 15:28:51 *************** *** 20,45 **** 1999-07-20 ! ! COMMENT ON ! [ ! TABLE object_name | ! COLUMN table_name.column_name | ! AGGREGATE agg_name (agg_type) | ! CONSTRAINT constraint_name ON table_name | ! DATABASE object_name | ! DOMAIN object_name | ! FUNCTION func_name (arg1_type, arg2_type, ...) | ! INDEX object_name | ! OPERATOR op (leftoperand_type, rightoperand_type) | ! RULE rule_name ON table_name | ! SCHEMA object_name | ! SEQUENCE object_name | ! TRIGGER trigger_name ON table_name | ! TYPE object_name | ! VIEW object_name ! ] IS 'text' ! --- 20,71 ---- 1999-07-20 ! ! COMMENT ON ! ! TABLE object_name ! ! COLUMN ! table_name.column_name ! ! ! AGGREGATE agg_name ! (agg_type) ! ! ! CONSTRAINT constraint_name ! ON table_name ! ! DATABASE object_name ! DOMAIN object_name ! ! FUNCTION func_name ! (arg1_type ,) ! ! INDEX object_name ! ! OPERATOR op ! (leftoperand_type, ! rightoperand_type) ! ! ! RULE rule_name ! ON table_name ! ! SCHEMA object_name ! SEQUENCE object_name ! ! TRIGGER trigger_name ! ON table_name ! ! ! TYPE object_name ! ! VIEW object_name ! ! IS 'text' ! Index: doc/src/sgml/ref/commit.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/commit.sgml,v retrieving revision 1.14 diff -c -r1.14 commit.sgml *** doc/src/sgml/ref/commit.sgml 2002/04/21 19:02:39 1.14 --- doc/src/sgml/ref/commit.sgml 2003/02/23 15:28:51 *************** *** 21,29 **** 1999-07-20 ! ! COMMIT [ WORK | TRANSACTION ] ! --- 21,33 ---- 1999-07-20 ! ! COMMIT ! ! WORK ! TRANSACTION ! ! Index: doc/src/sgml/ref/copy.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/copy.sgml,v retrieving revision 1.40 diff -c -r1.40 copy.sgml *** doc/src/sgml/ref/copy.sgml 2002/09/21 18:32:54 1.40 --- doc/src/sgml/ref/copy.sgml 2003/02/23 15:28:59 *************** *** 20,41 **** 1999-12-11 ! ! COPY table [ ( column [, ...] ) ] ! FROM { 'filename' | stdin } ! [ [ WITH ] ! [ BINARY ] ! [ OIDS ] ! [ DELIMITER [ AS ] 'delimiter' ] ! [ NULL [ AS ] 'null string' ] ] ! COPY table [ ( column [, ...] ) ] ! TO { 'filename' | stdout } ! [ [ WITH ] ! [ BINARY ] ! [ OIDS ] ! [ DELIMITER [ AS ] 'delimiter' ] ! [ NULL [ AS ] 'null string' ] ] ! --- 20,68 ---- 1999-12-11 ! ! COPY ! table ! ! ( column ! , ) ! ! FROM ! ! 'filename' ! stdin ! ! ! ! WITH ! BINARY ! OIDS ! DELIMITER AS 'delimiter' ! NULL AS 'null string' ! ! ! ! ! COPY ! table ! ! ( column ! , ) ! ! TO ! ! 'filename' ! stdout ! ! ! ! WITH ! BINARY ! OIDS ! DELIMITER AS 'delimiter' ! NULL AS 'null string' ! ! Index: doc/src/sgml/ref/create_aggregate.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/create_aggregate.sgml,v retrieving revision 1.23 diff -c -r1.23 create_aggregate.sgml *** doc/src/sgml/ref/create_aggregate.sgml 2003/01/19 00:13:29 1.23 --- doc/src/sgml/ref/create_aggregate.sgml 2003/02/23 15:29:04 *************** *** 21,32 **** 2000-07-16 ! ! CREATE AGGREGATE name ( BASETYPE = input_data_type, ! SFUNC = sfunc, STYPE = state_type ! [ , FINALFUNC = ffunc ] ! [ , INITCOND = initial_condition ] ) ! --- 21,38 ---- 2000-07-16 ! ! CREATE AGGREGATE ! ! name ( ! BASETYPE = input_data_type, ! SFUNC = sfunc, ! STYPE = state_type ! ! , FINALFUNC = ffunc ! , INITCOND = initial_condition ! ) ! Index: doc/src/sgml/ref/create_cast.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/create_cast.sgml,v retrieving revision 1.9 diff -c -r1.9 create_cast.sgml *** doc/src/sgml/ref/create_cast.sgml 2003/02/01 22:09:25 1.9 --- doc/src/sgml/ref/create_cast.sgml 2003/02/23 15:29:07 *************** *** 12,26 **** ! ! CREATE CAST (sourcetype AS targettype) ! WITH FUNCTION funcname (argtype) ! [ AS ASSIGNMENT | AS IMPLICIT ] ! CREATE CAST (sourcetype AS targettype) ! WITHOUT FUNCTION ! [ AS ASSIGNMENT | AS IMPLICIT ] ! --- 12,45 ---- ! ! CREATE CAST ! ! (sourcetype ! AS targettype) ! ! ! WITH FUNCTION funcname ! (argtype) ! ! ! AS ASSIGNMENT ! AS IMPLICIT ! ! ! ! CREATE CAST ! ! (sourcetype ! AS targettype) ! ! WITHOUT FUNCTION ! ! AS ASSIGNMENT ! AS IMPLICIT ! ! Index: doc/src/sgml/ref/create_constraint.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/create_constraint.sgml,v retrieving revision 1.8 diff -c -r1.8 create_constraint.sgml *** doc/src/sgml/ref/create_constraint.sgml 2002/05/18 15:44:47 1.8 --- doc/src/sgml/ref/create_constraint.sgml 2003/02/23 15:29:07 *************** *** 20,31 **** 2000-04-13 ! ! CREATE CONSTRAINT TRIGGER name AFTER events ON ! relation constraint attributes ! FOR EACH ROW EXECUTE PROCEDURE func '(' args ')' ! --- 20,39 ---- <refsynopsisdivinfo> <date>2000-04-13</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>CREATE CONSTRAINT TRIGGER</command> ! <arg choice="plain"> ! <replaceable class="parameter">name</replaceable> AFTER <replaceable class="parameter">events</replaceable> ON ! <replaceable class="parameter">relation</replaceable> ! <replaceable class="parameter">constraint</replaceable> ! <replaceable class="parameter">attributes</replaceable> ! <sbr> ! FOR EACH ROW EXECUTE PROCEDURE ! <replaceable class="parameter">func</replaceable> '(' ! <replaceable class="parameter">args</replaceable> ')' ! </arg> ! </cmdsynopsis> <refsect2 id="R2-SQL-CREATECONSTRAINT-1"> <title> Index: doc/src/sgml/ref/create_conversion.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/create_conversion.sgml,v retrieving revision 1.6 diff -c -r1.6 create_conversion.sgml *** doc/src/sgml/ref/create_conversion.sgml 2003/01/19 00:13:29 1.6 --- doc/src/sgml/ref/create_conversion.sgml 2003/02/23 15:29:08 *************** *** 12,21 **** </refnamediv> <refsynopsisdiv> ! <synopsis> ! CREATE [DEFAULT] CONVERSION <replaceable>conversion_name</replaceable> ! FOR <replaceable>source_encoding</replaceable> TO <replaceable>dest_encoding</replaceable> FROM <replaceable>funcname</replaceable> ! </synopsis> </refsynopsisdiv> <refsect1 id="sql-createconversion-description"> --- 12,26 ---- </refnamediv> <refsynopsisdiv> ! <cmdsynopsis> ! <command>CREATE <optional>DEFAULT</optional> CONVERSION</command> ! <arg choice="plain"> ! <replaceable>conversion_name</replaceable> ! FOR <replaceable>source_encoding</replaceable> ! TO <replaceable>dest_encoding</replaceable> ! FROM <replaceable>funcname</replaceable> ! </arg> ! </cmdsynopsis> </refsynopsisdiv> <refsect1 id="sql-createconversion-description"> Index: doc/src/sgml/ref/create_database.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/create_database.sgml,v retrieving revision 1.32 diff -c -r1.32 create_database.sgml *** doc/src/sgml/ref/create_database.sgml 2003/02/13 05:37:43 1.32 --- doc/src/sgml/ref/create_database.sgml 2003/02/23 15:29:12 *************** *** 20,32 **** <refsynopsisdivinfo> <date>1999-12-11</date> </refsynopsisdivinfo> ! <synopsis> ! CREATE DATABASE <replaceable class="PARAMETER">name</replaceable> ! [ [ WITH ] [ OWNER [=] <replaceable class="parameter">dbowner</replaceable> ] ! [ LOCATION [=] '<replaceable class="parameter">dbpath</replaceable>' ] ! [ TEMPLATE [=] <replaceable class="parameter">template</replaceable> ] ! [ ENCODING [=] <replaceable class="parameter">encoding</replaceable> ] ] ! </synopsis> <refsect2 id="R2-SQL-CREATEDATABASE-1"> <refsect2info> --- 20,36 ---- <refsynopsisdivinfo> <date>1999-12-11</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>CREATE DATABASE</command> ! <arg choice="plain"><replaceable class="PARAMETER">name</replaceable></arg> ! <arg> ! <arg>WITH</arg> ! <arg>OWNER <arg>=</arg><replaceable class="parameter">dbowner</replaceable></arg> ! <arg>LOCATION <arg>=</arg> '<replaceable class="parameter">dbpath</replaceable>'</arg> ! <arg>TEMPLATE <arg>=</arg> <replaceable class="parameter">template</replaceable></arg> ! <arg>ENCODING <arg>=</arg> <replaceable class="parameter">encoding</replaceable></arg> ! </arg> ! </cmdsynopsis> <refsect2 id="R2-SQL-CREATEDATABASE-1"> <refsect2info> Index: doc/src/sgml/ref/create_domain.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/create_domain.sgml,v retrieving revision 1.11 diff -c -r1.11 create_domain.sgml *** doc/src/sgml/ref/create_domain.sgml 2003/02/13 05:32:42 1.11 --- doc/src/sgml/ref/create_domain.sgml 2003/02/23 15:29:13 *************** *** 22,37 **** <refsynopsisdivinfo> <date>2002-02-24</date> </refsynopsisdivinfo> ! <synopsis> ! CREATE DOMAIN <replaceable class="parameter">domainname</replaceable> [AS] <replaceable class="parameter">data_type</replaceable> ! [ DEFAULT <replaceable>default_expr</> ] ! [ <replaceable class="PARAMETER">constraint</replaceable> [ ... ] ] ! where <replaceable class="PARAMETER">constraint</replaceable> is: ! ! [ CONSTRAINT <replaceable class="PARAMETER">constraint_name</replaceable> ] ! { NOT NULL | NULL | CHECK (<replaceable class="PARAMETER">expression</replaceable>) } ! </synopsis> <refsect2 id="R2-SQL-CREATEDOMAIN-1"> <refsect2info> --- 22,52 ---- <refsynopsisdivinfo> <date>2002-02-24</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>CREATE DOMAIN</command> ! <arg choice="plain"> ! <replaceable class="parameter">domainname</replaceable> ! <arg>AS</arg> ! <replaceable class="parameter">data_type</replaceable> ! </arg> ! <arg>DEFAULT <replaceable>default_expr</replaceable></arg> ! <arg rep="repeat"> ! <synopfragmentref linkend="SQL-CREATEDOMAIN-fragment"> ! constraint ! </synopfragmentref> ! </arg> ! <synopfragment id="SQL-CREATEDOMAIN-fragment"> ! <arg> ! CONSTRAINT <replaceable class="PARAMETER">constraint_name</replaceable> ! </arg> ! <group choice="req"> ! <arg choice="plain">NOT NULL</arg> ! <arg choice="plain">NULL</arg> ! <arg choice="plain">CHECK (<replaceable class="PARAMETER">expression</replaceable>)</arg> ! </group> ! </synopfragment> ! </cmdsynopsis> <refsect2 id="R2-SQL-CREATEDOMAIN-1"> <refsect2info> Index: doc/src/sgml/ref/create_function.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/create_function.sgml,v retrieving revision 1.44 diff -c -r1.44 create_function.sgml *** doc/src/sgml/ref/create_function.sgml 2003/01/19 00:13:29 1.44 --- doc/src/sgml/ref/create_function.sgml 2003/02/23 15:29:22 *************** *** 14,31 **** </refnamediv> <refsynopsisdiv> ! <synopsis> ! CREATE [ OR REPLACE ] FUNCTION <replaceable class="parameter">name</replaceable> ( [ <replaceable class="parameter">argtype</replaceable> [, ...] ] ) ! RETURNS <replaceable class="parameter">rettype</replaceable> ! { LANGUAGE <replaceable class="parameter">langname</replaceable> ! | IMMUTABLE | STABLE | VOLATILE ! | CALLED ON NULL INPUT | RETURNS NULL ON NULL INPUT | STRICT ! | [EXTERNAL] SECURITY INVOKER | [EXTERNAL] SECURITY DEFINER ! | AS '<replaceable class="parameter">definition</replaceable>' ! | AS '<replaceable class="parameter">obj_file</replaceable>', '<replaceable class="parameter">link_symbol</replaceable>' ! } ... ! [ WITH ( <replaceable class="parameter">attribute</replaceable> [, ...] ) ] ! </synopsis> </refsynopsisdiv> <refsect1 id="sql-createfunction-description"> --- 14,49 ---- </refnamediv> <refsynopsisdiv> ! <cmdsynopsis> ! <command>CREATE <optional>OR REPLACE</optional> FUNCTION</command> ! <arg choice="plain"> ! <replaceable class="parameter">name</replaceable> ( ! <arg><replaceable class="parameter">argtype</replaceable> <arg rep="repeat">,</arg></arg> ! ) ! </arg> ! <arg choice="plain">RETURNS <replaceable class="parameter">rettype</replaceable></arg> ! <sbr> ! <group choice="req" rep="repeat"> ! <arg choice="plain">LANGUAGE <replaceable class="parameter">langname</replaceable></arg><sbr> ! <arg choice="plain">IMMUTABLE</arg><sbr> ! <arg choice="plain">STABLE</arg><sbr> ! <arg choice="plain">VOLATILE</arg><sbr> ! <arg choice="plain">CALLED ON NULL INPUT</arg><sbr> ! <arg choice="plain">RETURNS NULL ON NULL INPUT</arg><sbr> ! <arg choice="plain">STRICT</arg><sbr> ! <arg choice="plain"><arg>EXTERNAL</arg> SECURITY INVOKER</arg><sbr> ! <arg choice="plain"><arg>EXTERNAL</arg> SECURITY DEFINER</arg><sbr> ! <arg choice="plain">AS '<replaceable class="parameter">definition</replaceable>'</arg><sbr> ! <arg choice="plain"> ! AS '<replaceable class="parameter">obj_file</replaceable>', ! '<replaceable class="parameter">link_symbol</replaceable>' ! </arg> ! </group><sbr> ! <arg> ! WITH ( <replaceable class="parameter">attribute</replaceable> ! <arg rep="repeat">,</arg> ) ! </arg> ! </cmdsynopsis> </refsynopsisdiv> <refsect1 id="sql-createfunction-description"> Index: doc/src/sgml/ref/create_group.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/create_group.sgml,v retrieving revision 1.9 diff -c -r1.9 create_group.sgml *** doc/src/sgml/ref/create_group.sgml 2003/01/19 00:13:29 1.9 --- doc/src/sgml/ref/create_group.sgml 2003/02/23 15:29:23 *************** *** 20,33 **** <refsynopsisdivinfo> <date>2000-01-14</date> </refsynopsisdivinfo> ! <synopsis> ! CREATE GROUP <replaceable class="PARAMETER">name</replaceable> [ [ WITH ] <replaceable class="PARAMETER">option</replaceable> [ ... ] ] ! where <replaceable class="PARAMETER">option</replaceable> can be: ! ! SYSID <replaceable class="PARAMETER">gid</replaceable> ! | USER <replaceable class="PARAMETER">username</replaceable> [, ...] ! </synopsis> <refsect2 id="R2-SQL-CREATEGROUP-1"> <refsect2info> --- 20,46 ---- <refsynopsisdivinfo> <date>2000-01-14</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>CREATE GROUP</command> ! <arg choice="plain"><replaceable class="PARAMETER">name</replaceable></arg> ! <arg> ! <arg>WITH</arg> ! <arg choice="plain" rep="repeat"> ! <synopfragmentref linkend="SQL-CREATEGROUP-OPTION-fragment"> ! option ! </synopfragmentref> ! </arg> ! </arg> ! <synopfragment id="SQL-CREATEGROUP-OPTION-fragment"> ! <group choice="plain"> ! <arg choice="plain">SYSID <replaceable class="PARAMETER">gid</replaceable></arg> ! <arg choice="plain">USER <replaceable class="PARAMETER">username</replaceable> ! <arg rep="repeat">,</arg> ! </arg> ! </group> ! </synopfragment> ! </cmdsynopsis> <refsect2 id="R2-SQL-CREATEGROUP-1"> <refsect2info> Index: doc/src/sgml/ref/create_index.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/create_index.sgml,v retrieving revision 1.37 diff -c -r1.37 create_index.sgml *** doc/src/sgml/ref/create_index.sgml 2002/09/21 18:32:54 1.37 --- doc/src/sgml/ref/create_index.sgml 2003/02/23 15:29:34 *************** *** 20,33 **** <refsynopsisdivinfo> <date>2001-07-15</date> </refsynopsisdivinfo> ! <synopsis> ! CREATE [ UNIQUE ] INDEX <replaceable class="parameter">index_name</replaceable> ON <replaceable class="parameter">table</replaceable> ! [ USING <replaceable class="parameter">acc_method</replaceable> ] ( <replaceable class="parameter">column</replaceable> [ <replaceable class="parameter">ops_name</replaceable> ] [, ...] ) ! [ WHERE <replaceable class="parameter">predicate</replaceable> ] ! CREATE [ UNIQUE ] INDEX <replaceable class="parameter">index_name</replaceable> ON <replaceable class="parameter">table</replaceable> ! [ USING <replaceable class="parameter">acc_method</replaceable> ] ( <replaceable class="parameter">func_name</replaceable>( <replaceable class="parameter">column</replaceable> [, ... ]) [ <replaceable class="parameter">ops_name</replaceable> ] ) ! [ WHERE <replaceable class="parameter">predicate</replaceable> ] ! </synopsis> <refsect2 id="R2-SQL-CREATEINDEX-1"> <refsect2info> --- 20,56 ---- <refsynopsisdivinfo> <date>2001-07-15</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>CREATE <optional>UNIQUE</optional> INDEX</command> ! <arg choice="plain"> ! <replaceable class="parameter">index_name</replaceable> ON ! <replaceable class="parameter">table</replaceable> ! </arg> ! <arg>USING <replaceable class="parameter">acc_method</replaceable></arg> ! <arg choice="plain"> ! ( <replaceable class="parameter">column</replaceable> ! <arg><replaceable class="parameter">ops_name</replaceable></arg> ! <arg rep="repeat">,</arg> ! ) ! </arg> ! <arg>WHERE <replaceable class="parameter">predicate</replaceable></arg> ! </cmdsynopsis> ! ! <cmdsynopsis> ! <command>CREATE <optional>UNIQUE</optional> INDEX</command> ! <arg choice="plain"> ! <replaceable class="parameter">index_name</replaceable> ON ! <replaceable class="parameter">table</replaceable> ! </arg> ! <arg>USING <replaceable class="parameter">acc_method</replaceable></arg> ! <arg choice="plain"> ! ( <replaceable class="parameter">func_name</replaceable> ! ( <replaceable class="parameter">column</replaceable> <arg rep="repeat">,</arg>) ! <arg><replaceable class="parameter">ops_name</replaceable></arg> ! ) ! </arg> ! <arg>WHERE <replaceable class="parameter">predicate</replaceable></arg> ! </cmdsynopsis> <refsect2 id="R2-SQL-CREATEINDEX-1"> <refsect2info> Index: doc/src/sgml/ref/create_language.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/create_language.sgml,v retrieving revision 1.30 diff -c -r1.30 create_language.sgml *** doc/src/sgml/ref/create_language.sgml 2003/01/19 00:13:29 1.30 --- doc/src/sgml/ref/create_language.sgml 2003/02/23 15:29:36 *************** *** 15,24 **** </refnamediv> <refsynopsisdiv> ! <synopsis> ! CREATE [ TRUSTED ] [ PROCEDURAL ] LANGUAGE <replaceable class="parameter">langname</replaceable> ! HANDLER <replaceable class="parameter">call_handler</replaceable> [ VALIDATOR <replaceable>valfunction</replaceable> ] ! </synopsis> </refsynopsisdiv> <refsect1 id="sql-createlanguage-description"> --- 15,29 ---- </refnamediv> <refsynopsisdiv> ! <cmdsynopsis> ! <command> ! CREATE <optional>TRUSTED</optional> ! <optional>PROCEDURAL</optional> LANGUAGE ! </command> ! <arg choice="plain"><replaceable class="parameter">langname</replaceable></arg> ! <arg choice="plain">HANDLER <replaceable class="parameter">call_handler</replaceable></arg> ! <arg>VALIDATOR <replaceable>valfunction</replaceable></arg> ! </cmdsynopsis> </refsynopsisdiv> <refsect1 id="sql-createlanguage-description"> Index: doc/src/sgml/ref/create_opclass.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/create_opclass.sgml,v retrieving revision 1.5 diff -c -r1.5 create_opclass.sgml *** doc/src/sgml/ref/create_opclass.sgml 2003/01/19 00:13:29 1.5 --- doc/src/sgml/ref/create_opclass.sgml 2003/02/23 15:29:41 *************** *** 20,32 **** <refsynopsisdivinfo> <date>2002-07-28</date> </refsynopsisdivinfo> ! <synopsis> ! CREATE OPERATOR CLASS <replaceable class="parameter">name</replaceable> [ DEFAULT ] FOR TYPE <replaceable class="parameter">data_type</replaceable> USING <replaceable class="parameter">access_method</replaceable> AS ! { OPERATOR <replaceable class="parameter">strategy_number</replaceable> <replaceable class="parameter">operator_id</replaceable> [ ( <replaceable class="parameter">type</replaceable>, <replaceable class="parameter">type</replaceable> ) ] [ RECHECK ] ! | FUNCTION <replaceable class="parameter">support_number</replaceable> <replaceable class="parameter">func_name</replaceable> ( <replaceable class="parameter">parameter_types</replaceable> ) ! | STORAGE <replaceable class="parameter">storage_type</replaceable> ! } [, ... ] ! </synopsis> <refsect2 id="R2-SQL-CREATEOPCLASS-1"> <refsect2info> --- 20,54 ---- <refsynopsisdivinfo> <date>2002-07-28</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>CREATE OPERATOR CLASS</command> ! <arg choice="plain"><replaceable class="parameter">name</replaceable></arg> ! <arg>DEFAULT</arg> ! <arg choice="plain"> ! FOR TYPE <replaceable class="parameter">data_type</replaceable> ! USING <replaceable class="parameter">access_method</replaceable> AS ! </arg><sbr> ! <group choice="req"> ! <arg choice="plain"> ! OPERATOR <replaceable class="parameter">strategy_number</replaceable> ! <replaceable class="parameter">operator_id</replaceable> ! <arg> ! ( <replaceable class="parameter">type</replaceable>, ! <replaceable class="parameter">type</replaceable> ) ! </arg> ! <arg>RECHECK</arg> ! </arg><sbr> ! <arg choice="plain"> ! FUNCTION <replaceable class="parameter">support_number</replaceable> ! <replaceable class="parameter">func_name</replaceable> ( ! <replaceable class="parameter">parameter_types</replaceable> ) ! </arg><sbr> ! <arg choice="plain"> ! STORAGE <replaceable class="parameter">storage_type</replaceable> ! </arg><sbr> ! </group> ! <arg rep="repeat">,</arg> ! </cmdsynopsis> <refsect2 id="R2-SQL-CREATEOPCLASS-1"> <refsect2info> Index: doc/src/sgml/ref/create_operator.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/create_operator.sgml,v retrieving revision 1.33 diff -c -r1.33 create_operator.sgml *** doc/src/sgml/ref/create_operator.sgml 2003/01/19 00:13:29 1.33 --- doc/src/sgml/ref/create_operator.sgml 2003/02/23 15:29:45 *************** *** 20,35 **** <refsynopsisdivinfo> <date>2000-03-25</date> </refsynopsisdivinfo> ! <synopsis> ! CREATE OPERATOR <replaceable>name</replaceable> ( PROCEDURE = <replaceable class="parameter">func_name</replaceable> ! [, LEFTARG = <replaceable class="parameter">lefttype</replaceable> ! ] [, RIGHTARG = <replaceable class="parameter">righttype</replaceable> ] ! [, COMMUTATOR = <replaceable class="parameter">com_op</replaceable> ] [, NEGATOR = <replaceable class="parameter">neg_op</replaceable> ] ! [, RESTRICT = <replaceable class="parameter">res_proc</replaceable> ] [, JOIN = <replaceable class="parameter">join_proc</replaceable> ] ! [, HASHES ] [, MERGES ] ! [, SORT1 = <replaceable class="parameter">left_sort_op</replaceable> ] [, SORT2 = <replaceable class="parameter">right_sort_op</replaceable> ] ! [, LTCMP = <replaceable class="parameter">less_than_op</replaceable> ] [, GTCMP = <replaceable class="parameter">greater_than_op</replaceable> ] ) ! </synopsis> <refsect2 id="R2-SQL-CREATEOPERATOR-1"> <refsect2info> --- 20,46 ---- <refsynopsisdivinfo> <date>2000-03-25</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>CREATE OPERATOR</command> ! <arg choice="plain"><replaceable>name</replaceable></arg> ! <arg choice="plain"> ! ( ! <arg choice="plain">PROCEDURE = <replaceable class="parameter">func_name</replaceable></arg><sbr> ! <arg>, LEFTARG = <replaceable class="parameter">lefttype</replaceable></arg><sbr> ! <arg>, RIGHTARG = <replaceable class="parameter">righttype</replaceable></arg><sbr> ! <arg>, COMMUTATOR = <replaceable class="parameter">com_op</replaceable></arg><sbr> ! <arg>, NEGATOR = <replaceable class="parameter">neg_op</replaceable></arg><sbr> ! <arg>, RESTRICT = <replaceable class="parameter">res_proc</replaceable></arg><sbr> ! <arg>, JOIN = <replaceable class="parameter">join_proc</replaceable></arg><sbr> ! <arg>, HASHES</arg><sbr> ! <arg>, MERGES</arg><sbr> ! <arg>, SORT1 = <replaceable class="parameter">left_sort_op</replaceable></arg><sbr> ! <arg>, SORT2 = <replaceable class="parameter">right_sort_op</replaceable></arg><sbr> ! <arg>, LTCMP = <replaceable class="parameter">less_than_op</replaceable></arg><sbr> ! <arg>, GTCMP = <replaceable class="parameter">greater_than_op</replaceable></arg> ! ) ! </arg> ! </cmdsynopsis> <refsect2 id="R2-SQL-CREATEOPERATOR-1"> <refsect2info> Index: doc/src/sgml/ref/create_rule.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/create_rule.sgml,v retrieving revision 1.38 diff -c -r1.38 create_rule.sgml *** doc/src/sgml/ref/create_rule.sgml 2002/11/21 23:34:43 1.38 --- doc/src/sgml/ref/create_rule.sgml 2003/02/23 15:30:33 *************** *** 20,36 **** <refsynopsisdivinfo> <date>2001-01-05</date> </refsynopsisdivinfo> ! <synopsis> ! CREATE [ OR REPLACE ] RULE <replaceable class="parameter">name</replaceable> AS ON <replaceable class="parameter">event</replaceable> ! TO <replaceable class="parameter">table</replaceable> [ WHERE <replaceable class="parameter">condition</replaceable> ] ! DO [ INSTEAD ] <replaceable class="parameter">action</replaceable> ! ! where <replaceable class="PARAMETER">action</replaceable> can be: ! ! NOTHING ! | <replaceable class="parameter">query</replaceable> ! | ( <replaceable class="parameter">query</replaceable> ; <replaceable class="parameter">query</replaceable> ... ) ! </synopsis> <refsect2 id="R2-SQL-CREATERULE-1"> <refsect2info> --- 20,44 ---- <refsynopsisdivinfo> <date>2001-01-05</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>CREATE</command> ! <arg>OR REPLACE</arg> ! <arg choice="plain"> ! RULE <replaceable class="parameter">name</replaceable> ! AS ON <replaceable class="parameter">event</replaceable><sbr> ! TO <replaceable class="parameter">table</replaceable> ! </arg> ! <arg>WHERE <replaceable class="parameter">condition</replaceable></arg><sbr> ! <arg choice="plain">DO</arg> ! <arg>INSTEAD</arg> ! <group choice="req"> ! <arg choice="plain">NOTHING</arg> ! <arg choice="plain"><replaceable class="parameter">query</replaceable></arg> ! <arg choice="plain">( <replaceable class="parameter">query</replaceable></arg> ! <arg rep="repeat">;</arg> ! <arg choice="plain">)</arg> ! </group> ! </cmdsynopsis> <refsect2 id="R2-SQL-CREATERULE-1"> <refsect2info> Index: doc/src/sgml/ref/create_schema.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/create_schema.sgml,v retrieving revision 1.4 diff -c -r1.4 create_schema.sgml *** doc/src/sgml/ref/create_schema.sgml 2003/02/03 15:56:50 1.4 --- doc/src/sgml/ref/create_schema.sgml 2003/02/23 15:30:50 *************** *** 17,26 **** </refpurpose> </refnamediv> <refsynopsisdiv> ! <synopsis> ! CREATE SCHEMA <replaceable class="parameter">schemaname</replaceable> [ AUTHORIZATION <replaceable class="parameter">username</replaceable> ] [ <replaceable class="parameter">schema_element</replaceable> [ ... ] ] ! CREATE SCHEMA AUTHORIZATION <replaceable class="parameter">username</replaceable> [ <replaceable class="parameter">schema_element</replaceable> [ ... ] ] ! </synopsis> <refsect2 id="R2-SQL-CREATESCHEMA-1"> <title> --- 17,34 ---- </refpurpose> </refnamediv> <refsynopsisdiv> ! <cmdsynopsis> ! <command>CREATE SCHEMA</command> ! <arg choice="plain"><replaceable class="parameter">schemaname</replaceable></arg> ! <arg>AUTHORIZATION <replaceable class="parameter">username</replaceable></arg> ! <arg rep="repeat"><replaceable class="parameter">schema_element</replaceable></arg> ! </cmdsynopsis> ! ! <cmdsynopsis> ! <command>CREATE SCHEMA AUTHORIZATION</command> ! <arg choice="plain"><replaceable class="parameter">username</replaceable></arg> ! <arg rep="repeat"><replaceable class="parameter">schema_element</replaceable></arg> ! </cmdsynopsis> <refsect2 id="R2-SQL-CREATESCHEMA-1"> <title> Index: doc/src/sgml/ref/create_sequence.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/create_sequence.sgml,v retrieving revision 1.30 diff -c -r1.30 create_sequence.sgml *** doc/src/sgml/ref/create_sequence.sgml 2003/01/19 00:13:29 1.30 --- doc/src/sgml/ref/create_sequence.sgml 2003/02/23 15:31:04 *************** *** 20,30 **** <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <synopsis> ! CREATE [ TEMPORARY | TEMP ] SEQUENCE <replaceable class="parameter">seqname</replaceable> [ INCREMENT [ BY ] <replaceable class="parameter">increment</replaceable> ] ! [ MINVALUE <replaceable class="parameter">minvalue</replaceable> ] [ MAXVALUE <replaceable class="parameter">maxvalue</replaceable> ] ! [ START [ WITH ] <replaceable class="parameter">start</replaceable> ] [ CACHE <replaceable class="parameter">cache</replaceable> ] [ [ NO ] CYCLE ] ! </synopsis> <refsect2 id="R2-SQL-CREATESEQUENCE-1"> <refsect2info> --- 20,51 ---- <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>CREATE</command> ! <group> ! <arg choice="plain">TEMPORARY</arg> ! <arg choice="plain">TEMP</arg> ! </group> ! <arg choice="plain">SEQUENCE <replaceable class="parameter">seqname</replaceable></arg> ! <arg>INCREMENT ! <arg>BY</arg> ! <replaceable class="parameter">increment</replaceable> ! </arg><sbr> ! <group> ! <arg choice="plain">MINVALUE <replaceable class="parameter">minvalue</replaceable></arg> ! <arg choice="plain">NO MINVALUE</arg> ! </group><sbr> ! <group> ! <arg choice="plain">MAXVALUE <replaceable class="parameter">maxvalue</replaceable></arg> ! <arg choice="plain">NO MAXVALUE</arg> ! </group><sbr> ! <arg>START ! <arg>WITH</arg> ! <replaceable class="parameter">start</replaceable> ! </arg><sbr> ! <arg>CACHE <replaceable class="parameter">cache</replaceable></arg><sbr> ! <arg><arg>NO</arg> CYCLE</arg> ! </cmdsynopsis> <refsect2 id="R2-SQL-CREATESEQUENCE-1"> <refsect2info> Index: doc/src/sgml/ref/create_table.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/create_table.sgml,v retrieving revision 1.62 diff -c -r1.62 create_table.sgml *** doc/src/sgml/ref/create_table.sgml 2003/02/19 03:13:25 1.62 --- doc/src/sgml/ref/create_table.sgml 2003/02/23 15:31:34 *************** *** 15,49 **** </refnamediv> <refsynopsisdiv> ! <synopsis> ! CREATE [ [ LOCAL ] { TEMPORARY | TEMP } ] TABLE <replaceable class="PARAMETER">table_name</replaceable> ( ! { <replaceable class="PARAMETER">column_name</replaceable> <replaceable class="PARAMETER">data_type</replaceable> [ DEFAULT <replaceable>default_expr</> ] [ <replaceable class="PARAMETER">column_constraint</replaceable> [, ... ] ] ! | <replaceable>table_constraint</replaceable> } [, ... ] ! ) ! [ INHERITS ( <replaceable>parent_table</replaceable> [, ... ] ) ] ! [ WITH OIDS | WITHOUT OIDS ] ! [ ON COMMIT { PRESERVE ROWS | DELETE ROWS | DROP } ] ! where <replaceable class="PARAMETER">column_constraint</replaceable> is: ! [ CONSTRAINT <replaceable class="PARAMETER">constraint_name</replaceable> ] ! { NOT NULL | NULL | UNIQUE | PRIMARY KEY | ! CHECK (<replaceable class="PARAMETER">expression</replaceable>) | ! REFERENCES <replaceable class="PARAMETER">reftable</replaceable> [ ( <replaceable class="PARAMETER">refcolumn</replaceable> ) ] [ MATCH FULL | MATCH PARTIAL ] ! [ ON DELETE <replaceable class="parameter">action</replaceable> ] [ ON UPDATE <replaceable class="parameter">action</replaceable> ] } ! [ DEFERRABLE | NOT DEFERRABLE ] [ INITIALLY DEFERRED | INITIALLY IMMEDIATE ] ! and <replaceable class="PARAMETER">table_constraint</replaceable> is: ! [ CONSTRAINT <replaceable class="PARAMETER">constraint_name</replaceable> ] ! { UNIQUE ( <replaceable class="PARAMETER">column_name</replaceable> [, ... ] ) | ! PRIMARY KEY ( <replaceable class="PARAMETER">column_name</replaceable> [, ... ] ) | ! CHECK ( <replaceable class="PARAMETER">expression</replaceable> ) | ! FOREIGN KEY ( <replaceable class="PARAMETER">column_name</replaceable> [, ... ] ) REFERENCES <replaceable class="PARAMETER">reftable</replaceable> [ ( <replaceable class="PARAMETER">refcolumn</replaceable> [, ... ] ) ] ! [ MATCH FULL | MATCH PARTIAL ] [ ON DELETE <replaceable class="parameter">action</replaceable> ] [ ON UPDATE <replaceable class="parameter">action</replaceable> ] } ! [ DEFERRABLE | NOT DEFERRABLE ] [ INITIALLY DEFERRED | INITIALLY IMMEDIATE ] ! </synopsis> ! </refsynopsisdiv> <refsect1 id="SQL-CREATETABLE-description"> --- 15,139 ---- </refnamediv> <refsynopsisdiv> ! <cmdsynopsis> ! <command>CREATE</command> ! <arg> ! <arg>LOCAL</arg> ! <group choice="req"> ! <arg choice="plain">TEMPORARY</arg> ! <arg choice="plain">TEMP</arg> ! </group> ! </arg> ! <arg choice="plain">TABLE <replaceable class="PARAMETER">table_name</replaceable> (</arg><sbr> ! <group choice="req"> ! <arg choice="plain"> ! <replaceable class="PARAMETER">column_name</replaceable> ! <replaceable class="PARAMETER">data_type</replaceable> ! <arg>DEFAULT <replaceable class="PARAMETER">default_expr</replaceable></arg> ! <arg> ! <synopfragmentref linkend="SQL-CREATETABLE-COLCONSTRAINT-fragment"> ! column_constraint ! </synopfragmentref> ! <arg rep="repeat">,</arg> ! </arg> ! </arg> ! <arg choice="plain"> ! <synopfragmentref linkend="SQL-CREATETABLE-TABCONSTRAINT-fragment"> ! table_constraint ! </synopfragmentref> ! </arg> ! </group> ! <arg rep="repeat">,</arg> ! <arg choice="plain">)</arg><sbr> ! <arg>INHERITS ( <replaceable>parent_table</replaceable> <arg rep="repeat">,</arg> )</arg><sbr> ! <group> ! <arg choice="plain">WITH OIDS</arg> ! <arg choice="plain">WITHOUT OIDS</arg> ! </group><sbr> ! <arg> ! ON COMMIT ! <group choice="req"> ! <arg choice="plain">PRESERVE ROWS</arg> ! <arg choice="plain">DELETE ROWS</arg> ! <arg choice="plain">DROP</arg> ! </group> ! </arg> ! <synopfragment id="SQL-CREATETABLE-COLCONSTRAINT-fragment"> ! <arg choice="plain"> ! <arg>CONSTRAINT <replaceable class="PARAMETER">constraint_name</replaceable></arg><sbr> ! <group choice="req"> ! <arg choice="plain">NOT NULL</arg><sbr> ! <arg choice="plain">NULL</arg><sbr> ! <arg choice="plain">UNIQUE</arg><sbr> ! <arg choice="plain">PRIMARY KEY</arg><sbr> ! <arg choice="plain"> ! CHECK (<replaceable class="PARAMETER">expression</replaceable>) ! </arg><sbr> ! <arg choice="plain"> ! <synopfragmentref linkend="SQL-CREATETABLE-REFERENCES-fragment"> ! references ! </synopfragmentref> ! </arg><sbr> ! </group><sbr> ! <group> ! <arg choice="plain">DEFERRABLE</arg> ! <arg choice="plain">NOT DEFERRABLE</arg> ! </group><sbr> ! <group> ! <arg choice="plain">INITIALLY DEFERRED</arg> ! <arg choice="plain">INITIALLY IMMEDIATE</arg> ! </group> ! </arg> ! </synopfragment> ! <synopfragment id="SQL-CREATETABLE-TABCONSTRAINT-fragment"> ! <arg choice="plain"> ! <arg>CONSTRAINT <replaceable class="PARAMETER">constraint_name</replaceable></arg><sbr> ! <group choice="req"> ! <arg choice="plain"> ! UNIQUE ( <replaceable class="PARAMETER">column_name</replaceable> ! <arg rep="repeat">,</arg> ) ! </arg><sbr> ! <arg choice="plain"> ! PRIMARY KEY ( <replaceable class="PARAMETER">column_name</replaceable> ! <arg rep="repeat">,</arg> ) ! </arg><sbr> ! <arg choice="plain"> ! CHECK ( <replaceable class="PARAMETER">expression</replaceable> ) ! </arg><sbr> ! <arg choice="plain"> ! FOREIGN KEY ( <replaceable class="PARAMETER">column_name</replaceable> ) ! <synopfragmentref linkend="SQL-CREATETABLE-REFERENCES-fragment"> ! references ! </synopfragmentref> ! </arg><sbr> ! </group><sbr> ! <group> ! <arg choice="plain">DEFERRABLE</arg> ! <arg choice="plain">NOT DEFERRABLE</arg> ! </group><sbr> ! <group> ! <arg choice="plain">INITIALLY DEFERRED</arg> ! <arg choice="plain">INITIALLY IMMEDIATE</arg> ! </group> ! </arg> ! </synopfragment> ! <synopfragment id="SQL-CREATETABLE-REFERENCES-fragment"> ! <arg choice="plain"> ! REFERENCES <replaceable class="PARAMETER">reftable</replaceable> ! <arg>( <replaceable class="PARAMETER">refcolumn</replaceable> )</arg><sbr> ! <group> ! <arg choice="plain">MATCH FULL</arg> ! <arg choice="plain">MATCH PARTIAL</arg> ! </group><sbr> ! <arg>ON DELETE <replaceable class="parameter">action</replaceable></arg><sbr> ! <arg>ON UPDATE <replaceable class="parameter">action</replaceable></arg> ! </arg> ! </synopfragment> ! </cmdsynopsis> </refsynopsisdiv> <refsect1 id="SQL-CREATETABLE-description"> Index: doc/src/sgml/ref/create_table_as.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/create_table_as.sgml,v retrieving revision 1.11 diff -c -r1.11 create_table_as.sgml *** doc/src/sgml/ref/create_table_as.sgml 2002/11/21 23:34:43 1.11 --- doc/src/sgml/ref/create_table_as.sgml 2003/02/23 15:31:34 *************** *** 15,24 **** </refnamediv> <refsynopsisdiv> ! <synopsis> ! CREATE [ [ LOCAL ] { TEMPORARY | TEMP } ] TABLE <replaceable>table_name</replaceable> [ (<replaceable>column_name</replaceable> [, ...] ) ] ! AS <replaceable>query</replaceable> ! </synopsis> </refsynopsisdiv> <refsect1> --- 15,33 ---- </refnamediv> <refsynopsisdiv> ! <cmdsynopsis> ! <command>CREATE</command> ! <arg> ! <arg>LOCAL</arg> ! <group choice="req"> ! <arg choice="plain">TEMPORARY</arg> ! <arg choice="plain">TEMP</arg> ! </group> ! </arg> ! <arg choice="plain">TABLE <replaceable>table_name</replaceable></arg> ! <arg>(<replaceable>column_name</replaceable> <arg rep="repeat">,</arg> )</arg> ! <arg choice="plain">AS <replaceable>query</replaceable></arg> ! </cmdsynopsis> </refsynopsisdiv> <refsect1> Index: doc/src/sgml/ref/create_trigger.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/create_trigger.sgml,v retrieving revision 1.32 diff -c -r1.32 create_trigger.sgml *** doc/src/sgml/ref/create_trigger.sgml 2003/01/19 00:13:29 1.32 --- doc/src/sgml/ref/create_trigger.sgml 2003/02/23 15:31:38 *************** *** 20,30 **** <refsynopsisdivinfo> <date>2000-03-25</date> </refsynopsisdivinfo> ! <synopsis> ! CREATE TRIGGER <replaceable class="PARAMETER">name</replaceable> { BEFORE | AFTER } { <replaceable class="PARAMETER">event</replaceable> [ OR ... ] } ! ON <replaceable class="PARAMETER">table</replaceable> [ FOR [ EACH ] { ROW | STATEMENT } ] ! EXECUTE PROCEDURE <replaceable class="PARAMETER">func</replaceable> ( <replaceable class="PARAMETER">arguments</replaceable> ) ! </synopsis> <refsect2 id="R2-SQL-CREATETRIGGER-1"> <refsect2info> --- 20,51 ---- <refsynopsisdivinfo> <date>2000-03-25</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>CREATE TRIGGER</command> ! <arg choice="plain"><replaceable class="PARAMETER">name</replaceable></arg> ! <group choice="req"> ! <arg choice="plain">BEFORE</arg> ! <arg choice="plain">AFTER</arg> ! </group> ! <arg choice="req"> ! <replaceable class="PARAMETER">event</replaceable> ! <arg rep="repeat">OR </arg> ! </arg><sbr> ! <arg choice="plain"> ! ON <replaceable class="PARAMETER">table</replaceable> ! </arg> ! <arg> ! FOR <arg>EACH</arg> ! <group choice="req"> ! <arg choice="plain">ROW</arg> ! <arg choice="plain">STATEMENT</arg> ! </group> ! </arg><sbr> ! <arg choice="plain"> ! EXECUTE PROCEDURE <replaceable class="PARAMETER">func</replaceable> ! ( <replaceable class="PARAMETER">arguments</replaceable> ) ! </arg> ! </cmdsynopsis> <refsect2 id="R2-SQL-CREATETRIGGER-1"> <refsect2info> Index: doc/src/sgml/ref/create_type.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/create_type.sgml,v retrieving revision 1.39 diff -c -r1.39 create_type.sgml *** doc/src/sgml/ref/create_type.sgml 2003/02/19 03:13:25 1.39 --- doc/src/sgml/ref/create_type.sgml 2003/02/23 15:31:41 *************** *** 20,39 **** <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <synopsis> ! CREATE TYPE <replaceable class="parameter">typename</replaceable> ( INPUT = <replaceable class="parameter">input_function</replaceable>, OUTPUT = <replaceable class="parameter">output_function</replaceable> ! , INTERNALLENGTH = { <replaceable ! class="parameter">internallength</replaceable> | VARIABLE } ! [ , DEFAULT = <replaceable class="parameter">default</replaceable> ] ! [ , ELEMENT = <replaceable class="parameter">element</replaceable> ] [ , DELIMITER = <replaceable class="parameter">delimiter</replaceable> ] ! [ , PASSEDBYVALUE ] ! [ , ALIGNMENT = <replaceable class="parameter">alignment</replaceable> ] ! [ , STORAGE = <replaceable class="parameter">storage</replaceable> ] ! ) ! CREATE TYPE <replaceable class="parameter">typename</replaceable> AS ! ( <replaceable class="PARAMETER">column_name</replaceable> <replaceable class="PARAMETER">data_type</replaceable> [, ... ] ) ! </synopsis> <refsect2 id="R2-SQL-CREATETYPE-1"> <refsect2info> --- 20,61 ---- <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>CREATE TYPE</command> ! <arg choice="plain"> ! <replaceable class="parameter">typename</replaceable> (<sbr> ! <arg choice="plain"> ! INPUT = <replaceable class="parameter">input_function</replaceable> ! </arg><sbr> ! <arg choice="plain"> ! , OUTPUT = <replaceable class="parameter">output_function</replaceable> ! </arg><sbr> ! <arg choice="plain"> ! , INTERNALLENGTH = ! <group choice="req"> ! <arg choice="plain"><replaceable class="parameter">internallength</replaceable></arg> ! <arg choice="plain">VARIABLE</arg> ! </group> ! </arg><sbr> ! <arg>, DEFAULT = <replaceable class="parameter">default</replaceable></arg><sbr> ! <arg>, ELEMENT = <replaceable class="parameter">element</replaceable></arg><sbr> ! <arg>, DELIMITER = <replaceable class="parameter">delimiter</replaceable></arg><sbr> ! <arg>, PASSEDBYVALUE</arg><sbr> ! <arg>, ALIGNMENT = <replaceable class="parameter">alignment</replaceable></arg><sbr> ! <arg>, STORAGE = <replaceable class="parameter">storage</replaceable></arg><sbr> ! )</arg> ! </cmdsynopsis> ! <cmdsynopsis> ! <command>CREATE TYPE</command> ! <arg choice="plain"><replaceable class="parameter">typename</replaceable> AS (</arg> ! <arg choice="plain"> ! <replaceable class="PARAMETER">column_name</replaceable> ! <replaceable class="PARAMETER">data_type</replaceable> ! </arg> ! <arg rep="repeat">,</arg> ! <arg choice="plain">)</arg> ! </cmdsynopsis> <refsect2 id="R2-SQL-CREATETYPE-1"> <refsect2info> Index: doc/src/sgml/ref/create_user.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/create_user.sgml,v retrieving revision 1.24 diff -c -r1.24 create_user.sgml *** doc/src/sgml/ref/create_user.sgml 2003/01/19 00:13:29 1.24 --- doc/src/sgml/ref/create_user.sgml 2003/02/23 15:31:48 *************** *** 15,32 **** </refnamediv> <refsynopsisdiv> ! <synopsis> ! CREATE USER <replaceable class="PARAMETER">username</replaceable> [ [ WITH ] <replaceable class="PARAMETER">option</replaceable> [ ... ] ] ! where <replaceable class="PARAMETER">option</replaceable> can be: ! ! SYSID <replaceable class="PARAMETER">uid</replaceable> ! | [ ENCRYPTED | UNENCRYPTED ] PASSWORD '<replaceable class="PARAMETER">password</replaceable>' ! | CREATEDB | NOCREATEDB ! | CREATEUSER | NOCREATEUSER ! | IN GROUP <replaceable class="PARAMETER">groupname</replaceable> [, ...] ! | VALID UNTIL '<replaceable class="PARAMETER">abstime</replaceable>' ! </synopsis> </refsynopsisdiv> <refsect1> --- 15,56 ---- </refnamediv> <refsynopsisdiv> ! <cmdsynopsis> ! <command>CREATE USER</command> ! <arg choice="plain"><replaceable class="PARAMETER">username</replaceable></arg> ! <arg> ! <arg>WITH</arg> ! <arg choice="plain" rep="repeat"> ! <synopfragmentref linkend="SQL-CREATEUSER-OPTION-fragment"> ! option ! </synopfragmentref> ! </arg> ! </arg> ! <synopfragment id="SQL-CREATEUSER-OPTION-fragment"> ! <group choice="plain"> ! <arg choice="plain">SYSID <replaceable class="PARAMETER">uid</replaceable></arg><sbr> ! <arg choice="plain"> ! <group> ! <arg choice="plain">ENCRYPTED</arg> ! <arg choice="plain">UNENCRYPTED</arg> ! </group> ! PASSWORD '<replaceable class="PARAMETER">password</replaceable>' ! </arg><sbr> ! <arg choice="plain">CREATEDB</arg><sbr> ! <arg choice="plain">NOCREATEDB</arg><sbr> ! <arg choice="plain">CREATEUSER</arg><sbr> ! <arg choice="plain">NOCREATEUSER</arg><sbr> ! <arg choice="plain"> ! IN GROUP <replaceable class="PARAMETER">groupname</replaceable> ! <arg rep="repeat">,</arg> ! </arg><sbr> ! <arg choice="plain"> ! VALID UNTIL '<replaceable class="PARAMETER">abstime</replaceable>' ! </arg> ! </group> ! </synopfragment> ! </cmdsynopsis> </refsynopsisdiv> <refsect1> Index: doc/src/sgml/ref/create_view.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/create_view.sgml,v retrieving revision 1.21 diff -c -r1.21 create_view.sgml *** doc/src/sgml/ref/create_view.sgml 2002/11/21 23:34:43 1.21 --- doc/src/sgml/ref/create_view.sgml 2003/02/23 15:31:49 *************** *** 20,29 **** <refsynopsisdivinfo> <date>2000-03-25</date> </refsynopsisdivinfo> ! <synopsis> ! CREATE [ OR REPLACE ] VIEW <replaceable class="PARAMETER">view</replaceable> [ ( <replaceable ! class="PARAMETER">column name list</replaceable> ) ] AS SELECT <replaceable class="PARAMETER">query</replaceable> ! </synopsis> <refsect2 id="R2-SQL-CREATEVIEW-1"> <refsect2info> --- 20,31 ---- <refsynopsisdivinfo> <date>2000-03-25</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>CREATE <optional>OR REPLACE</optional> VIEW</command> ! <arg choice="plain"><replaceable class="PARAMETER">view</replaceable></arg> ! <arg>(<replaceable class="PARAMETER">column name list</replaceable> )</arg> ! <arg choice="plain">AS SELECT <replaceable class="PARAMETER">query</replaceable></arg> ! </cmdsynopsis> <refsect2 id="R2-SQL-CREATEVIEW-1"> <refsect2info> Index: doc/src/sgml/ref/deallocate.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/deallocate.sgml,v retrieving revision 1.1 diff -c -r1.1 deallocate.sgml *** doc/src/sgml/ref/deallocate.sgml 2002/08/27 04:55:07 1.1 --- doc/src/sgml/ref/deallocate.sgml 2003/02/23 15:31:53 *************** *** 20,28 **** <refsynopsisdivinfo> <date>2002-08-12</date> </refsynopsisdivinfo> ! <synopsis> ! DEALLOCATE [ PREPARE ] <replaceable class="PARAMETER">plan_name</replaceable> ! </synopsis> <refsect2 id="R2-SQL-DEALLOCATE-1"> <refsect2info> --- 20,30 ---- <refsynopsisdivinfo> <date>2002-08-12</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>DEALLOCATE</command> ! <arg>PREPARE</arg> ! <arg choice="plain"><replaceable class="PARAMETER">plan_name</replaceable></arg> ! </cmdsynopsis> <refsect2 id="R2-SQL-DEALLOCATE-1"> <refsect2info> Index: doc/src/sgml/ref/declare.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/declare.sgml,v retrieving revision 1.18 diff -c -r1.18 declare.sgml *** doc/src/sgml/ref/declare.sgml 2002/05/18 15:44:47 1.18 --- doc/src/sgml/ref/declare.sgml 2003/02/23 15:32:03 *************** *** 20,30 **** <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <synopsis> ! DECLARE <replaceable class="parameter">cursorname</replaceable> [ BINARY ] [ INSENSITIVE ] [ SCROLL ] ! CURSOR FOR <replaceable class="parameter">query</replaceable> ! [ FOR { READ ONLY | UPDATE [ OF <replaceable class="parameter">column</replaceable> [, ...] ] ] ! </synopsis> <refsect2 id="R2-SQL-DECLARE-1"> <refsect2info> <date>1998-04-15</date> --- 20,43 ---- <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>DECLARE</command> ! <arg choice="plain"><replaceable class="parameter">cursorname</replaceable></arg> ! <arg>BINARY</arg> ! <arg>INSENSITIVE</arg> ! <arg>SCROLL</arg><sbr> ! <arg choice="plain">CURSOR FOR <replaceable class="parameter">query</replaceable></arg> ! <arg>FOR ! <group choice="req"> ! <arg choice="plain">READ ONLY</arg> ! <arg choice="plain">UPDATE ! <arg>OF <replaceable class="parameter">column</replaceable> ! <arg rep="repeat">,</arg> ! </arg> ! </arg> ! </group> ! </arg> ! </cmdsynopsis> <refsect2 id="R2-SQL-DECLARE-1"> <refsect2info> <date>1998-04-15</date> Index: doc/src/sgml/ref/delete.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/delete.sgml,v retrieving revision 1.16 diff -c -r1.16 delete.sgml *** doc/src/sgml/ref/delete.sgml 2002/04/23 02:07:16 1.16 --- doc/src/sgml/ref/delete.sgml 2003/02/23 15:32:05 *************** *** 21,29 **** <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <synopsis> ! DELETE FROM [ ONLY ] <replaceable class="PARAMETER">table</replaceable> [ WHERE <replaceable class="PARAMETER">condition</replaceable> ] ! </synopsis> <refsect2 id="R2-SQL-DELETE-1"> <refsect2info> --- 21,33 ---- <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>DELETE</command> ! <arg choice="plain">FROM</arg> ! <arg>ONLY</arg> ! <arg choice="plain"><replaceable class="PARAMETER">table</replaceable></arg> ! <arg>WHERE <replaceable class="PARAMETER">condition</replaceable></arg> ! </cmdsynopsis> <refsect2 id="R2-SQL-DELETE-1"> <refsect2info> Index: doc/src/sgml/ref/drop_aggregate.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/drop_aggregate.sgml,v retrieving revision 1.20 diff -c -r1.20 drop_aggregate.sgml *** doc/src/sgml/ref/drop_aggregate.sgml 2003/01/19 00:13:29 1.20 --- doc/src/sgml/ref/drop_aggregate.sgml 2003/02/23 15:32:06 *************** *** 20,28 **** <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <synopsis> ! DROP AGGREGATE <replaceable class="PARAMETER">name</replaceable> ( <replaceable class="PARAMETER">type</replaceable> ) [ CASCADE | RESTRICT ] ! </synopsis> <refsect2 id="R2-SQL-DROPAGGREGATE-1"> <refsect2info> --- 20,36 ---- <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>DROP AGGREGATE</command> ! <arg choice="plain"> ! <replaceable class="PARAMETER">name</replaceable> ( ! <replaceable class="PARAMETER">type</replaceable> ) ! </arg> ! <group> ! <arg choice="plain">CASCADE</arg> ! <arg choice="plain">RESTRICT</arg> ! </group> ! </cmdsynopsis> <refsect2 id="R2-SQL-DROPAGGREGATE-1"> <refsect2info> Index: doc/src/sgml/ref/drop_cast.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/drop_cast.sgml,v retrieving revision 1.2 diff -c -r1.2 drop_cast.sgml *** doc/src/sgml/ref/drop_cast.sgml 2002/08/11 17:44:12 1.2 --- doc/src/sgml/ref/drop_cast.sgml 2003/02/23 15:32:14 *************** *** 12,21 **** </refnamediv> <refsynopsisdiv> ! <synopsis> ! DROP CAST (<replaceable>sourcetype</replaceable> AS <replaceable>targettype</replaceable>) ! [ CASCADE | RESTRICT ] ! </synopsis> </refsynopsisdiv> <refsect1 id="sql-dropcast-description"> --- 12,28 ---- </refnamediv> <refsynopsisdiv> ! <cmdsynopsis> ! <command>DROP CAST</command> ! <arg choice="plain"> ! (<replaceable>sourcetype</replaceable> AS ! <replaceable>targettype</replaceable>) ! </arg> ! <group> ! <arg choice="plain">CASCADE</arg> ! <arg choice="plain">RESTRICT</arg> ! </group> ! </cmdsynopsis> </refsynopsisdiv> <refsect1 id="sql-dropcast-description"> Index: doc/src/sgml/ref/drop_conversion.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/drop_conversion.sgml,v retrieving revision 1.3 diff -c -r1.3 drop_conversion.sgml *** doc/src/sgml/ref/drop_conversion.sgml 2002/09/21 18:32:54 1.3 --- doc/src/sgml/ref/drop_conversion.sgml 2003/02/23 15:32:26 *************** *** 12,21 **** </refnamediv> <refsynopsisdiv> ! <synopsis> ! DROP CONVERSION <replaceable>conversion_name</replaceable> ! [ CASCADE | RESTRICT ] ! </synopsis> </refsynopsisdiv> <refsect1 id="sql-dropconversion-description"> --- 12,25 ---- </refnamediv> <refsynopsisdiv> ! <cmdsynopsis> ! <command>DROP CONVERSION</command> ! <arg choice="plain"><replaceable>conversion_name</replaceable></arg> ! <group> ! <arg choice="plain">CASCADE</arg> ! <arg choice="plain">RESTRICT</arg> ! </group> ! </cmdsynopsis> </refsynopsisdiv> <refsect1 id="sql-dropconversion-description"> Index: doc/src/sgml/ref/drop_database.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/drop_database.sgml,v retrieving revision 1.15 diff -c -r1.15 drop_database.sgml *** doc/src/sgml/ref/drop_database.sgml 2002/04/21 19:02:39 1.15 --- doc/src/sgml/ref/drop_database.sgml 2003/02/23 15:32:32 *************** *** 20,28 **** <refsynopsisdivinfo> <date>1999-12-11</date> </refsynopsisdivinfo> ! <synopsis> ! DROP DATABASE <replaceable class="PARAMETER">name</replaceable> ! </synopsis> <refsect2 id="R2-SQL-DROPDATABASE-1"> <refsect2info> --- 20,29 ---- <refsynopsisdivinfo> <date>1999-12-11</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>DROP DATABASE</command> ! <arg choice="plain"><replaceable class="PARAMETER">name</replaceable></arg> ! </cmdsynopsis> <refsect2 id="R2-SQL-DROPDATABASE-1"> <refsect2info> Index: doc/src/sgml/ref/drop_domain.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/drop_domain.sgml,v retrieving revision 1.9 diff -c -r1.9 drop_domain.sgml *** doc/src/sgml/ref/drop_domain.sgml 2002/11/21 23:34:43 1.9 --- doc/src/sgml/ref/drop_domain.sgml 2003/02/23 15:32:36 *************** *** 22,30 **** <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <synopsis> ! DROP DOMAIN <replaceable class="PARAMETER">domainname</replaceable> [, ...] [ CASCADE | RESTRICT ] ! </synopsis> <refsect2 id="R2-SQL-DROPDOMAIN-1"> <refsect2info> --- 22,36 ---- <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>DROP DOMAIN</command> ! <arg choice="plain"><replaceable class="PARAMETER">domainname</replaceable></arg> ! <arg rep="repeat">,</arg> ! <group> ! <arg choice="plain">CASCADE</arg> ! <arg choice="plain">RESTRICT</arg> ! </group> ! </cmdsynopsis> <refsect2 id="R2-SQL-DROPDOMAIN-1"> <refsect2info> Index: doc/src/sgml/ref/drop_function.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/drop_function.sgml,v retrieving revision 1.23 diff -c -r1.23 drop_function.sgml *** doc/src/sgml/ref/drop_function.sgml 2002/11/21 23:34:43 1.23 --- doc/src/sgml/ref/drop_function.sgml 2003/02/23 15:32:37 *************** *** 20,28 **** <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <synopsis> ! DROP FUNCTION <replaceable class="parameter">name</replaceable> ( [ <replaceable class="parameter">type</replaceable> [, ...] ] ) [ CASCADE | RESTRICT ] ! </synopsis> <refsect2 id="R2-SQL-DROPFUNCTION-1"> <refsect2info> --- 20,39 ---- <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>DROP FUNCTION</command> ! <arg choice="plain"><replaceable class="parameter">name</replaceable> ( ! <arg> ! <replaceable class="parameter">type</replaceable> ! <arg rep="repeat">,</arg> ! </arg> ! ) ! </arg> ! <group> ! <arg choice="plain">CASCADE</arg> ! <arg choice="plain">RESTRICT</arg> ! </group> ! </cmdsynopsis> <refsect2 id="R2-SQL-DROPFUNCTION-1"> <refsect2info> Index: doc/src/sgml/ref/drop_group.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/drop_group.sgml,v retrieving revision 1.4 diff -c -r1.4 drop_group.sgml *** doc/src/sgml/ref/drop_group.sgml 2002/04/21 19:02:39 1.4 --- doc/src/sgml/ref/drop_group.sgml 2003/02/23 15:32:40 *************** *** 20,28 **** <refsynopsisdivinfo> <date>2000-01-14</date> </refsynopsisdivinfo> ! <synopsis> ! DROP GROUP <replaceable class="PARAMETER">name</replaceable> ! </synopsis> <refsect2 id="R2-SQL-DROPGROUP-1"> <refsect2info> --- 20,29 ---- <refsynopsisdivinfo> <date>2000-01-14</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>DROP GROUP</command> ! <arg choice="plain"><replaceable class="PARAMETER">name</replaceable></arg> ! </cmdsynopsis> <refsect2 id="R2-SQL-DROPGROUP-1"> <refsect2info> Index: doc/src/sgml/ref/drop_index.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/drop_index.sgml,v retrieving revision 1.16 diff -c -r1.16 drop_index.sgml *** doc/src/sgml/ref/drop_index.sgml 2002/07/12 18:43:13 1.16 --- doc/src/sgml/ref/drop_index.sgml 2003/02/23 15:32:44 *************** *** 20,28 **** <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <synopsis> ! DROP INDEX <replaceable class="PARAMETER">index_name</replaceable> [, ...] [ CASCADE | RESTRICT ] ! </synopsis> <refsect2 id="R2-SQL-DROPINDEX-1"> <refsect2info> --- 20,34 ---- <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>DROP INDEX</command> ! <arg choice="plain"><replaceable class="PARAMETER">index_name</replaceable></arg> ! <arg rep="repeat">,</arg> ! <group> ! <arg choice="plain">CASCADE</arg> ! <arg choice="plain">RESTRICT</arg> ! </group> ! </cmdsynopsis> <refsect2 id="R2-SQL-DROPINDEX-1"> <refsect2info> Index: doc/src/sgml/ref/drop_language.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/drop_language.sgml,v retrieving revision 1.15 diff -c -r1.15 drop_language.sgml *** doc/src/sgml/ref/drop_language.sgml 2002/07/12 18:43:13 1.15 --- doc/src/sgml/ref/drop_language.sgml 2003/02/23 15:32:45 *************** *** 20,28 **** <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <synopsis> ! DROP [ PROCEDURAL ] LANGUAGE <replaceable class="PARAMETER">name</replaceable> [ CASCADE | RESTRICT ] ! </synopsis> <refsect2 id="R2-SQL-DROPLANGUAGE-1"> <refsect2info> --- 20,33 ---- <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>DROP <optional>PROCEDURAL</optional> LANGUAGE</command> ! <arg choice="plain"><replaceable class="PARAMETER">name</replaceable></arg> ! <group> ! <arg choice="plain">CASCADE</arg> ! <arg choice="plain">RESTRICT</arg> ! </group> ! </cmdsynopsis> <refsect2 id="R2-SQL-DROPLANGUAGE-1"> <refsect2info> Index: doc/src/sgml/ref/drop_opclass.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/drop_opclass.sgml,v retrieving revision 1.2 diff -c -r1.2 drop_opclass.sgml *** doc/src/sgml/ref/drop_opclass.sgml 2002/09/21 18:32:54 1.2 --- doc/src/sgml/ref/drop_opclass.sgml 2003/02/23 15:32:51 *************** *** 21,29 **** <refsynopsisdivinfo> <date>2002-07-28</date> </refsynopsisdivinfo> ! <synopsis> ! DROP OPERATOR CLASS <replaceable class="PARAMETER">name</replaceable> USING <replaceable class="PARAMETER">access_method</replaceable> [ CASCADE | RESTRICT ] ! </synopsis> <refsect2 id="R2-SQL-DROPOPCLASS-1"> <refsect2info> --- 21,37 ---- <refsynopsisdivinfo> <date>2002-07-28</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>DROP OPERATOR CLASS</command> ! <arg choice="plain"> ! <replaceable class="PARAMETER">name</replaceable> USING ! <replaceable class="PARAMETER">access_method</replaceable> ! </arg> ! <group> ! <arg choice="plain">CASCADE</arg> ! <arg choice="plain">RESTRICT</arg> ! </group> ! </cmdsynopsis> <refsect2 id="R2-SQL-DROPOPCLASS-1"> <refsect2info> Index: doc/src/sgml/ref/drop_operator.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/drop_operator.sgml,v retrieving revision 1.18 diff -c -r1.18 drop_operator.sgml *** doc/src/sgml/ref/drop_operator.sgml 2002/07/29 22:14:10 1.18 --- doc/src/sgml/ref/drop_operator.sgml 2003/02/23 15:32:54 *************** *** 21,29 **** <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <synopsis> ! DROP OPERATOR <replaceable class="PARAMETER">id</replaceable> ( <replaceable class="PARAMETER">lefttype</replaceable> | NONE , <replaceable class="PARAMETER">righttype</replaceable> | NONE ) [ CASCADE | RESTRICT ] ! </synopsis> <refsect2 id="R2-SQL-DROPOPERATOR-1"> <refsect2info> --- 21,44 ---- <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>DROP OPERATOR</command> ! <arg choice="plain"><replaceable class="PARAMETER">id</replaceable> (</arg> ! <group choice="req"> ! <arg choice="plain"><replaceable class="PARAMETER">lefttype</replaceable></arg> ! <arg choice="plain">NONE</arg> ! </group> ! <arg choice="plain">,</arg> ! <group choice="req"> ! <arg choice="plain"><replaceable class="PARAMETER">righttype</replaceable></arg> ! <arg choice="plain">NONE</arg> ! </group> ! <arg choice="plain">)</arg> ! <group> ! <arg choice="plain">CASCADE</arg> ! <arg choice="plain">RESTRICT</arg> ! </group> ! </cmdsynopsis> <refsect2 id="R2-SQL-DROPOPERATOR-1"> <refsect2info> Index: doc/src/sgml/ref/drop_rule.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/drop_rule.sgml,v retrieving revision 1.16 diff -c -r1.16 drop_rule.sgml *** doc/src/sgml/ref/drop_rule.sgml 2002/07/12 18:43:13 1.16 --- doc/src/sgml/ref/drop_rule.sgml 2003/02/23 15:32:55 *************** *** 20,28 **** <refsynopsisdivinfo> <date>1998-09-22</date> </refsynopsisdivinfo> ! <synopsis> ! DROP RULE <replaceable class="PARAMETER">name</replaceable> ON <replaceable class="PARAMETER">relation</replaceable> [ CASCADE | RESTRICT ] ! </synopsis> <refsect2 id="R2-SQL-DROPRULE-1"> <refsect2info> --- 20,36 ---- <refsynopsisdivinfo> <date>1998-09-22</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>DROP RULE</command> ! <arg choice="plain"> ! <replaceable class="PARAMETER">name</replaceable> ON ! <replaceable class="PARAMETER">relation</replaceable> ! </arg> ! <group> ! <arg choice="plain">CASCADE</arg> ! <arg choice="plain">RESTRICT</arg> ! </group> ! </cmdsynopsis> <refsect2 id="R2-SQL-DROPRULE-1"> <refsect2info> Index: doc/src/sgml/ref/drop_schema.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/drop_schema.sgml,v retrieving revision 1.1 diff -c -r1.1 drop_schema.sgml *** doc/src/sgml/ref/drop_schema.sgml 2002/07/18 16:47:22 1.1 --- doc/src/sgml/ref/drop_schema.sgml 2003/02/23 15:32:56 *************** *** 20,29 **** <refsynopsisdivinfo> <date>2002-07-18</date> </refsynopsisdivinfo> ! <synopsis> ! DROP SCHEMA <replaceable class="PARAMETER">name</replaceable> [, ...] [ CASCADE | RESTRICT ] ! ! </synopsis> <refsect2 id="R2-SQL-DROPSCHEMA-1"> <refsect2info> --- 20,34 ---- <refsynopsisdivinfo> <date>2002-07-18</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>DROP SCHEMA</command> ! <arg choice="plain"><replaceable class="PARAMETER">name</replaceable></arg> ! <arg rep="repeat">,</arg> ! <group> ! <arg choice="plain">CASCADE</arg> ! <arg choice="plain">RESTRICT</arg> ! </group> ! </cmdsynopsis> <refsect2 id="R2-SQL-DROPSCHEMA-1"> <refsect2info> Index: doc/src/sgml/ref/drop_sequence.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/drop_sequence.sgml,v retrieving revision 1.16 diff -c -r1.16 drop_sequence.sgml *** doc/src/sgml/ref/drop_sequence.sgml 2002/07/18 15:49:08 1.16 --- doc/src/sgml/ref/drop_sequence.sgml 2003/02/23 15:32:58 *************** *** 20,29 **** <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <synopsis> ! DROP SEQUENCE <replaceable class="PARAMETER">name</replaceable> [, ...] [ CASCADE | RESTRICT ] ! ! </synopsis> <refsect2 id="R2-SQL-DROPSEQUENCE-1"> <refsect2info> --- 20,36 ---- <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>DROP SEQUENCE</command> ! <arg choice="plain"> ! <replaceable class="PARAMETER">name</replaceable> ! <arg rep="repeat">,</arg> ! </arg> ! <group> ! <arg choice="plain">CASCADE</arg> ! <arg choice="plain">RESTRICT</arg> ! </group> ! </cmdsynopsis> <refsect2 id="R2-SQL-DROPSEQUENCE-1"> <refsect2info> Index: doc/src/sgml/ref/drop_table.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/drop_table.sgml,v retrieving revision 1.17 diff -c -r1.17 drop_table.sgml *** doc/src/sgml/ref/drop_table.sgml 2002/07/14 22:47:56 1.17 --- doc/src/sgml/ref/drop_table.sgml 2003/02/23 15:32:58 *************** *** 20,29 **** <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <synopsis> ! DROP TABLE <replaceable class="PARAMETER">name</replaceable> [, ...] [ CASCADE | RESTRICT ] ! ! </synopsis> <refsect2 id="R2-SQL-DROPTABLE-1"> <refsect2info> --- 20,34 ---- <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>DROP TABLE</command> ! <arg choice="plain"><replaceable class="PARAMETER">name</replaceable></arg> ! <arg rep="repeat">,</arg> ! <group> ! <arg choice="plain">CASCADE</arg> ! <arg choice="plain">RESTRICT</arg> ! </group> ! </cmdsynopsis> <refsect2 id="R2-SQL-DROPTABLE-1"> <refsect2info> Index: doc/src/sgml/ref/drop_trigger.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/drop_trigger.sgml,v retrieving revision 1.14 diff -c -r1.14 drop_trigger.sgml *** doc/src/sgml/ref/drop_trigger.sgml 2002/11/21 23:34:43 1.14 --- doc/src/sgml/ref/drop_trigger.sgml 2003/02/23 15:33:00 *************** *** 20,28 **** <refsynopsisdivinfo> <date>1998-09-22</date> </refsynopsisdivinfo> ! <synopsis> ! DROP TRIGGER <replaceable class="PARAMETER">name</replaceable> ON <replaceable class="PARAMETER">table</replaceable> [ CASCADE | RESTRICT ] ! </synopsis> <refsect2 id="R2-SQL-DROPTRIGGER-1"> <refsect2info> --- 20,36 ---- <refsynopsisdivinfo> <date>1998-09-22</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>DROP TRIGGER</command> ! <arg choice="plain"> ! <replaceable class="PARAMETER">name</replaceable> ON ! <replaceable class="PARAMETER">table</replaceable> ! </arg> ! <group> ! <arg choice="plain">CASCADE</arg> ! <arg choice="plain">RESTRICT</arg> ! </group> ! </cmdsynopsis> <refsect2 id="R2-SQL-DROPTRIGGER-1"> <refsect2info> Index: doc/src/sgml/ref/drop_type.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/drop_type.sgml,v retrieving revision 1.20 diff -c -r1.20 drop_type.sgml *** doc/src/sgml/ref/drop_type.sgml 2002/11/21 23:34:43 1.20 --- doc/src/sgml/ref/drop_type.sgml 2003/02/23 15:33:01 *************** *** 20,29 **** <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <synopsis> ! DROP TYPE <replaceable class="PARAMETER">typename</replaceable> [, ...] [ CASCADE | RESTRICT ] ! ! </synopsis> <refsect2 id="R2-SQL-DROPTYPE-1"> <refsect2info> --- 20,34 ---- <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>DROP TYPE</command> ! <arg choice="plain"><replaceable class="PARAMETER">typename</replaceable></arg> ! <arg rep="repeat">,</arg> ! <group> ! <arg choice="plain">CASCADE</arg> ! <arg choice="plain">RESTRICT</arg> ! </group> ! </cmdsynopsis> <refsect2 id="R2-SQL-DROPTYPE-1"> <refsect2info> Index: doc/src/sgml/ref/drop_user.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/drop_user.sgml,v retrieving revision 1.15 diff -c -r1.15 drop_user.sgml *** doc/src/sgml/ref/drop_user.sgml 2002/02/27 21:14:54 1.15 --- doc/src/sgml/ref/drop_user.sgml 2003/02/23 15:33:01 *************** *** 14,22 **** </refnamediv> <refsynopsisdiv> ! <synopsis> ! DROP USER <replaceable class="PARAMETER">name</replaceable> ! </synopsis> </refsynopsisdiv> <refsect1> --- 14,23 ---- </refnamediv> <refsynopsisdiv> ! <cmdsynopsis> ! <command>DROP USER</command> ! <arg choice="plain"><replaceable class="PARAMETER">name</replaceable></arg> ! </cmdsynopsis> </refsynopsisdiv> <refsect1> Index: doc/src/sgml/ref/drop_view.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/drop_view.sgml,v retrieving revision 1.16 diff -c -r1.16 drop_view.sgml *** doc/src/sgml/ref/drop_view.sgml 2002/11/21 23:34:43 1.16 --- doc/src/sgml/ref/drop_view.sgml 2003/02/23 15:33:05 *************** *** 20,28 **** <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <synopsis> ! DROP VIEW <replaceable class="PARAMETER">name</replaceable> [, ...] [ CASCADE | RESTRICT ] ! </synopsis> <refsect2 id="R2-SQL-DROPVIEW-1"> <refsect2info> --- 20,36 ---- <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>DROP VIEW</command> ! <arg choice="plain"> ! <replaceable class="PARAMETER">name</replaceable> ! <arg rep="repeat">,</arg> ! </arg> ! <group> ! <arg choice="plain">CASCADE</arg> ! <arg choice="plain">RESTRICT</arg> ! </group> ! </cmdsynopsis> <refsect2 id="R2-SQL-DROPVIEW-1"> <refsect2info> Index: doc/src/sgml/ref/end.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/end.sgml,v retrieving revision 1.8 diff -c -r1.8 end.sgml *** doc/src/sgml/ref/end.sgml 2002/04/21 19:02:39 1.8 --- doc/src/sgml/ref/end.sgml 2003/02/23 15:33:06 *************** *** 21,29 **** <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <synopsis> ! END [ WORK | TRANSACTION ] ! </synopsis> <refsect2 id="R2-SQL-END-1"> <refsect2info> --- 21,33 ---- <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>END</command> ! <group> ! <arg choice="plain">WORK</arg> ! <arg choice="plain">TRANSACTION</arg> ! </group> ! </cmdsynopsis> <refsect2 id="R2-SQL-END-1"> <refsect2info> Index: doc/src/sgml/ref/execute.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/execute.sgml,v retrieving revision 1.3 diff -c -r1.3 execute.sgml *** doc/src/sgml/ref/execute.sgml 2003/02/02 23:46:37 1.3 --- doc/src/sgml/ref/execute.sgml 2003/02/23 15:33:06 *************** *** 20,28 **** <refsynopsisdivinfo> <date>2002-08-12</date> </refsynopsisdivinfo> ! <synopsis> ! EXECUTE <replaceable class="PARAMETER">plan_name</replaceable> [ (<replaceable class="PARAMETER">parameter</replaceable> [, ...] ) ] [ INTO [ TEMPORARY | TEMP ] <replaceable class="PARAMETER">table</replaceable> ] ! </synopsis> <refsect2 id="R2-SQL-EXECUTE-1"> <refsect2info> --- 20,39 ---- <refsynopsisdivinfo> <date>2002-08-12</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>EXECUTE</command> ! <arg choice="plain"><replaceable class="PARAMETER">plan_name</replaceable></arg> ! <arg>(<replaceable class="PARAMETER">parameter</replaceable> ! <arg rep="repeat">,</arg>) ! </arg> ! <arg>INTO ! <group> ! <arg choice="plain">TEMPORARY</arg> ! <arg choice="plain">TEMP</arg> ! </group> ! <replaceable class="PARAMETER">table</replaceable> ! </arg> ! </cmdsynopsis> <refsect2 id="R2-SQL-EXECUTE-1"> <refsect2info> Index: doc/src/sgml/ref/explain.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/explain.sgml,v retrieving revision 1.23 diff -c -r1.23 explain.sgml *** doc/src/sgml/ref/explain.sgml 2003/02/02 23:46:37 1.23 --- doc/src/sgml/ref/explain.sgml 2003/02/23 15:33:11 *************** *** 21,29 **** <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <synopsis> ! EXPLAIN [ ANALYZE ] [ VERBOSE ] <replaceable class="PARAMETER">query</replaceable> ! </synopsis> <refsect2 id="R2-SQL-EXPLAIN-1"> <refsect2info> --- 21,32 ---- <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>EXPLAIN</command> ! <arg>ANALYZE</arg> ! <arg>VERBOSE</arg> ! <arg choice="plain"><replaceable class="PARAMETER">query</replaceable></arg> ! </cmdsynopsis> <refsect2 id="R2-SQL-EXPLAIN-1"> <refsect2info> Index: doc/src/sgml/ref/fetch.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/fetch.sgml,v retrieving revision 1.25 diff -c -r1.25 fetch.sgml *** doc/src/sgml/ref/fetch.sgml 2003/02/04 11:23:58 1.25 --- doc/src/sgml/ref/fetch.sgml 2003/02/23 15:33:12 *************** *** 20,30 **** <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <synopsis> ! FETCH [ <replaceable class="PARAMETER">direction</replaceable> ] [ <replaceable class="PARAMETER">count</replaceable> ] { IN | FROM } <replaceable class="PARAMETER">cursor</replaceable> ! FETCH [ FORWARD | BACKWARD | RELATIVE ] [ <replaceable class="PARAMETER">#</replaceable> | ALL | NEXT | PRIOR ] ! { IN | FROM } <replaceable class="PARAMETER">cursor</replaceable> ! </synopsis> <refsect2 id="R2-SQL-FETCH-1"> <refsect2info> --- 20,55 ---- <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>FETCH</command> ! <arg><replaceable class="PARAMETER">direction</replaceable></arg> ! <arg><replaceable class="PARAMETER">count</replaceable></arg> ! <group choice="req"> ! <arg choice="plain">IN</arg> ! <arg choice="plain">FROM</arg> ! </group> ! <arg choice="plain"><replaceable class="PARAMETER">cursor</replaceable></arg> ! </cmdsynopsis> ! ! <cmdsynopsis> ! <command>FETCH</command> ! <group> ! <arg choice="plain">FORWARD</arg> ! <arg choice="plain">BACKWARD</arg> ! <arg choice="plain">RELATIVE</arg> ! </group> ! <group> ! <arg choice="plain"><replaceable class="PARAMETER">#</replaceable></arg> ! <arg choice="plain">ALL</arg> ! <arg choice="plain">NEXT</arg> ! <arg choice="plain">PRIOR</arg> ! </group> ! <group choice="req"> ! <arg choice="plain">IN</arg> ! <arg choice="plain">FROM</arg> ! </group> ! <arg choice="plain"><replaceable class="PARAMETER">cursor</replaceable></arg> ! </cmdsynopsis> <refsect2 id="R2-SQL-FETCH-1"> <refsect2info> Index: doc/src/sgml/ref/grant.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/grant.sgml,v retrieving revision 1.32 diff -c -r1.32 grant.sgml *** doc/src/sgml/ref/grant.sgml 2003/01/23 23:38:53 1.32 --- doc/src/sgml/ref/grant.sgml 2003/02/23 15:33:15 *************** *** 15,42 **** </refnamediv> <refsynopsisdiv> ! <synopsis> ! GRANT { { SELECT | INSERT | UPDATE | DELETE | RULE | REFERENCES | TRIGGER } ! [,...] | ALL [ PRIVILEGES ] } ! ON [ TABLE ] <replaceable class="PARAMETER">tablename</replaceable> [, ...] ! TO { <replaceable class="PARAMETER">username</replaceable> | GROUP <replaceable class="PARAMETER">groupname</replaceable> | PUBLIC } [, ...] [ WITH GRANT OPTION ] ! GRANT { { CREATE | TEMPORARY | TEMP } [,...] | ALL [ PRIVILEGES ] } ! ON DATABASE <replaceable>dbname</replaceable> [, ...] ! TO { <replaceable class="PARAMETER">username</replaceable> | GROUP <replaceable class="PARAMETER">groupname</replaceable> | PUBLIC } [, ...] [ WITH GRANT OPTION ] ! GRANT { EXECUTE | ALL [ PRIVILEGES ] } ! ON FUNCTION <replaceable>funcname</replaceable> ([<replaceable>type</replaceable>, ...]) [, ...] ! TO { <replaceable class="PARAMETER">username</replaceable> | GROUP <replaceable class="PARAMETER">groupname</replaceable> | PUBLIC } [, ...] [ WITH GRANT OPTION ] ! GRANT { USAGE | ALL [ PRIVILEGES ] } ! ON LANGUAGE <replaceable>langname</replaceable> [, ...] ! TO { <replaceable class="PARAMETER">username</replaceable> | GROUP <replaceable class="PARAMETER">groupname</replaceable> | PUBLIC } [, ...] [ WITH GRANT OPTION ] ! GRANT { { CREATE | USAGE } [,...] | ALL [ PRIVILEGES ] } ! ON SCHEMA <replaceable>schemaname</replaceable> [, ...] ! TO { <replaceable class="PARAMETER">username</replaceable> | GROUP <replaceable class="PARAMETER">groupname</replaceable> | PUBLIC } [, ...] [ WITH GRANT OPTION ] ! </synopsis> </refsynopsisdiv> <refsect1 id="sql-grant-description"> --- 15,162 ---- </refnamediv> <refsynopsisdiv> ! <cmdsynopsis> ! <command>GRANT</command> ! <group choice="req"> ! <arg choice="plain"> ! <group choice="req"> ! <arg choice="plain">SELECT</arg> ! <arg choice="plain">INSERT</arg> ! <arg choice="plain">UPDATE</arg> ! <arg choice="plain">DELETE</arg> ! <arg choice="plain">RULE</arg> ! <arg choice="plain">REFERENCES</arg> ! <arg choice="plain">TRIGGER</arg> ! </group> ! <arg rep="repeat">,</arg> ! </arg> ! <arg choice="plain">ALL <arg>PRIVILEGES</arg></arg> ! </group><sbr> ! <arg choice="plain">ON <arg>TABLE</arg></arg> ! <arg choice="plain"> ! <replaceable class="PARAMETER">tablename</replaceable> ! <arg rep="repeat">,</arg> ! </arg><sbr> ! <arg choice="plain">TO</arg> ! <arg choice="plain"> ! <group choice="req"> ! <arg choice="plain"><replaceable class="PARAMETER">username</replaceable></arg> ! <arg choice="plain">GROUP <replaceable class="PARAMETER">groupname</replaceable></arg> ! <arg choice="plain">PUBLIC</arg> ! </group> ! <arg rep="repeat">,</arg> ! </arg> ! <arg>WITH GRANT OPTION</arg> ! </cmdsynopsis> ! <cmdsynopsis> ! <command>GRANT</command> ! <group choice="req"> ! <arg choice="plain"> ! <group choice="req"> ! <arg choice="plain">CREATE</arg> ! <arg choice="plain">TEMPORARY</arg> ! <arg choice="plain">TEMP</arg> ! </group> ! <arg rep="repeat">,</arg> ! </arg> ! <arg choice="plain">ALL <arg>PRIVILEGES</arg></arg> ! </group><sbr> ! <arg choice="plain">ON DATABASE</arg> ! <arg choice="plain"> ! <replaceable>dbname</replaceable> ! <arg rep="repeat">,</arg> ! </arg><sbr> ! <arg choice="plain">TO</arg> ! <arg choice="plain"> ! <group choice="req"> ! <arg choice="plain"><replaceable class="PARAMETER">username</replaceable></arg> ! <arg choice="plain">GROUP <replaceable class="PARAMETER">groupname</replaceable></arg> ! <arg choice="plain">PUBLIC</arg> ! </group> ! <arg rep="repeat">,</arg> ! </arg> ! <arg>WITH GRANT OPTION</arg> ! </cmdsynopsis> ! <cmdsynopsis> ! <command>GRANT</command> ! <group choice="req"> ! <arg choice="plain">EXECUTE</arg> ! <arg choice="plain">ALL <arg>PRIVILEGES</arg></arg> ! </group><sbr> ! <arg choice="plain">ON FUNCTION</arg> ! <arg choice="plain"> ! <replaceable>funcname</replaceable> ( ! <arg> ! <replaceable>type</replaceable> ! <arg rep="repeat">,</arg> ! </arg>) ! <arg rep="repeat">,</arg> ! </arg><sbr> ! <arg choice="plain">TO</arg> ! <arg choice="plain"> ! <group choice="req"> ! <arg choice="plain"><replaceable class="PARAMETER">username</replaceable></arg> ! <arg choice="plain">GROUP <replaceable class="PARAMETER">groupname</replaceable></arg> ! <arg choice="plain">PUBLIC</arg> ! </group> ! <arg rep="repeat">,</arg> ! </arg> ! <arg>WITH GRANT OPTION</arg> ! </cmdsynopsis> ! <cmdsynopsis> ! <command>GRANT</command> ! <group choice="req"> ! <arg choice="plain">USAGE</arg> ! <arg choice="plain">ALL <arg>PRIVILEGES</arg></arg> ! </group><sbr> ! <arg choice="plain">ON LANGUAGE</arg> ! <arg choice="plain"> ! <replaceable>langname</replaceable> ! <arg rep="repeat">,</arg> ! </arg><sbr> ! <arg choice="plain">TO</arg> ! <arg choice="plain"> ! <group choice="req"> ! <arg choice="plain"><replaceable class="PARAMETER">username</replaceable></arg> ! <arg choice="plain">GROUP <replaceable class="PARAMETER">groupname</replaceable></arg> ! <arg choice="plain">PUBLIC</arg> ! </group> ! <arg rep="repeat">,</arg> ! </arg> ! <arg>WITH GRANT OPTION</arg> ! </cmdsynopsis> ! <cmdsynopsis> ! <command>GRANT</command> ! <group choice="req"> ! <arg choice="plain"> ! <group choice="req"> ! <arg choice="plain">CREATE</arg> ! <arg choice="plain">USAGE</arg> ! </group> ! <arg rep="repeat">,</arg> ! </arg> ! <arg choice="plain">ALL <arg>PRIVILEGES</arg></arg> ! </group><sbr> ! <arg choice="plain">ON SCHEMA</arg> ! <arg choice="plain"> ! <replaceable>schemaname</replaceable> ! <arg rep="repeat">,</arg> ! </arg><sbr> ! <arg choice="plain">TO</arg> ! <arg choice="plain"> ! <group choice="req"> ! <arg choice="plain"><replaceable class="PARAMETER">username</replaceable></arg> ! <arg choice="plain">GROUP <replaceable class="PARAMETER">groupname</replaceable></arg> ! <arg choice="plain">PUBLIC</arg> ! </group> ! <arg rep="repeat">,</arg> ! </arg> ! <arg>WITH GRANT OPTION</arg> ! </cmdsynopsis> </refsynopsisdiv> <refsect1 id="sql-grant-description"> Index: doc/src/sgml/ref/insert.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/insert.sgml,v retrieving revision 1.20 diff -c -r1.20 insert.sgml *** doc/src/sgml/ref/insert.sgml 2003/01/19 00:13:29 1.20 --- doc/src/sgml/ref/insert.sgml 2003/02/23 15:33:16 *************** *** 20,29 **** <refsynopsisdivinfo> <date>2000-08-08</date> </refsynopsisdivinfo> ! <synopsis> ! INSERT INTO <replaceable class="PARAMETER">table</replaceable> [ ( <replaceable class="PARAMETER">column</replaceable> [, ...] ) ] ! { DEFAULT VALUES | VALUES ( { <replaceable class="PARAMETER">expression</replaceable> | DEFAULT } [, ...] ) | SELECT <replaceable class="PARAMETER">query</replaceable> } ! </synopsis> <refsect2 id="R2-SQL-INSERT-1"> <title> --- 20,44 ---- <refsynopsisdivinfo> <date>2000-08-08</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>INSERT</command> ! <arg choice="plain">INTO <replaceable class="PARAMETER">table</replaceable></arg> ! <arg> ! ( <replaceable class="PARAMETER">column</replaceable> ! <arg rep="repeat">,</arg> ) ! </arg><sbr> ! <group choice="req"> ! <arg choice="plain">DEFAULT VALUES</arg> ! <arg choice="plain">VALUES ( ! <group choice="req"> ! <arg choice="plain"><replaceable class="PARAMETER">expression</replaceable></arg> ! <arg choice="plain">DEFAULT</arg> ! </group> ! <arg rep="repeat">,</arg>) ! </arg> ! <arg>SELECT <replaceable class="PARAMETER">query</replaceable></arg> ! </group> ! </cmdsynopsis> <refsect2 id="R2-SQL-INSERT-1"> <title> Index: doc/src/sgml/ref/listen.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/listen.sgml,v retrieving revision 1.15 diff -c -r1.15 listen.sgml *** doc/src/sgml/ref/listen.sgml 2002/09/21 18:32:54 1.15 --- doc/src/sgml/ref/listen.sgml 2003/02/23 15:33:17 *************** *** 20,28 **** <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <synopsis> ! LISTEN <replaceable class="PARAMETER">name</replaceable> ! </synopsis> <refsect2 id="R2-SQL-LISTEN-1"> <refsect2info> --- 20,29 ---- <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>LISTEN</command> ! <arg choice="plain"><replaceable class="PARAMETER">name</replaceable></arg> ! </cmdsynopsis> <refsect2 id="R2-SQL-LISTEN-1"> <refsect2info> Index: doc/src/sgml/ref/load.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/load.sgml,v retrieving revision 1.15 diff -c -r1.15 load.sgml *** doc/src/sgml/ref/load.sgml 2003/01/19 00:13:29 1.15 --- doc/src/sgml/ref/load.sgml 2003/02/23 15:33:17 *************** *** 14,22 **** </refnamediv> <refsynopsisdiv> ! <synopsis> ! LOAD '<replaceable class="PARAMETER">filename</replaceable>' ! </synopsis> </refsynopsisdiv> <refsect1 id="sql-load-description"> --- 14,23 ---- </refnamediv> <refsynopsisdiv> ! <cmdsynopsis> ! <command>LOAD</command> ! <arg choice="plain">'<replaceable class="PARAMETER">filename</replaceable>'</arg> ! </cmdsynopsis> </refsynopsisdiv> <refsect1 id="sql-load-description"> Index: doc/src/sgml/ref/lock.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/lock.sgml,v retrieving revision 1.34 diff -c -r1.34 lock.sgml *** doc/src/sgml/ref/lock.sgml 2002/09/21 18:32:54 1.34 --- doc/src/sgml/ref/lock.sgml 2003/02/23 15:33:23 *************** *** 20,34 **** <refsynopsisdivinfo> <date>2001-07-09</date> </refsynopsisdivinfo> ! <synopsis> ! LOCK [ TABLE ] <replaceable class="PARAMETER">name</replaceable> [, ...] ! LOCK [ TABLE ] <replaceable class="PARAMETER">name</replaceable> [, ...] IN <replaceable class="PARAMETER">lockmode</replaceable> MODE ! where <replaceable class="PARAMETER">lockmode</replaceable> is one of: ! ACCESS SHARE | ROW SHARE | ROW EXCLUSIVE | SHARE UPDATE EXCLUSIVE | ! SHARE | SHARE ROW EXCLUSIVE | EXCLUSIVE | ACCESS EXCLUSIVE ! </synopsis> <refsect2 id="R2-SQL-LOCK-1"> <refsect2info> --- 20,57 ---- <refsynopsisdivinfo> <date>2001-07-09</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>LOCK</command> ! <arg>TABLE</arg> ! <arg choice="plain"><replaceable class="PARAMETER">name</replaceable></arg> ! <arg rep="repeat">,</arg> ! </cmdsynopsis> ! <cmdsynopsis> ! <command>LOCK</command> ! <arg>TABLE</arg> ! <arg choice="plain"><replaceable class="PARAMETER">name</replaceable></arg> ! <arg rep="repeat">,</arg> ! <arg choice="plain">IN ! <synopfragmentref linkend="SQL-LOCK-fragment"> ! lockmode ! </synopfragmentref> ! MODE ! </arg> ! <synopfragment id="SQL-LOCK-fragment"> ! <group choice="plain"> ! <arg choice="plain">ACCESS SHARE</arg><sbr> ! <arg choice="plain">ROW SHARE</arg><sbr> ! <arg choice="plain">ROW EXCLUSIVE</arg><sbr> ! <arg choice="plain">SHARE UPDATE EXCLUSIVE</arg><sbr> ! <arg choice="plain">SHARE</arg><sbr> ! <arg choice="plain">SHARE ROW EXCLUSIVE</arg><sbr> ! <arg choice="plain">EXCLUSIVE</arg><sbr> ! <arg choice="plain">ACCESS EXCLUSIVE</arg> ! </group> ! </synopfragment> ! </cmdsynopsis> <refsect2 id="R2-SQL-LOCK-1"> <refsect2info> Index: doc/src/sgml/ref/move.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/move.sgml,v retrieving revision 1.18 diff -c -r1.18 move.sgml *** doc/src/sgml/ref/move.sgml 2003/02/04 11:23:58 1.18 --- doc/src/sgml/ref/move.sgml 2003/02/23 15:33:26 *************** *** 20,28 **** <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <synopsis> ! MOVE [ <replaceable class="PARAMETER">direction</replaceable> ] [ <replaceable class="PARAMETER">count</replaceable> ] { IN | FROM } <replaceable class="PARAMETER">cursor</replaceable> ! </synopsis> </refsynopsisdiv> <refsect1 id="R1-SQL-MOVE-1"> --- 20,35 ---- <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>MOVE</command> ! <arg><replaceable class="PARAMETER">direction</replaceable></arg> ! <arg><replaceable class="PARAMETER">count</replaceable></arg> ! <group choice="req"> ! <arg choice="plain">IN</arg> ! <arg choice="plain">FROM</arg> ! </group> ! <arg choice="plain"><replaceable class="PARAMETER">cursor</replaceable></arg> ! </cmdsynopsis> </refsynopsisdiv> <refsect1 id="R1-SQL-MOVE-1"> Index: doc/src/sgml/ref/notify.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/notify.sgml,v retrieving revision 1.19 diff -c -r1.19 notify.sgml *** doc/src/sgml/ref/notify.sgml 2002/09/21 18:32:54 1.19 --- doc/src/sgml/ref/notify.sgml 2003/02/23 15:33:26 *************** *** 20,28 **** <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <synopsis> ! NOTIFY <replaceable class="PARAMETER">name</replaceable> ! </synopsis> <refsect2 id="R2-SQL-NOTIFY-1"> <refsect2info> --- 20,29 ---- <refsynopsisdivinfo> <date>1999-07-20</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>NOTIFY</command> ! <arg choice="plain"><replaceable class="PARAMETER">name</replaceable></arg> ! </cmdsynopsis> <refsect2 id="R2-SQL-NOTIFY-1"> <refsect2info> Index: doc/src/sgml/ref/prepare.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/prepare.sgml,v retrieving revision 1.2 diff -c -r1.2 prepare.sgml *** doc/src/sgml/ref/prepare.sgml 2003/02/02 23:46:37 1.2 --- doc/src/sgml/ref/prepare.sgml 2003/02/23 15:33:27 *************** *** 20,28 **** <refsynopsisdivinfo> <date>2002-08-12</date> </refsynopsisdivinfo> ! <synopsis> ! PREPARE <replaceable class="PARAMETER">plan_name</replaceable> [ (<replaceable class="PARAMETER">datatype</replaceable> [, ...] ) ] AS <replaceable class="PARAMETER">query</replaceable> ! </synopsis> <refsect2 id="R2-SQL-PREPARE-1"> <refsect2info> --- 20,33 ---- <refsynopsisdivinfo> <date>2002-08-12</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>PREPARE</command> ! <arg choice="plain"><replaceable class="PARAMETER">plan_name</replaceable></arg> ! <arg>(<replaceable class="PARAMETER">datatype</replaceable> ! <arg rep="repeat">,</arg>) ! </arg> ! <arg choice="plain">AS <replaceable class="PARAMETER">query</replaceable></arg> ! </cmdsynopsis> <refsect2 id="R2-SQL-PREPARE-1"> <refsect2info> Index: doc/src/sgml/ref/reindex.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/reindex.sgml,v retrieving revision 1.15 diff -c -r1.15 reindex.sgml *** doc/src/sgml/ref/reindex.sgml 2003/02/19 04:06:28 1.15 --- doc/src/sgml/ref/reindex.sgml 2003/02/23 15:33:30 *************** *** 20,28 **** <refsynopsisdivinfo> <date>2000-03-30</date> </refsynopsisdivinfo> ! <synopsis> ! REINDEX { DATABASE | TABLE | INDEX } <replaceable class="PARAMETER">name</replaceable> [ FORCE ] ! </synopsis> <refsect2 id="R2-SQL-REINDEX-1"> <refsect2info> --- 20,35 ---- <refsynopsisdivinfo> <date>2000-03-30</date> </refsynopsisdivinfo> ! <cmdsynopsis> ! <command>REINDEX</command> ! <group choice="req"> ! <arg choice="plain">DATABASE</arg> ! <arg choice="plain">TABLE</arg> ! <arg choice="plain">INDEX</arg> ! </group> ! <arg choice="plain"><replaceable class="PARAMETER">name</replaceable></arg> ! <arg>FORCE</arg> ! </cmdsynopsis> <refsect2 id="R2-SQL-REINDEX-1"> <refsect2info> Index: doc/src/sgml/ref/reset.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/reset.sgml,v retrieving revision 1.18 diff -c -r1.18 reset.sgml *** doc/src/sgml/ref/reset.sgml 2003/01/19 00:13:31 1.18 --- doc/src/sgml/ref/reset.sgml 2003/02/23 15:33:30 *************** *** 13,24 **** <refpurpose>restore the value of a run-time parameter to a default value</refpurpose> </refnamediv> <refsynopsisdiv> ! <synopsis> ! RESET <replaceable class="PARAMETER">variable</replaceable> ! </synopsis> ! <synopsis> ! RESET ALL ! </synopsis> <refsect2 id="R2-SQL-RESET-1"> <title>Inputs --- 13,26 ---- restore the value of a run-time parameter to a default value ! ! RESET ! variable ! ! ! RESET ! ALL ! Inputs Index: doc/src/sgml/ref/revoke.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/revoke.sgml,v retrieving revision 1.25 diff -c -r1.25 revoke.sgml *** doc/src/sgml/ref/revoke.sgml 2003/01/23 23:38:53 1.25 --- doc/src/sgml/ref/revoke.sgml 2003/02/23 15:33:32 *************** *** 15,52 **** ! ! REVOKE [ GRANT OPTION FOR ] ! { { SELECT | INSERT | UPDATE | DELETE | RULE | REFERENCES | TRIGGER } ! [,...] | ALL [ PRIVILEGES ] } ! ON [ TABLE ] tablename [, ...] ! FROM { username | GROUP groupname | PUBLIC } [, ...] ! [ CASCADE | RESTRICT ] ! REVOKE [ GRANT OPTION FOR ] ! { { CREATE | TEMPORARY | TEMP } [,...] | ALL [ PRIVILEGES ] } ! ON DATABASE dbname [, ...] ! FROM { username | GROUP groupname | PUBLIC } [, ...] ! [ CASCADE | RESTRICT ] ! REVOKE [ GRANT OPTION FOR ] ! { EXECUTE | ALL [ PRIVILEGES ] } ! ON FUNCTION funcname ([type, ...]) [, ...] ! FROM { username | GROUP groupname | PUBLIC } [, ...] ! [ CASCADE | RESTRICT ] ! REVOKE [ GRANT OPTION FOR ] ! { USAGE | ALL [ PRIVILEGES ] } ! ON LANGUAGE langname [, ...] ! FROM { username | GROUP groupname | PUBLIC } [, ...] ! [ CASCADE | RESTRICT ] ! REVOKE [ GRANT OPTION FOR ] ! { { CREATE | USAGE } [,...] | ALL [ PRIVILEGES ] } ! ON SCHEMA schemaname [, ...] ! FROM { username | GROUP groupname | PUBLIC } [, ...] ! [ CASCADE | RESTRICT ] ! --- 15,161 ---- ! ! REVOKE ! GRANT OPTION FOR ! ! ! ! SELECT ! INSERT ! UPDATE ! DELETE ! RULE ! REFERENCES ! TRIGGER ! ! , ! ! ALL PRIVILEGES ! ! ON ! TABLE ! ! tablename ! , ! ! FROM ! ! username ! GROUP groupname ! PUBLIC ! ! , ! ! CASCADE ! RESTRICT ! ! ! ! REVOKE ! GRANT OPTION FOR ! ! ! ! CREATE ! TEMPORARY ! TEMP ! ! , ! ! ALL PRIVILEGES ! ! ON DATABASE dbname ! , ! FROM ! ! username ! GROUP groupname ! PUBLIC ! ! , ! ! CASCADE ! RESTRICT ! ! ! ! REVOKE ! GRANT OPTION FOR ! ! EXECUTE ! ALL PRIVILEGES ! ! ! ON FUNCTION funcname ( ! type,) ! ! , ! FROM ! ! username ! GROUP groupname ! PUBLIC ! ! , ! ! CASCADE ! RESTRICT ! ! ! ! REVOKE ! GRANT OPTION FOR ! ! USAGE ! ALL PRIVILEGES ! ! ON LANGUAGE langname ! , ! FROM ! ! username ! GROUP groupname ! PUBLIC ! ! , ! ! CASCADE ! RESTRICT ! ! ! ! REVOKE ! GRANT OPTION FOR ! ! ! ! CREATE ! USAGE ! ! , ! ! ALL PRIVILEGES ! ! ON SCHEMA schemaname ! , ! FROM ! ! username ! GROUP groupname ! PUBLIC ! ! , ! ! CASCADE ! RESTRICT ! ! ! Index: doc/src/sgml/ref/rollback.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/rollback.sgml,v retrieving revision 1.13 diff -c -r1.13 rollback.sgml *** doc/src/sgml/ref/rollback.sgml 2002/05/18 15:44:47 1.13 --- doc/src/sgml/ref/rollback.sgml 2003/02/23 15:33:34 *************** *** 20,28 **** 1999-07-20 ! ! ROLLBACK [ WORK | TRANSACTION ] ! --- 20,32 ---- 1999-07-20 ! ! ROLLBACK ! ! WORK ! TRANSACTION ! ! Index: doc/src/sgml/ref/select.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/select.sgml,v retrieving revision 1.64 diff -c -r1.64 select.sgml *** doc/src/sgml/ref/select.sgml 2003/01/19 00:13:31 1.64 --- doc/src/sgml/ref/select.sgml 2003/02/23 15:33:51 *************** *** 19,54 **** 2000-12-11 ! ! SELECT [ ALL | DISTINCT [ ON ( expression [, ...] ) ] ] ! * | expression [ AS output_name ] [, ...] ! [ FROM from_item [, ...] ] ! [ WHERE condition ] ! [ GROUP BY expression [, ...] ] ! [ HAVING condition [, ...] ] ! [ { UNION | INTERSECT | EXCEPT } [ ALL ] select ] ! [ ORDER BY expression [ ASC | DESC | USING operator ] [, ...] ] ! [ LIMIT { count | ALL } ] ! [ OFFSET start ] ! [ FOR UPDATE [ OF tablename [, ...] ] ] ! where from_item can be: ! ! [ ONLY ] table_name [ * ] ! [ [ AS ] alias [ ( column_alias_list ) ] ] ! | ! ( select ) ! [ AS ] alias [ ( column_alias_list ) ] ! | ! table_function_name ( [ argument [, ...] ] ) ! [ AS ] alias [ ( column_alias_list | column_definition_list ) ] ! | ! table_function_name ( [ argument [, ...] ] ) ! AS ( column_definition_list ) ! | ! from_item [ NATURAL ] join_type from_item ! [ ON join_condition | USING ( join_column_list ) ] ! --- 19,145 ---- 2000-12-11 ! ! SELECT ! ! ALL ! ! DISTINCT ! ! ON ( expression ! , ) ! ! ! ! ! * ! ! expression ! AS output_name ! , ! ! ! ! FROM ! ! from_item ! ! , ! ! ! WHERE condition ! ! ! GROUP BY expression ! , ! ! ! HAVING condition ! , ! ! ! ! UNION ! INTERSECT ! EXCEPT ! ! ALL ! select ! ! ! ORDER BY expression ! ! ASC ! DESC ! USING operator ! ! , ! ! ! LIMIT ! ! count ! ALL ! ! ! OFFSET start ! ! FOR UPDATE ! ! OF tablename ! , ! ! ! ! ! ! ONLY ! table_name * ! ! AS alias ! ( column_alias_list ) ! ! ! ! ( select ) ! AS alias ! ( column_alias_list ) ! ! ! table_function_name ( ! argument , ! ) AS alias ! ! ! ( column_alias_list ! ! ! column_definition_list ) ! ! ! ! ! table_function_name ( ! argument , ) ! AS ( column_definition_list ) ! ! ! from_item NATURAL ! join_type ! from_item ! ! ! ON join_condition ! ! ! USING ( join_column_list ) ! ! ! ! ! ! Index: doc/src/sgml/ref/select_into.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/select_into.sgml,v retrieving revision 1.21 diff -c -r1.21 select_into.sgml *** doc/src/sgml/ref/select_into.sgml 2002/11/21 23:34:43 1.21 --- doc/src/sgml/ref/select_into.sgml 2003/02/23 15:33:56 *************** *** 19,38 **** 2000-12-11 ! ! SELECT [ ALL | DISTINCT [ ON ( expression [, ...] ) ] ] ! * | expression [ AS output_name ] [, ...] ! INTO [ TEMPORARY | TEMP ] [ TABLE ] new_table ! [ FROM from_item [, ...] ] ! [ WHERE condition ] ! [ GROUP BY expression [, ...] ] ! [ HAVING condition [, ...] ] ! [ { UNION | INTERSECT | EXCEPT } [ ALL ] select ] ! [ ORDER BY expression [ ASC | DESC | USING operator ] [, ...] ] ! [ LIMIT { count | ALL } ] ! [ OFFSET start ] ! [ FOR UPDATE [ OF tablename [, ...] ] ] ! --- 19,103 ---- 2000-12-11 ! ! SELECT ! ! ALL ! ! DISTINCT ! ! ON ( expression ! , ) ! ! ! ! ! * ! ! expression ! AS output_name ! , ! ! ! INTO ! ! TEMPORARY ! TEMP ! ! TABLE new_table ! ! ! FROM ! ! from_item ! ! , ! ! ! WHERE condition ! ! ! GROUP BY expression ! , ! ! ! HAVING condition ! , ! ! ! ! UNION ! INTERSECT ! EXCEPT ! ! ALL ! select ! ! ! ORDER BY expression ! ! ASC ! DESC ! USING operator ! ! , ! ! ! LIMIT ! ! count ! ALL ! ! ! OFFSET start ! ! FOR UPDATE ! ! OF tablename ! , ! ! ! Index: doc/src/sgml/ref/set.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/set.sgml,v retrieving revision 1.72 diff -c -r1.72 set.sgml *** doc/src/sgml/ref/set.sgml 2003/01/19 00:13:31 1.72 --- doc/src/sgml/ref/set.sgml 2003/02/23 15:34:06 *************** *** 13,22 **** change a run-time parameter ! ! SET [ SESSION | LOCAL ] variable { TO | = } { value | 'value' | DEFAULT } ! SET [ SESSION | LOCAL ] TIME ZONE { timezone | LOCAL | DEFAULT } ! Inputs --- 13,49 ---- change a run-time parameter ! ! SET ! ! SESSION ! LOCAL ! ! variable ! ! TO ! = ! ! ! value ! 'value' ! DEFAULT ! ! ! ! ! SET ! ! SESSION ! LOCAL ! ! TIME ZONE ! ! timezone ! LOCAL ! DEFAULT ! ! Inputs Index: doc/src/sgml/ref/set_constraints.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/set_constraints.sgml,v retrieving revision 1.5 diff -c -r1.5 set_constraints.sgml *** doc/src/sgml/ref/set_constraints.sgml 2002/08/17 12:15:48 1.5 --- doc/src/sgml/ref/set_constraints.sgml 2003/02/23 15:34:16 *************** *** 12,20 **** 2000-06-01 ! ! SET CONSTRAINTS { ALL | constraint [, ...] } { DEFERRED | IMMEDIATE } ! --- 12,31 ---- 2000-06-01 ! ! SET CONSTRAINTS ! ! ALL ! ! constraint ! , ! ! ! ! DEFERRED ! IMMEDIATE ! ! Index: doc/src/sgml/ref/set_session_auth.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/set_session_auth.sgml,v retrieving revision 1.8 diff -c -r1.8 set_session_auth.sgml *** doc/src/sgml/ref/set_session_auth.sgml 2003/02/19 04:06:28 1.8 --- doc/src/sgml/ref/set_session_auth.sgml 2003/02/23 15:34:16 *************** *** 15,25 **** ! ! SET [ SESSION | LOCAL ] SESSION AUTHORIZATION username ! SET [ SESSION | LOCAL ] SESSION AUTHORIZATION DEFAULT ! RESET SESSION AUTHORIZATION ! --- 15,42 ---- ! ! SET ! ! SESSION ! LOCAL ! ! SESSION AUTHORIZATION ! username ! ! ! ! SET ! ! SESSION ! LOCAL ! ! SESSION AUTHORIZATION DEFAULT ! ! ! ! RESET SESSION AUTHORIZATION ! Index: doc/src/sgml/ref/set_transaction.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/set_transaction.sgml,v retrieving revision 1.12 diff -c -r1.12 set_transaction.sgml *** doc/src/sgml/ref/set_transaction.sgml 2003/01/19 00:13:31 1.12 --- doc/src/sgml/ref/set_transaction.sgml 2003/02/23 15:34:18 *************** *** 15,26 **** ! ! SET TRANSACTION ! [ ISOLATION LEVEL { READ COMMITTED | SERIALIZABLE } ] [ READ WRITE | READ ONLY ] ! SET SESSION CHARACTERISTICS AS TRANSACTION ! [ ISOLATION LEVEL { READ COMMITTED | SERIALIZABLE } ] [ READ WRITE | READ ONLY ] ! --- 15,46 ---- ! ! SET TRANSACTION ! ISOLATION LEVEL ! ! READ COMMITTED ! SERIALIZABLE ! ! ! ! READ WRITE ! READ ONLY ! ! ! ! SET SESSION CHARACTERISTICS AS TRANSACTION ! ISOLATION LEVEL ! ! READ COMMITTED ! SERIALIZABLE ! ! ! ! READ WRITE ! READ ONLY ! ! Index: doc/src/sgml/ref/show.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/show.sgml,v retrieving revision 1.23 diff -c -r1.23 show.sgml *** doc/src/sgml/ref/show.sgml 2003/01/19 00:13:31 1.23 --- doc/src/sgml/ref/show.sgml 2003/02/23 15:34:20 *************** *** 13,24 **** show the value of a run-time parameter ! ! SHOW name ! ! ! SHOW ALL ! Inputs --- 13,25 ---- show the value of a run-time parameter ! ! SHOW ! ! name ! ALL ! ! Inputs Index: doc/src/sgml/ref/start_transaction.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/start_transaction.sgml,v retrieving revision 1.4 diff -c -r1.4 start_transaction.sgml *** doc/src/sgml/ref/start_transaction.sgml 2003/01/10 22:03:27 1.4 --- doc/src/sgml/ref/start_transaction.sgml 2003/02/23 15:34:20 *************** *** 19,27 **** ! ! START TRANSACTION [ ISOLATION LEVEL { READ COMMITTED | SERIALIZABLE } ] [ READ WRITE | READ ONLY ] ! --- 19,37 ---- ! ! START TRANSACTION ! ISOLATION LEVEL ! ! READ COMMITTED ! SERIALIZABLE ! ! ! ! READ WRITE ! READ ONLY ! ! Index: doc/src/sgml/ref/truncate.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/truncate.sgml,v retrieving revision 1.9 diff -c -r1.9 truncate.sgml *** doc/src/sgml/ref/truncate.sgml 2002/12/06 03:15:07 1.9 --- doc/src/sgml/ref/truncate.sgml 2003/02/23 15:34:21 *************** *** 20,28 **** 1999-07-20 ! ! TRUNCATE [ TABLE ] name ! --- 20,30 ---- 1999-07-20 ! ! TRUNCATE ! TABLE ! name ! Index: doc/src/sgml/ref/unlisten.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/unlisten.sgml,v retrieving revision 1.20 diff -c -r1.20 unlisten.sgml *** doc/src/sgml/ref/unlisten.sgml 2002/09/21 18:32:54 1.20 --- doc/src/sgml/ref/unlisten.sgml 2003/02/23 15:34:28 *************** *** 20,28 **** 1998-10-19 ! ! UNLISTEN { notifyname | * } ! --- 20,32 ---- 1998-10-19 ! ! UNLISTEN ! ! notifyname ! * ! ! Index: doc/src/sgml/ref/update.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/update.sgml,v retrieving revision 1.20 diff -c -r1.20 update.sgml *** doc/src/sgml/ref/update.sgml 2002/08/15 02:59:18 1.20 --- doc/src/sgml/ref/update.sgml 2003/02/23 15:34:31 *************** *** 20,30 **** 1999-07-20 ! ! UPDATE [ ONLY ] table SET col = expression [, ...] ! [ FROM fromlist ] ! [ WHERE condition ] ! --- 20,37 ---- 1999-07-20 ! ! UPDATE ! ONLY ! ! table SET ! col = ! expression ! , ! ! FROM fromlist ! WHERE condition ! Index: doc/src/sgml/ref/vacuum.sgml =================================================================== RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/vacuum.sgml,v retrieving revision 1.29 diff -c -r1.29 vacuum.sgml *** doc/src/sgml/ref/vacuum.sgml 2003/02/19 04:06:28 1.29 --- doc/src/sgml/ref/vacuum.sgml 2003/02/23 15:34:33 *************** *** 20,29 **** 2001-08-26 ! ! VACUUM [ FULL ] [ FREEZE ] [ VERBOSE ] [ table ] ! VACUUM [ FULL ] [ FREEZE ] [ VERBOSE ] ANALYZE [ table [ (column [, ...] ) ] ] ! --- 20,44 ---- 2001-08-26 ! ! VACUUM ! FULL ! FREEZE ! VERBOSE ! table ! ! ! VACUUM ! FULL ! FREEZE ! VERBOSE ! ANALYZE ! table ! (column ! ,) ! ! ! Index: src/bin/psql/create_help.pl =================================================================== RCS file: /projects/cvsroot/pgsql-server/src/bin/psql/create_help.pl,v retrieving revision 1.7 diff -c -r1.7 create_help.pl *** src/bin/psql/create_help.pl 2000/06/27 00:31:41 1.7 --- src/bin/psql/create_help.pl 2003/02/23 15:34:49 *************** *** 1,4 **** ! #! /usr/bin/perl ################################################################# # create_help.pl -- converts SGML docs to internal psql help --- 1,4 ---- ! #! /usr/bin/perl -w ################################################################# # create_help.pl -- converts SGML docs to internal psql help *************** *** 10,27 **** # # This script automatically generates the help on SQL in psql from ! # the SGML docs. So far the format of the docs was consistent ! # enough that this worked, but this here is by no means an SGML ! # parser. # # Call: perl create_help.pl docdir sql_help.h # The name of the header file doesn't matter to this script, but it # sure does matter to the rest of the source. # ! $docdir = $ARGV[0] || die "$0: missing required argument: docdir\n"; ! $outputfile = $ARGV[1] || die "$0: missing required argument: output file\n"; if ($outputfile =~ m!.*/([^/]+)$!) { $outputfilebasename = $1; } --- 10,40 ---- # # This script automatically generates the help on SQL in psql from ! # the SGML docs including the tab completion tables that are loaded ! # into the pg_tools schema. So far the format of the docs has been ! # consistent enough that this worked, but this here is by no means ! # an SGML parser. # # Call: perl create_help.pl docdir sql_help.h # The name of the header file doesn't matter to this script, but it # sure does matter to the rest of the source. # ! use Data::Dumper; ! use strict; + my $ccc = 0; + + my $outputfilebasename; + my $define; + my $count; + my $file; + my $filecontent; + my $tmp; + + my $docdir = $ARGV[0] || die "$0: missing required argument: docdir\n"; + my $outputfile = $ARGV[1] || die "$0: missing required argument: output file\n"; + if ($outputfile =~ m!.*/([^/]+)$!) { $outputfilebasename = $1; } *************** *** 29,34 **** --- 42,48 ---- $outputfilebasename = $outputfile; } + # File define $define = $outputfilebasename; $define =~ tr/a-z/A-Z/; $define =~ s/\W/_/g; *************** *** 62,71 **** static struct _helpStruct QL_HELP[] = { "; $count = 0; - foreach $file (sort readdir DIR) { ! local ($cmdname, $cmddesc, $cmdsynopsis); $file =~ /\.sgml$/ || next; open(FILE, "$docdir/$file") || next; --- 76,89 ---- static struct _helpStruct QL_HELP[] = { "; + # Starting node for tab completion tree $count = 0; foreach $file (sort readdir DIR) { ! my $cmdname; ! my $cmddesc; ! my $refsynopsis; ! my $cmdsynopsis = ''; # Initialize non-null for appending ! $file =~ /\.sgml$/ || next; open(FILE, "$docdir/$file") || next; *************** *** 74,121 **** # Ignore files that are not for SQL language statements $filecontent =~ m!\s*SQL - Language Statements\s*!i ! || next; ! # Extract , , and fields, taking the ! # first one if there are more than one. NOTE: we cannot just say ! # "(.*)", because that will match the first ! # occurrence of and the last one of ! Under # Perl 5 we could use a non-greedy wildcard, .*?, to ensure we match ! # the first , but we want this script to run under Perl 4 # too, and Perl 4 hasn't got that feature. So, do it the hard way. # Also, use [\000-\377] where we want to match anything including # newline --- Perl 4 does not have Perl 5's /s modifier. $filecontent =~ m!\s*([a-z ]*[a-z])\s*!i && ($cmdname = $1); if ($filecontent =~ m!\s*([\000-\377]+)$!i) { ! $tmp = $1; # everything after first ! if ($tmp =~ s!\s*[\000-\377]*$!!i) { ! $cmddesc = $tmp; ! } } ! if ($filecontent =~ m!\s*([\000-\377]+)$!i) { ! $tmp = $1; # everything after first ! if ($tmp =~ s!\s*[\000-\377]*$!!i) { ! $cmdsynopsis = $tmp; ! } } if ($cmdname && $cmddesc && $cmdsynopsis) { ! $cmdname =~ s/\"/\\"/g; ! $cmddesc =~ s/<[^>]+>//g; ! $cmddesc =~ s/\s+/ /g; ! $cmddesc =~ s/\"/\\"/g; ! $cmdsynopsis =~ s/<[^>]+>//g; ! $cmdsynopsis =~ s/\n/\\n/g; ! $cmdsynopsis =~ s/\"/\\"/g; ! print OUT " { \"$cmdname\",\n \"$cmddesc\",\n \"$cmdsynopsis\" },\n\n"; $count++; ! } ! else { ! print STDERR "$0: parsing file '$file' failed (N='$cmdname' D='$cmddesc')\n"; ! } } print OUT " --- 92,156 ---- # Ignore files that are not for SQL language statements $filecontent =~ m!\s*SQL - Language Statements\s*!i ! || next; ! # Extract , , and -> fields, ! # taking the first one if there are more than one. NOTE: we cannot just say ! # "(.*)", because that will match the first ! # occurrence of and the last one of ! Under # Perl 5 we could use a non-greedy wildcard, .*?, to ensure we match ! # the first , but we want this script to run under Perl 4 # too, and Perl 4 hasn't got that feature. So, do it the hard way. # Also, use [\000-\377] where we want to match anything including # newline --- Perl 4 does not have Perl 5's /s modifier. $filecontent =~ m!\s*([a-z ]*[a-z])\s*!i && ($cmdname = $1); if ($filecontent =~ m!\s*([\000-\377]+)$!i) { ! my $ctmp = $1; # everything after first ! if ($ctmp =~ s!\s*[\000-\377]*$!!i) { ! $cmddesc = $ctmp; ! } } ! if ($filecontent =~ m!\s*([\000-\377]+)$!i) { ! my $ctmp = $1; # everything after first ! if ($ctmp =~ s!\s*[\000-\377]*$!!i) { ! $refsynopsis = $ctmp; ! } } + $tmp = $filecontent; + while ($tmp =~ m!\s*([\000-\377]+)$!i) + { + my $ctmp = $1; # everything after first + + # Set the tmp buffer up to capture the next tag + if ($ctmp =~ m!\s*([\000-\377]*)$!i) { + $tmp = $1; + } + + # Remove everything outside of the file + if ($ctmp =~ s!\s*[\000-\377]*$!!i) { + $cmdsynopsis .= "\n\n" if ($cmdsynopsis ne ''); + $cmdsynopsis .= reformat($ctmp); + } + } + + # Deal with the cmdsynopsis beforehand if ($cmdname && $cmddesc && $cmdsynopsis) { ! $cmdname =~ s/\"/\\"/g; ! $cmddesc =~ s/<[^>]+>//g; ! $cmddesc =~ s/\s+/ /g; ! $cmddesc =~ s/\"/\\"/g; ! $cmdsynopsis =~ s/<[^>]+>//g; ! $cmdsynopsis =~ s/\"/\\"/g; ! print OUT " { \"$cmdname\",\n \"$cmddesc\",\n \"$cmdsynopsis\" },\n\n"; $count++; ! } ! else { ! print STDERR "$0: parsing file '$file' failed (N='$cmdname' D='$cmddesc')\n"; ! } } print OUT " *************** *** 131,133 **** --- 166,327 ---- close OUT; closedir DIR; + + + # Exit + exit 0; + + + ## + # reformat + # + # Build the structure and expressions used for implementation of + # tab-completion as well as reformatting the expression for display + # to the user + # + sub reformat($) + { + my ($cmdsynopsis) = @_; + + # $string will be built up during processing to be a human + # readable version + my $string = ''; + my @argstack; + my $replaceable; + my @fragments; + + # Clean up for processing + $cmdsynopsis =~ s/\n//g; + $cmdsynopsis =~ s/\s+/ /g; + + for my $frag (split(/(<\/?[^>]+>)/, $cmdsynopsis)) + { + # Beginning of optional list (adds '' as an option) + if ($frag =~ /^<(arg|group|optional)(\s+choice\s*=\s*["']optional["'])?(\s+rep\s*=\s*["'][^"']+["'])?>$/i) + { + my $isOption = 0; + + # If the parent is a group, mark this as an option. + if (@argstack > 0) + { + if ($argstack[-1] =~ 'GROUP' && $argstack[-1] =~ 'NOTFIRST') + { + $string .= '| '; + } + else + { + $argstack[-1] .= '-NOTFIRST'; + } + } + + # Record options for closing tag + my $key; + $key = 'ARG-OPTIONAL' if ($frag =~ /^$/i) + { + my $isOption = 0; + my $after; + + # If the parent is a group, mark this as an option. + if (@argstack > 0) + { + if ($argstack[-1] =~ 'GROUP' && $argstack[-1] =~ 'NOTFIRST') + { + $string .= '| '; + } + else + { + $argstack[-1] .= '-NOTFIRST'; + } + } + + # Record options for closing tag + my $key; + $key = 'ARG-REQ' if ($frag =~ /^$/i) + { + # Add markup to display string + my $key = pop(@argstack); + + $string .= '...' if ($key =~ /REPEAT/i); + $string .= ' ]' if ($key =~ /OPTIONAL/i); + $string .= ' }' if ($key =~ /REQ/i && $key !~ /SUPPRESSBRACKET/i); + } + elsif ($frag =~ /^<\/?\s*command>$/i) + { + # NOOP + } + # elsif replaceable + elsif ($frag =~ /^]*>$/i) + { + $replaceable = 1; + } + elsif ($frag =~ /^<\/replaceable>$/i) + { + $replaceable = 0; + } + # New line requested + elsif ($frag =~ /^$/i) + { + $string .= "\n"; + } + # + elsif ($frag =~ /^/i) + { + if (defined($1) && $1 ne '') + { + push(@fragments, $1); + + my $numfrags = scalar(@fragments); + + $string .= "\n\n($numfrags) "; + } + } + # Otherwise + elsif ($frag ne '') + { + $string .= $frag; + } + } + + # Run though each of the synopfragments found, replacing the synopfragmentref + # entries with the assigned number. + while (scalar(@fragments) != 0) + { + my $numfrag = scalar(@fragments); + my $fragment = pop(@fragments); + + $string =~ s/\s*/ ($numfrag)/g; + } + + # Clean out duplicated whitespace -- but not newlines. + $string =~ s/[ \t]+/ /g; + + return $string; + }