Skip to content

Commit 0453a99

Browse files
committed
Put back blessing of record-function tupledesc, which I removed in a
fit of over-optimization.
1 parent 939712e commit 0453a99

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/backend/executor/nodeFunctionscan.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/executor/nodeFunctionscan.c,v 1.32 2005/03/31 22:46:08 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/executor/nodeFunctionscan.c,v 1.33 2005/04/14 22:09:40 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -211,6 +211,13 @@ ExecInitFunctionScan(FunctionScan *node, EState *estate)
211211
elog(ERROR, "function in FROM has unsupported return type");
212212
}
213213

214+
/*
215+
* For RECORD results, make sure a typmod has been assigned. (The
216+
* function should do this for itself, but let's cover things in case
217+
* it doesn't.)
218+
*/
219+
BlessTupleDesc(tupdesc);
220+
214221
scanstate->tupdesc = tupdesc;
215222
ExecSetSlotDescriptor(scanstate->ss.ss_ScanTupleSlot,
216223
tupdesc, false);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy