diff --git a/doc/src/sgml/array.sgml b/doc/src/sgml/array.sgml index b712b9c34d..7c89a7921c 100644 --- a/doc/src/sgml/array.sgml +++ b/doc/src/sgml/array.sgml @@ -1,4 +1,4 @@ - + Arrays @@ -63,7 +63,7 @@ CREATE TABLE tictactoe ( - An alternative syntax, which conforms to the SQL:1999 standard, may + An alternative syntax, which conforms to the SQL:2003 standard, may be used for one-dimensional arrays. pay_by_quarter could have been defined as: diff --git a/doc/src/sgml/ddl.sgml b/doc/src/sgml/ddl.sgml index 269f9aab82..3c53973b76 100644 --- a/doc/src/sgml/ddl.sgml +++ b/doc/src/sgml/ddl.sgml @@ -1,4 +1,4 @@ - + Data Definition @@ -1122,7 +1122,7 @@ SELECT name, altitude In previous versions of PostgreSQL, the default behavior was not to include child tables in queries. This was - found to be error prone and is also in violation of the SQL:1999 + found to be error prone and is also in violation of the SQL:2003 standard. Under the old syntax, to get the sub-tables you append * to the table name. For example diff --git a/doc/src/sgml/ecpg.sgml b/doc/src/sgml/ecpg.sgml index b5b1b913eb..4364ff0fce 100644 --- a/doc/src/sgml/ecpg.sgml +++ b/doc/src/sgml/ecpg.sgml @@ -1,5 +1,5 @@ @@ -1146,8 +1146,8 @@ struct The fields sqlca.sqlstate and sqlca.sqlcode are two different schemes that provide error codes. Both are specified in the SQL standard, but - SQLCODE has been marked deprecated in the 1992 - edition of the standard and has been dropped in the 1999 edition. + SQLCODE has been marked deprecated in SQL-92 + edition of the standard and has been dropped in later editions. Therefore, new applications are strongly encouraged to use SQLSTATE. diff --git a/doc/src/sgml/errcodes.sgml b/doc/src/sgml/errcodes.sgml index 71b4a8cd40..f099a06318 100644 --- a/doc/src/sgml/errcodes.sgml +++ b/doc/src/sgml/errcodes.sgml @@ -1,4 +1,4 @@ - + <productname>PostgreSQL</productname> Error Codes @@ -127,7 +127,7 @@ Class 02 -No Data — this is also a warning class per SQL:1999 +No Data — this is also a warning class per SQL:2003 diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index f274e53c55..9c0d8a22bc 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,5 +1,5 @@ @@ -2543,8 +2543,8 @@ cast(-44 as bit(12)) 111111010100 There are three separate approaches to pattern matching provided by PostgreSQL: the traditional SQL LIKE operator, the - more recent SIMILAR TO operator (added in - SQL:1999), and POSIX-style regular expressions. + more recent SIMILAR TO operator (part of + SQL:2003), and POSIX-style regular expressions. Additionally, a pattern matching function, substring, is available, using either SIMILAR TO-style or POSIX-style regular diff --git a/doc/src/sgml/ref/alter_domain.sgml b/doc/src/sgml/ref/alter_domain.sgml index 66344e33a8..deb4050174 100644 --- a/doc/src/sgml/ref/alter_domain.sgml +++ b/doc/src/sgml/ref/alter_domain.sgml @@ -1,5 +1,5 @@ @@ -203,7 +203,7 @@ ALTER DOMAIN zipcode DROP CONSTRAINT zipchk; Compatibility - The ALTER DOMAIN statement is compatible with SQL:1999, + The ALTER DOMAIN statement is compatible with SQL:2003, except for the OWNER variant, which is a PostgreSQL extension. diff --git a/doc/src/sgml/ref/create_cast.sgml b/doc/src/sgml/ref/create_cast.sgml index a6461a6525..6adde5e0ab 100644 --- a/doc/src/sgml/ref/create_cast.sgml +++ b/doc/src/sgml/ref/create_cast.sgml @@ -1,4 +1,4 @@ - + @@ -298,8 +298,8 @@ CREATE CAST (text AS int4) WITH FUNCTION int4(text); Compatibility - The CREATE CAST command conforms to SQL:1999, - except that SQL:1999 does not make provisions for binary-compatible + The CREATE CAST command conforms to SQL:2003, + except that SQL:2003 does not make provisions for binary-compatible types or extra arguments to implementation functions. AS IMPLICIT is a PostgreSQL extension, too. diff --git a/doc/src/sgml/ref/create_function.sgml b/doc/src/sgml/ref/create_function.sgml index 768a42846b..785f8bbb70 100644 --- a/doc/src/sgml/ref/create_function.sgml +++ b/doc/src/sgml/ref/create_function.sgml @@ -1,5 +1,5 @@ @@ -478,7 +478,7 @@ SELECT * FROM dup(42); Compatibility - A CREATE FUNCTION command is defined in SQL:1999 and later. + A CREATE FUNCTION command is defined in SQL:2003. The PostgreSQL version is similar but not fully compatible. The attributes are not portable, neither are the different available languages. diff --git a/doc/src/sgml/ref/create_table.sgml b/doc/src/sgml/ref/create_table.sgml index 191f29ccd4..71972b470b 100644 --- a/doc/src/sgml/ref/create_table.sgml +++ b/doc/src/sgml/ref/create_table.sgml @@ -1,5 +1,5 @@ @@ -860,7 +860,7 @@ CREATE TABLE cinemas ( The CREATE TABLE command conforms to SQL-92 and - to a subset of SQL:1999, with exceptions listed below. + to a subset of SQL:2003, with exceptions listed below. @@ -938,8 +938,8 @@ CREATE TABLE cinemas ( Multiple inheritance via the INHERITS clause is a PostgreSQL language extension. - SQL:1999 (but not SQL-92) defines single inheritance using a - different syntax and different semantics. SQL:1999-style + SQL:2003 defines single inheritance using a + different syntax and different semantics. SQL:2003-style inheritance is not yet supported by PostgreSQL. diff --git a/doc/src/sgml/ref/create_trigger.sgml b/doc/src/sgml/ref/create_trigger.sgml index f712636f49..83a8edb9ed 100644 --- a/doc/src/sgml/ref/create_trigger.sgml +++ b/doc/src/sgml/ref/create_trigger.sgml @@ -1,5 +1,5 @@ @@ -208,20 +208,19 @@ CREATE TRIGGER name { BEFORE | AFTE The CREATE TRIGGER statement in PostgreSQL implements a subset of the - SQL:1999 standard. (There are no provisions for triggers in SQL-92.) - The following functionality is missing: + SQL:2003 standard. The following functionality is currently missing: - SQL:1999 allows triggers to fire on updates to specific columns + SQL:2003 allows triggers to fire on updates to specific columns (e.g., AFTER UPDATE OF col1, col2). - SQL:1999 allows you to define aliases for the old + SQL:2003 allows you to define aliases for the old and new rows or tables for use in the definition of the triggered action (e.g., CREATE TRIGGER ... ON tablename REFERENCING OLD ROW AS somename NEW ROW AS othername @@ -235,7 +234,7 @@ CREATE TRIGGER name { BEFORE | AFTE PostgreSQL only allows the execution - of a user-defined function for the triggered action. SQL:1999 + of a user-defined function for the triggered action. SQL:2003 allows the execution of a number of other SQL commands, such as CREATE TABLE as triggered action. This limitation is not hard to work around by creating a user-defined @@ -246,7 +245,7 @@ CREATE TRIGGER name { BEFORE | AFTE - SQL:1999 specifies that multiple triggers should be fired in + SQL:2003 specifies that multiple triggers should be fired in time-of-creation order. PostgreSQL uses name order, which was judged more convenient to work with. diff --git a/doc/src/sgml/ref/create_type.sgml b/doc/src/sgml/ref/create_type.sgml index 4f002b6519..4d05fa98cd 100644 --- a/doc/src/sgml/ref/create_type.sgml +++ b/doc/src/sgml/ref/create_type.sgml @@ -1,5 +1,5 @@ @@ -533,7 +533,7 @@ CREATE TABLE big_objs ( This CREATE TYPE command is a PostgreSQL extension. There is a - CREATE TYPE statement in SQL:1999 and later that is rather + CREATE TYPE statement in SQL:2003 that is rather different in detail. diff --git a/doc/src/sgml/ref/select.sgml b/doc/src/sgml/ref/select.sgml index 75765a0dab..d29f8e48e0 100644 --- a/doc/src/sgml/ref/select.sgml +++ b/doc/src/sgml/ref/select.sgml @@ -1,5 +1,5 @@ @@ -1082,7 +1082,7 @@ SELECT distributors.* WHERE distributors.name = 'Westward'; Namespace Available to <literal>GROUP BY</literal> and <literal>ORDER BY</literal> - In the SQL-92 standard, an ORDER BY clause may + In the SQL:2003 standard, an ORDER BY clause may only use result column names or numbers, while a GROUP BY clause may only use expressions based on input column names. PostgreSQL extends each of @@ -1095,11 +1095,11 @@ SELECT distributors.* WHERE distributors.name = 'Westward'; - SQL:1999 uses a slightly different definition which is not entirely upward - compatible - with SQL-92. In most cases, however, PostgreSQL + SQL:2003 uses a slightly different definition which is not entirely upward + compatible with SQL-92. + In most cases, however, PostgreSQL will interpret an ORDER BY or GROUP - BY expression the same way SQL:1999 does. + BY expression the same way SQL:2003 does. diff --git a/doc/src/sgml/sql.sgml b/doc/src/sgml/sql.sgml index 04a640929a..070ba7080c 100644 --- a/doc/src/sgml/sql.sgml +++ b/doc/src/sgml/sql.sgml @@ -1,5 +1,5 @@ @@ -98,8 +98,7 @@ $PostgreSQL: pgsql/doc/src/sgml/sql.sgml,v 1.36 2005/04/28 21:47:09 tgl Exp $ is under development. It is planned to make SQL a Turing-complete language, i.e. all computable queries (e.g. recursive queries) will be - possible. This is a very complex task and therefore the completion of - the new standard can not be expected before 1999. + possible. This has now been completed as SQL:2003.