summaryrefslogtreecommitdiff
path: root/src/include/access
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/access')
-rw-r--r--src/include/access/tuptoaster.h16
1 files changed, 14 insertions, 2 deletions
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 */