Skip to content

Commit 18cdf59

Browse files
Fix obsolete references to postgres.h in comments.
Oversights in commits d08741e and d952373. Reviewed-by: Chao Li <[email protected]> Discussion: https://postgr.es/m/aMxbfSJ2wLWd32x-%40nathan
1 parent ac7c8e4 commit 18cdf59

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/include/access/htup_details.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ BITMAPLEN(int NATTS)
634634
* MaxAttrSize is a somewhat arbitrary upper limit on the declared size of
635635
* data fields of char(n) and similar types. It need not have anything
636636
* directly to do with the *actual* upper limit of varlena values, which
637-
* is currently 1Gb (see TOAST structures in postgres.h). I've set it
637+
* is currently 1Gb (see TOAST structures in varatt.h). I've set it
638638
* at 10Mb which seems like a reasonable number --- tgl 8/6/00.
639639
*/
640640
#define MaxAttrSize (10 * 1024 * 1024)

src/include/c.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ typedef uint32 CommandId;
659659
* representation is no longer convenient. It's recommended that code always
660660
* use macros VARDATA_ANY, VARSIZE_ANY, VARSIZE_ANY_EXHDR, VARDATA, VARSIZE,
661661
* and SET_VARSIZE instead of relying on direct mentions of the struct fields.
662-
* See postgres.h for details of the TOASTed form.
662+
* See varatt.h for details of the TOASTed form.
663663
* ----------------
664664
*/
665665
struct varlena

src/include/utils/expandeddatum.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ typedef struct ExpandedObjectMethods
9595
* But note that these pointers are just a convenience; a pointer object
9696
* appearing somewhere else would still be legal.
9797
*
98-
* The typedef declaration for this appears in postgres.h.
98+
* The typedef declaration for this appears in varatt.h.
9999
*/
100100
struct ExpandedObjectHeader
101101
{

src/include/utils/memutils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*
3131
* palloc() enforces MaxAllocSize, chosen to correspond to the limiting size
3232
* of varlena objects under TOAST. See VARSIZE_4B() and related macros in
33-
* postgres.h. Many datatypes assume that any allocatable size can be
33+
* varatt.h. Many datatypes assume that any allocatable size can be
3434
* represented in a varlena header. This limit also permits a caller to use
3535
* an "int" variable for an index into or length of an allocation. Callers
3636
* careful to avoid these hazards can access the higher limit with

src/include/utils/varbit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "fmgr.h"
2121

2222
/*
23-
* Modeled on struct varlena from postgres.h, but data type is bits8.
23+
* Modeled on struct varlena from c.h, but data type is bits8.
2424
*
2525
* Caution: if bit_len is not a multiple of BITS_PER_BYTE, the low-order
2626
* bits of the last byte of bit_dat[] are unused and MUST be zeroes.

0 commit comments

Comments
 (0)