postgresql/src/backend
Tom Lane 09b3d27256 Allow record_in() and record_recv() to work for transient record types.
If we have the typmod that identifies a registered record type, there's no
reason that record_in() should refuse to perform input conversion for it.
Now, in direct SQL usage, record_in() will always be passed typmod = -1
with type OID RECORDOID, because no typmodin exists for type RECORD, so the
case can't arise.  However, some InputFunctionCall users such as PLs may be
able to supply the right typmod, so we should allow this to support them.

Note: the previous coding and comment here predate commit 59c016aa9f.
There has been no case since 8.1 in which the passed type OID wouldn't be
valid; and if it weren't, this error message wouldn't be apropos anyway.
Better to let lookup_rowtype_tupdesc complain about it.

Back-patch to 9.1, as this is necessary for my upcoming plpython fix.
I'm committing it separately just to make it a bit more visible in the
commit history.
2015-08-21 11:19:33 -04:00
..
access Don't use function definitions looking like old-style ones. 2015-08-15 17:25:00 +02:00
bootstrap pgindent run for 9.5 2015-05-23 21:35:49 -04:00
catalog Allow pg_create_physical_replication_slot() to reserve WAL. 2015-08-11 12:34:31 +02:00
commands Rename 'cmd' to 'cmd_name' in CreatePolicyStmt 2015-08-21 08:22:22 -04:00
executor Fix bug in calculations of hash join buckets. 2015-08-19 08:20:55 -05:00
foreign Code review for foreign/custom join pushdown patch. 2015-05-10 14:36:36 -04:00
lib Rely on inline functions even if that causes warnings in older compilers. 2015-08-05 18:19:52 +02:00
libpq Fix incorrect order of lock file removal and failure to close() sockets. 2015-08-02 14:55:03 -04:00
main Revoke support for strxfrm() that write past the specified array length. 2015-07-08 20:44:21 -04:00
nodes Rename 'cmd' to 'cmd_name' in CreatePolicyStmt 2015-08-21 08:22:22 -04:00
optimizer Undo mistaken tightening in join_is_legal(). 2015-08-12 21:19:03 -04:00
parser Rename 'cmd' to 'cmd_name' in CreatePolicyStmt 2015-08-21 08:22:22 -04:00
po Translation updates 2015-06-28 23:56:55 -04:00
port Rely on inline functions even if that causes warnings in older compilers. 2015-08-05 18:19:52 +02:00
postmaster Fix incorrect order of lock file removal and failure to close() sockets. 2015-08-02 14:55:03 -04:00
regex Fix some possible low-memory failures in regexp compilation. 2015-08-12 00:48:11 -04:00
replication Don't use function definitions looking like old-style ones. 2015-08-15 17:25:00 +02:00
rewrite RLS: Keep deny policy when only restrictive exist 2015-08-03 15:32:49 -04:00
snowball Remove no-longer-required function declarations. 2015-05-24 12:20:23 -04:00
storage Don't use function definitions looking like old-style ones. 2015-08-15 17:25:00 +02:00
tcop Add ALTER OPERATOR command, for changing selectivity estimator functions. 2015-07-14 18:17:55 +03:00
tsearch pgindent run for 9.5 2015-05-23 21:35:49 -04:00
utils Allow record_in() and record_recv() to work for transient record types. 2015-08-21 11:19:33 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
Makefile AIX: Link the postgres executable with -Wl,-brtllib. 2015-07-15 21:00:26 -04:00
nls.mk Translation updates 2015-02-01 23:23:40 -05:00