Incomplete description in Create Operator (function arg order must match too)

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: "pgsql-docs(at)postgresql(dot)org" <pgsql-docs(at)postgresql(dot)org>
Subject: Incomplete description in Create Operator (function arg order must match too)
Date: 2015-06-29 22:54:31
Message-ID: CAKFQuwYGrVb1oLGXJ2PfNmxnJKeyFqCMLStT2Upb1159byWkHQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

http://www.postgresql.org/docs/devel/static/plpgsql-statements.html

"""
The function_name procedure must have been previously defined using CREATE
FUNCTION and must be defined to accept the correct number of arguments
(either one or two) of the indicated types.
"""

This should also include a comment about "in the same order"

"...to accept the correct number of arguments (either one or two and in
left to right order) of the indicated types."

Apparently the system does not attempt to find (2 arg) functions with the
correct number and types of arguments but in the reverse order.

At least 9.3 appears not to...

David J.

Browse pgsql-docs by date

  From Date Subject
Next Message Monica Gamazo 2015-06-30 00:09:18 Re: Omission of "(or C)" in psql's "pset title" header
Previous Message David G. Johnston 2015-06-24 22:11:20 Omission of "(or C)" in psql's "pset title" header