From d03e98737c5aec12332bbbaf12abe2e2642048c4 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 24 Jan 1999 05:40:49 +0000 Subject: Replace typtoout() and gettypelem() with a single routine, so that fetching an attribute value needs only one SearchSysCacheTuple call instead of two redundant searches. This speeds up a large SELECT by about ten percent, and probably will help GROUP BY and SELECT DISTINCT too. --- src/include/access/printtup.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/include') diff --git a/src/include/access/printtup.h b/src/include/access/printtup.h index 4b7aa7c2dd..0b4f7b0f04 100644 --- a/src/include/access/printtup.h +++ b/src/include/access/printtup.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: printtup.h,v 1.5 1998/09/01 04:34:22 momjian Exp $ + * $Id: printtup.h,v 1.6 1999/01/24 05:40:46 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -16,11 +16,10 @@ #include #include -extern Oid typtoout(Oid type); +extern int getTypeOutAndElem(Oid type, Oid* typOutput, Oid* typElem); extern void printtup(HeapTuple tuple, TupleDesc typeinfo); extern void showatts(char *name, TupleDesc attinfo); extern void debugtup(HeapTuple tuple, TupleDesc typeinfo); extern void printtup_internal(HeapTuple tuple, TupleDesc typeinfo); -extern Oid gettypelem(Oid type); #endif /* PRINTTUP_H */ -- cgit v1.2.1