diff options
author | Tom Lane | 2002-08-10 19:01:53 +0000 |
---|---|---|
committer | Tom Lane | 2002-08-10 19:01:53 +0000 |
commit | a5e6e9935714959db56607b327ce0f4ff68751c1 (patch) | |
tree | dc2031a6d3ca14bb42af1d3b98b68d2b9b443579 /doc/src | |
parent | f1d820494c6fd45d4675d77f596159175f1d1c26 (diff) |
Allow schema-qualified operator names to be used in the optional
arguments of CREATE OPERATOR.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/ref/create_operator.sgml | 11 | ||||
-rw-r--r-- | doc/src/sgml/syntax.sgml | 15 |
2 files changed, 23 insertions, 3 deletions
diff --git a/doc/src/sgml/ref/create_operator.sgml b/doc/src/sgml/ref/create_operator.sgml index 82ea44921d9..2a4955113f3 100644 --- a/doc/src/sgml/ref/create_operator.sgml +++ b/doc/src/sgml/ref/create_operator.sgml @@ -1,5 +1,5 @@ <!-- -$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_operator.sgml,v 1.29 2002/05/18 15:44:47 petere Exp $ +$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_operator.sgml,v 1.30 2002/08/10 19:01:53 tgl Exp $ PostgreSQL documentation --> @@ -437,6 +437,15 @@ MYBOXES.description === box '((0,0), (1,1))' Refer to <command>DROP OPERATOR</command> to delete user-defined operators from a database. </para> + + <para> + To give a schema-qualified operator name in <replaceable + class="parameter">com_op</replaceable> or the other optional + arguments, use the <literal>OPERATOR()</> syntax, for example +<programlisting> + COMMUTATOR = OPERATOR(myschema.===) , +</programlisting> + </para> </refsect2> </refsect1> diff --git a/doc/src/sgml/syntax.sgml b/doc/src/sgml/syntax.sgml index 90f33bfd0ff..fbbe78db9a8 100644 --- a/doc/src/sgml/syntax.sgml +++ b/doc/src/sgml/syntax.sgml @@ -1,5 +1,5 @@ <!-- -$Header: /cvsroot/pgsql/doc/src/sgml/syntax.sgml,v 1.64 2002/08/05 19:43:31 petere Exp $ +$Header: /cvsroot/pgsql/doc/src/sgml/syntax.sgml,v 1.65 2002/08/10 19:01:53 tgl Exp $ --> <chapter id="sql-syntax"> @@ -755,7 +755,7 @@ SELECT (5 !) - 6; </row> <row> - <entry><token>LIKE</token> <token>ILIKE</token></entry> + <entry><token>LIKE</token> <token>ILIKE</token> <token>SIMILAR</token></entry> <entry></entry> <entry>string pattern matching</entry> </row> @@ -801,6 +801,17 @@ SELECT (5 !) - 6; the same precedence as the built-in <quote>+</quote> operator, no matter what yours does. </para> + + <para> + When a schema-qualified operator name is used in the + <literal>OPERATOR</> syntax, as for example in +<programlisting> +SELECT 3 OPERATOR(pg_catalog.+) 4; +</programlisting> + the <literal>OPERATOR</> construct is taken to have the default precedence + shown above for <quote>any other</> operator. This is true no matter + which specific operator name appears inside <literal>OPERATOR()</>. + </para> </sect2> </sect1> |