mirror of
https://github.com/postgres/postgres.git
synced 2025-10-24 01:29:19 +03:00
Fix to prevent too large tuple from being created.
This commit is contained in:
@@ -6,14 +6,14 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: htup.h,v 1.16 1999/05/25 22:42:32 momjian Exp $
|
||||
* $Id: htup.h,v 1.17 1999/07/03 00:32:55 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef HTUP_H
|
||||
#define HTUP_H
|
||||
|
||||
#include <utils/nabstime.h>
|
||||
#include <storage/bufpage.h>
|
||||
#include <storage/itemptr.h>
|
||||
|
||||
#define MinHeapTupleBitmapSize 32 /* 8 * 4 */
|
||||
@@ -52,6 +52,11 @@ typedef struct HeapTupleHeaderData
|
||||
|
||||
typedef HeapTupleHeaderData *HeapTupleHeader;
|
||||
|
||||
#define MinTupleSize (sizeof (PageHeaderData) + \
|
||||
sizeof(HeapTupleHeaderData) + sizeof(int4))
|
||||
|
||||
#define MaxTupleSize (BLCKSZ/2 - MinTupleSize)
|
||||
|
||||
#define SelfItemPointerAttributeNumber (-1)
|
||||
#define ObjectIdAttributeNumber (-2)
|
||||
#define MinTransactionIdAttributeNumber (-3)
|
||||
|
||||
Reference in New Issue
Block a user