aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/builtins.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-08-25 18:05:54 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-08-25 18:05:54 +0000
commit3d3ca010aa7d74f9f88ee7f3659c49dee0dcee6b (patch)
tree53f7897823e6e525a6e83d708948ab01ec152b95 /src/include/utils/builtins.h
parenta5da56d320970e76687f3d73e930952d5a8c87f2 (diff)
downloadpostgresql-3d3ca010aa7d74f9f88ee7f3659c49dee0dcee6b.tar.gz
postgresql-3d3ca010aa7d74f9f88ee7f3659c49dee0dcee6b.zip
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.
Diffstat (limited to 'src/include/utils/builtins.h')
-rw-r--r--src/include/utils/builtins.h3
1 files changed, 2 insertions, 1 deletions
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 */