1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-29 10:41:53 +03:00

Avoid redundant SysCache searches in coerce_type, for another

few percent speedup in INSERT...
This commit is contained in:
Tom Lane
1999-05-29 03:17:20 +00:00
parent b325dab67a
commit 1bdd7c68c0
4 changed files with 24 additions and 37 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_target.c,v 1.40 1999/05/25 16:10:21 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_target.c,v 1.41 1999/05/29 03:17:20 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -241,7 +241,7 @@ MakeTargetEntryExpr(ParseState *pstate,
Oid typelem;
if (arrayRef && !(((A_Indices *) lfirst(arrayRef))->lidx))
typelem = typeidTypElem(attrtype);
typelem = typeTypElem(typeidType(attrtype));
else
typelem = attrtype;