postgresql/src/backend
Tom Lane f2ae044bab 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:58 -04:00
..
access Reuse all-zero pages in GIN. 2015-07-27 12:33:13 +03:00
bootstrap Fix off-by-one loop count in MapArrayTypeName, and get rid of static array. 2014-12-16 15:35:46 -05:00
catalog Rename pg_shdepend.c's typedef "objectType" to SharedDependencyObjectType. 2015-05-24 13:03:45 -04:00
commands Fix incorrect checking of deferred exclusion constraint after a HOT update. 2015-05-11 12:25:28 -04:00
executor Avoid some zero-divide hazards in the planner. 2015-07-30 12:11:23 -04:00
foreign deflist_to_tuplestore dumped core on an option with no value. 2011-09-13 11:36:53 -04:00
lib Remove tabs after spaces in C comments 2014-05-06 11:26:26 -04:00
libpq Back-patch libpq support for TLS versions beyond v1. 2015-05-21 20:41:55 -04:00
main Report more information if pg_perm_setlocale() fails at startup. 2015-06-09 13:37:08 -04:00
nodes Avoid core dump in _outPathInfo() for Path without a parent RelOptInfo. 2014-10-17 22:33:14 -04:00
optimizer Use fuzzy path cost tiebreaking rule in our oldest supported branches. 2015-08-15 11:02:33 -04:00
parser Remove spurious semicolons. 2015-03-31 15:21:16 +03:00
po Translation updates 2015-05-18 08:51:06 -04:00
port Fix spinlock implementation for some !solaris sparc platforms. 2014-09-09 23:45:07 +02:00
postmaster Fix incorrect order of lock file removal and failure to close() sockets. 2015-08-02 14:54:44 -04:00
regex Fix some possible low-memory failures in regexp compilation. 2015-08-12 00:48:48 -04:00
replication Truncate strings in tarCreateHeader() with strlcpy(), not sprintf(). 2015-06-21 20:05:35 -04:00
rewrite Add some errdetail to checkRuleResultList(). 2014-07-02 14:20:44 -04:00
snowball Fix ancient encoding error in hungarian.stop. 2014-06-10 22:48:52 -04:00
storage Reduce chatter from signaling of autovacuum workers. 2015-07-28 17:34:00 -04:00
tcop Be more careful to not lose sync in the FE/BE protocol. 2015-02-02 17:09:31 +02:00
tsearch Cope with more than 64K phrases in a thesaurus dictionary. 2014-11-06 20:53:02 -05:00
utils Allow record_in() and record_recv() to work for transient record types. 2015-08-21 11:19:58 -04:00
.gitignore Add gitignore for mingw/cygwin build outputs 2011-06-09 18:11:47 +02:00
common.mk Workaround for recursive make breakage 2011-01-13 09:32:06 +02:00
Makefile AIX: Link the postgres executable with -Wl,-brtllib. 2015-07-15 21:00:31 -04:00
nls.mk Translation updates 2013-02-03 23:58:38 -05:00