From 57d8080a40f51e1ff9eedea602e96e2612161d77 Mon Sep 17 00:00:00 2001 From: Jan Wieck Date: Mon, 3 Jul 2000 23:10:14 +0000 Subject: TOAST WARNING: This is actually broken - we have self-deadlocks due to concurrent changes in buffer management. Vadim and me are working on it. Jan --- src/include/access/tuptoaster.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/include/access') diff --git a/src/include/access/tuptoaster.h b/src/include/access/tuptoaster.h index 9c4f1a50578..024bb1de914 100644 --- a/src/include/access/tuptoaster.h +++ b/src/include/access/tuptoaster.h @@ -6,7 +6,7 @@ * * Copyright (c) 2000, PostgreSQL Development Team * - * $Id: tuptoaster.h,v 1.2 2000/04/12 17:16:26 momjian Exp $ + * $Id: tuptoaster.h,v 1.3 2000/07/03 23:09:58 wieck Exp $ * *------------------------------------------------------------------------- */ @@ -22,11 +22,23 @@ #include "utils/rel.h" +#define TOAST_MAX_CHUNK_SIZE ((MaxTupleSize - \ + MAXALIGN( \ + MAXALIGN(offsetof(HeapTupleHeaderData, t_bits)) + \ + MAXALIGN(sizeof(Oid)) + \ + MAXALIGN(sizeof(int32)) + \ + MAXALIGN(VARHDRSZ))) / 4) + + extern void heap_tuple_toast_attrs(Relation rel, - HeapTuple newtup, HeapTuple oldtup); + HeapTuple newtup, HeapTuple oldtup); extern varattrib *heap_tuple_untoast_attr(varattrib * attr); +extern void heap_create_toast_table(Oid new_reloid, + TupleDesc new_tupdesc, bool istemp); + + #endif /* TUPLE_TOASTER_ACTIVE */ -- cgit v1.2.3