mirror of
https://github.com/postgres/postgres.git
synced 2025-10-22 14:32:25 +03:00
Added empty TOASTER files and corrected some minor glitches
in regression tests. Jan
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: htup.h,v 1.26 1999/12/16 22:19:58 wieck Exp $
|
||||
* $Id: htup.h,v 1.27 1999/12/21 00:06:42 wieck Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -125,6 +125,11 @@ typedef HeapTupleData *HeapTuple;
|
||||
#define HEAP_HASNULL 0x0001 /* has null attribute(s) */
|
||||
#define HEAP_HASVARLENA 0x0002 /* has variable length
|
||||
* attribute(s) */
|
||||
#define HEAP_HASEXTERNAL 0x0004 /* has external stored */
|
||||
/* attribute(s) */
|
||||
#define HEAP_HASCOMPRESSED 0x0008 /* has compressed stored */
|
||||
/* attribute(s) */
|
||||
#define HEAP_HASEXTENDED 0x000C /* the two above combined */
|
||||
#define HEAP_XMIN_COMMITTED 0x0100 /* t_xmin committed */
|
||||
#define HEAP_XMIN_INVALID 0x0200 /* t_xmin invalid/aborted */
|
||||
#define HEAP_XMAX_COMMITTED 0x0400 /* t_xmax committed */
|
||||
@@ -144,4 +149,13 @@ typedef HeapTupleData *HeapTuple;
|
||||
#define HeapTupleAllFixed(tuple) \
|
||||
(!(((HeapTuple) (tuple))->t_data->t_infomask & HEAP_HASVARLENA))
|
||||
|
||||
#define HeapTupleHasExternal(tuple) \
|
||||
((((HeapTuple)(tuple))->t_data->t_infomask & HEAP_HASEXTERNAL) != 0)
|
||||
|
||||
#define HeapTupleHasCompressed(tuple) \
|
||||
((((HeapTuple)(tuple))->t_data->t_infomask & HEAP_HASCOMPRESSED) != 0)
|
||||
|
||||
#define HeapTupleHasExtended(tuple) \
|
||||
((((HeapTuple)(tuple))->t_data->t_infomask & HEAP_HASEXTENDED) != 0)
|
||||
|
||||
#endif /* HTUP_H */
|
||||
|
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: tupmacs.h,v 1.11 1999/07/15 15:20:56 momjian Exp $
|
||||
* $Id: tupmacs.h,v 1.12 1999/12/21 00:06:42 wieck Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -88,7 +88,7 @@
|
||||
) \
|
||||
: \
|
||||
( \
|
||||
(cur_offset) + VARSIZE(DatumGetPointer(attval)) \
|
||||
(cur_offset) + VARATT_SIZE(DatumGetPointer(attval)) \
|
||||
) \
|
||||
)
|
||||
|
||||
|
33
src/include/access/tuptoaster.h
Normal file
33
src/include/access/tuptoaster.h
Normal file
@@ -0,0 +1,33 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* tuptoaster.h
|
||||
* POSTGRES definitions for external and compressed storage
|
||||
* of variable size attributes.
|
||||
*
|
||||
* Copyright (c) 2000, PostgreSQL Development Team
|
||||
*
|
||||
* $Id: tuptoaster.h,v 1.1 1999/12/21 00:06:42 wieck Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef TUPTOASTER_H
|
||||
#define TUPTOASTER_H
|
||||
|
||||
#ifdef TUPLE_TOASTER_ACTIVE
|
||||
|
||||
#include "postgres.h"
|
||||
#include "access/heapam.h"
|
||||
#include "access/htup.h"
|
||||
#include "access/tupmacs.h"
|
||||
#include "utils/rel.h"
|
||||
|
||||
|
||||
extern void heap_tuple_toast_attrs(Relation rel,
|
||||
HeapTuple newtup, HeapTuple oldtup);
|
||||
|
||||
extern varattrib *heap_tuple_untoast_attr(varattrib *attr);
|
||||
|
||||
#endif /* TUPLE_TOASTER_ACTIVE */
|
||||
|
||||
|
||||
#endif /* TUPTOASTER_H */
|
Reference in New Issue
Block a user