Skip to content

Commit 887dd04

Browse files
committed
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.
1 parent 883a965 commit 887dd04

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/include/utils/memutils.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
* be summarily denied.
3131
*
3232
* XXX This is deliberately chosen to correspond to the limiting size
33-
* of varlena objects under TOAST. See VARATT_MASK_SIZE in postgres.h.
33+
* of varlena objects under TOAST. See VARSIZE_4B() and related macros
34+
* in postgres.h. Many datatypes assume that any allocatable size can
35+
* be represented in a varlena header.
3436
*
3537
* XXX Also, various places in aset.c assume they can compute twice an
3638
* allocation's size without overflow, so beware of raising this.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy