From 887dd041a65006deeaf514f78e4a5012dc6f7f7c Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 15 Feb 2011 13:27:03 -0500 Subject: [PATCH] Fix obsolete comment. Comment about MaxAllocSize was not updated when the TOAST-header macros were replaced in 8.3 "varvarlena" changes. Per report from Frederik Ramm. --- src/include/utils/memutils.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/include/utils/memutils.h b/src/include/utils/memutils.h index 5ee533b30d7..7c1202478e5 100644 --- a/src/include/utils/memutils.h +++ b/src/include/utils/memutils.h @@ -30,7 +30,9 @@ * be summarily denied. * * XXX This is deliberately chosen to correspond to the limiting size - * of varlena objects under TOAST. See VARATT_MASK_SIZE in postgres.h. + * of varlena objects under TOAST. See VARSIZE_4B() and related macros + * in postgres.h. Many datatypes assume that any allocatable size can + * be represented in a varlena header. * * XXX Also, various places in aset.c assume they can compute twice an * allocation's size without overflow, so beware of raising this.