postgresql/src/pl/plpython/expected
Tom Lane e56bce5d43 Reconsider the handling of procedure OUT parameters.
Commit 2453ea142 redefined pg_proc.proargtypes to include the types of
OUT parameters, for procedures only.  While that had some advantages
for implementing the SQL-spec behavior of DROP PROCEDURE, it was pretty
disastrous from a number of other perspectives.  Notably, since the
primary key of pg_proc is name + proargtypes, this made it possible to
have multiple procedures with identical names + input arguments and
differing output argument types.  That would make it impossible to call
any one of the procedures by writing just NULL (or "?", or any other
data-type-free notation) for the output argument(s).  The change also
seems likely to cause grave confusion for client applications that
examine pg_proc and expect the traditional definition of proargtypes.

Hence, revert the definition of proargtypes to what it was, and
undo a number of complications that had been added to support that.

To support the SQL-spec behavior of DROP PROCEDURE, when there are
no argmode markers in the command's parameter list, we perform the
lookup both ways (that is, matching against both proargtypes and
proallargtypes), succeeding if we get just one unique match.
In principle this could result in ambiguous-function failures
that would not happen when using only one of the two rules.
However, overloading of procedure names is thought to be a pretty
rare usage, so this shouldn't cause many problems in practice.
Postgres-specific code such as pg_dump can defend against any
possibility of such failures by being careful to specify argmodes
for all procedure arguments.

This also fixes a few other bugs in the area of CALL statements
with named parameters, and improves the documentation a little.

catversion bump forced because the representation of procedures
with OUT arguments changes.

Discussion: https://postgr.es/m/3742981.1621533210@sss.pgh.pa.us
2021-06-10 17:11:36 -04:00
..
plpython_call.out Reconsider the handling of procedure OUT parameters. 2021-06-10 17:11:36 -04:00
plpython_composite.out PL/Python: Fix hint about returning composite type from Python 2017-06-30 16:51:14 -04:00
plpython_do.out Rearrange the handling of error context reports. 2015-09-05 11:58:33 -04:00
plpython_drop.out Create extension infrastructure for the core procedural languages. 2011-03-04 21:51:14 -05:00
plpython_ereport.out Modernize Python exception syntax in tests 2020-01-08 22:47:22 +01:00
plpython_error.out Modernize Python exception syntax in tests 2020-01-08 22:47:22 +01:00
plpython_error_5.out Fix broken logic for reporting PL/Python function names in errcontext. 2018-02-14 14:47:18 -05:00
plpython_global.out Make PL/Python tests more compatible with Python 3 2009-08-24 20:25:25 +00:00
plpython_import.out Modernize Python exception syntax in tests 2020-01-08 22:47:22 +01:00
plpython_newline.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
plpython_params.out Modernize Python exception syntax in tests 2020-01-08 22:47:22 +01:00
plpython_populate.out Convert the existing regression test scripts for the various optional 2005-05-14 17:55:22 +00:00
plpython_quote.out Add PL/Python functions for quoting strings 2011-02-22 23:41:23 +02:00
plpython_record.out PL/Python: Accept strings in functions returning composite types 2012-04-26 21:03:48 +03:00
plpython_schema.out Reduce messages about implicit indexes and sequences to DEBUG1. 2012-07-04 20:35:29 -04:00
plpython_setof.out Adapt python regression tests to 69f4b9c85f. 2017-01-18 16:11:19 -08:00
plpython_spi.out Modernize Python exception syntax in tests 2020-01-08 22:47:22 +01:00
plpython_subtransaction.out Fix subtransaction test for Python 3.10 2021-06-05 07:16:34 +02:00
plpython_test.out Transaction control in PL procedures 2018-01-22 08:43:06 -05:00
plpython_transaction.out Allow committing inside cursor loop 2018-03-28 19:03:26 -04:00
plpython_trigger.out Generated columns 2019-03-30 08:15:57 +01:00
plpython_types.out Modernize Python exception syntax in tests 2020-01-08 22:47:22 +01:00
plpython_types_3.out Mop-up for 3522d0eaba, which missed some alternative output files. 2018-07-22 17:39:02 -07:00
plpython_unicode.out Make plpython_unicode regression test work in more database encodings. 2014-06-03 12:01:54 -04:00
plpython_void.out Enhanced error context support in PL/Python 2009-08-25 12:44:59 +00:00
README Remove support for Python older than 2.6 2020-01-08 22:47:22 +01:00

Guide to alternative expected files:

plpython_error_5.out			Python 3.5 and newer

plpython_unicode.out			server encoding != SQL_ASCII
plpython_unicode_3.out			server encoding == SQL_ASCII

plpython_types_3.out			Python 3.x