diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-12-01 22:10:31 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-12-01 22:10:31 +0000 |
commit | 217d1566bf12c9a6e48b1da1e93e886c4ed618aa (patch) | |
tree | 48869c53c6c15cd4c3076e9b836c2503244b0ce8 /src/include/access | |
parent | f5371feef9ea4af23284c0f56d8a28cbf1de2a7f (diff) | |
download | postgresql-217d1566bf12c9a6e48b1da1e93e886c4ed618aa.tar.gz |
Make tuple receive/print routines TOAST-aware. Formerly, printtup would
leak memory when printing a toasted attribute, and printtup_internal
didn't work at all...
Diffstat (limited to 'src/include/access')
-rw-r--r-- | src/include/access/printtup.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/include/access/printtup.h b/src/include/access/printtup.h index bd5acd13e7..a70a9c35e9 100644 --- a/src/include/access/printtup.h +++ b/src/include/access/printtup.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: printtup.h,v 1.12 2000/01/26 05:57:50 momjian Exp $ + * $Id: printtup.h,v 1.13 2000/12/01 22:10:30 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -16,17 +16,17 @@ #include "tcop/dest.h" -extern DestReceiver *printtup_create_DR(void); +extern DestReceiver *printtup_create_DR(bool isBinary); + extern void showatts(char *name, TupleDesc attinfo); extern void debugtup(HeapTuple tuple, TupleDesc typeinfo, - DestReceiver *self); -extern void printtup_internal(HeapTuple tuple, TupleDesc typeinfo, - DestReceiver *self); + DestReceiver *self); /* XXX this one is really in executor/spi.c */ extern void spi_printtup(HeapTuple tuple, TupleDesc tupdesc, - DestReceiver *self); + DestReceiver *self); -extern int getTypeOutAndElem(Oid type, Oid *typOutput, Oid *typElem); +extern bool getTypeOutputInfo(Oid type, Oid *typOutput, Oid *typElem, + bool *typIsVarlena); #endif /* PRINTTUP_H */ |