From 3d3ca010aa7d74f9f88ee7f3659c49dee0dcee6b Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 25 Aug 2000 18:05:54 +0000 Subject: Avoid creating a TOAST table if we can prove that the maximum tuple length is < TOAST_TUPLE_THRESHOLD, even with toastable column types present. For example, CREATE TABLE foo (f1 int, f2 varchar(100)) does not require a toast table, even though varchar is a toastable type. --- src/include/utils/builtins.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/include/utils/builtins.h') diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h index f1ebe40b590..2c42899b1c0 100644 --- a/src/include/utils/builtins.h +++ b/src/include/utils/builtins.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: builtins.h,v 1.134 2000/08/24 03:29:14 tgl Exp $ + * $Id: builtins.h,v 1.135 2000/08/25 18:05:53 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -583,5 +583,6 @@ extern Datum PG_char_to_encoding(PG_FUNCTION_ARGS); /* format_type.c */ extern Datum format_type(PG_FUNCTION_ARGS); extern Datum oidvectortypes(PG_FUNCTION_ARGS); +extern int32 type_maximum_size(Oid type_oid, int32 typemod); #endif /* BUILTINS_H */ -- cgit v1.2.3