From 397e9b32a3c2b2c72dcb9cb99cbf2a162aadcb73 Mon Sep 17 00:00:00 2001 From: Jan Wieck Date: Thu, 16 Dec 1999 22:20:03 +0000 Subject: Some changes to prepare for LONG attributes. Jan --- src/include/access/heapam.h | 3 ++- src/include/access/htup.h | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'src/include/access') diff --git a/src/include/access/heapam.h b/src/include/access/heapam.h index 239c3c468e..39da155329 100644 --- a/src/include/access/heapam.h +++ b/src/include/access/heapam.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: heapam.h,v 1.48 1999/11/24 00:44:37 momjian Exp $ + * $Id: heapam.h,v 1.49 1999/12/16 22:19:58 wieck Exp $ * *------------------------------------------------------------------------- */ @@ -281,6 +281,7 @@ extern HeapTuple heap_formtuple(TupleDesc tupleDescriptor, Datum *value, char *nulls); extern HeapTuple heap_modifytuple(HeapTuple tuple, Relation relation, Datum *replValue, char *replNull, char *repl); +extern void heap_freetuple(HeapTuple tuple); HeapTuple heap_addheader(uint32 natts, int structlen, char *structure); /* in common/heap/stats.c */ diff --git a/src/include/access/htup.h b/src/include/access/htup.h index e091208e52..c81dcfd6a8 100644 --- a/src/include/access/htup.h +++ b/src/include/access/htup.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: htup.h,v 1.25 1999/07/19 07:07:28 momjian Exp $ + * $Id: htup.h,v 1.26 1999/12/16 22:19:58 wieck Exp $ * *------------------------------------------------------------------------- */ @@ -78,11 +78,17 @@ extern long heap_sysoffset[]; * updated version of tuple (required by MVCC); * 3. someday someone let tuple to cross block boundaries - * he have to add something below... + * + * Change for 7.0: + * Up to now t_data could be NULL, the memory location directly following + * HeapTupleData or pointing into a buffer. Now, it could also point to + * a separate allocation that was done in the t_datamcxt memory context. */ typedef struct HeapTupleData { uint32 t_len; /* length of *t_data */ ItemPointerData t_self; /* SelfItemPointer */ + MemoryContext t_datamcxt; /* */ HeapTupleHeader t_data; /* */ } HeapTupleData; -- cgit v1.2.1