From d40dbb7387a50b1319d84cb596a854f1688302db Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 1 Nov 1999 05:06:21 +0000 Subject: Eliminate local inefficiencies in updateTargetListEntry, make_var, and make_const --- don't repeat cache searches that aren't needed. --- src/include/parser/parse_target.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/include/parser/parse_target.h') diff --git a/src/include/parser/parse_target.h b/src/include/parser/parse_target.h index c2babecb76..08cf389d72 100644 --- a/src/include/parser/parse_target.h +++ b/src/include/parser/parse_target.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: parse_target.h,v 1.15 1999/07/19 00:26:18 tgl Exp $ + * $Id: parse_target.h,v 1.16 1999/11/01 05:06:20 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -20,9 +20,11 @@ extern TargetEntry *transformTargetEntry(ParseState *pstate, Node *node, Node *expr, char *colname, bool resjunk); extern void updateTargetListEntry(ParseState *pstate, TargetEntry *tle, - char *colname, List *indirection); + char *colname, int attrno, + List *indirection); extern Node *CoerceTargetExpr(ParseState *pstate, Node *expr, Oid type_id, Oid attrtype); -extern List *makeTargetNames(ParseState *pstate, List *cols); +extern List *checkInsertTargets(ParseState *pstate, List *cols, + List **attrnos); #endif /* PARSE_TARGET_H */ -- cgit v1.2.1