Index: doc/src/sgml/reference.sgml =================================================================== RCS file: /opt/src/cvs/pgsql-server/doc/src/sgml/reference.sgml,v retrieving revision 1.45 diff -c -r1.45 reference.sgml *** doc/src/sgml/reference.sgml 27 Jun 2003 14:45:25 -0000 1.45 --- doc/src/sgml/reference.sgml 8 Aug 2003 05:16:26 -0000 *************** *** 108,113 **** --- 108,114 ---- &fetch; &grant; &insert; + &isof; &listen; &load; &lock; Index: doc/src/sgml/ref/allfiles.sgml =================================================================== RCS file: /opt/src/cvs/pgsql-server/doc/src/sgml/ref/allfiles.sgml,v retrieving revision 1.54 diff -c -r1.54 allfiles.sgml *** doc/src/sgml/ref/allfiles.sgml 27 Jun 2003 14:45:25 -0000 1.54 --- doc/src/sgml/ref/allfiles.sgml 8 Aug 2003 04:45:35 -0000 *************** *** 76,81 **** --- 76,82 ---- + Index: doc/src/sgml/ref/isof.sgml =================================================================== RCS file: doc/src/sgml/ref/isof.sgml diff -N doc/src/sgml/ref/isof.sgml *** /dev/null 1 Jan 1970 00:00:00 -0000 --- doc/src/sgml/ref/isof.sgml 8 Aug 2003 05:20:46 -0000 *************** *** 0 **** --- 1,84 ---- + + + IS OF + SQL - Language Statements + + + + IS OF + specify a type test + + + + + expression IS [ NOT ] OF ( typename[, ... ] ) + + + + + Description + + + This command allows an expression to be checked against a list + of data types. It returns TRUE if any data type in the list matches + that of the expression, + FALSE otherwise. + + + + + + Examples + + regression=# SELECT 1::int4 IS OF (int4, int8); + ?column? + ---------- + t + (1 row) + + regression=# SELECT 1::int4 IS OF (text); + ?column? + ---------- + f + (1 row) + + regression=# SELECT ARRAY['a'] IS OF (text[]); + ?column? + ---------- + t + (1 row) + + + + + Compatibility + + + The SQL standard specifies that IS OF + must result in UNKNOWN if + expression is + NULL. The PostgreSQL + implementation results in TRUE or FALSE + as appropriate based on the data type assigned by the planner. + Otherwise, this command is fully conforming. + + + + + +