mirror of https://github.com/postgres/postgres
parent
2c29c96ed6
commit
e2aef49694
@ -0,0 +1,46 @@ |
||||
/*-------------------------------------------------------------------------
|
||||
* |
||||
* tuptoaster.c |
||||
* Support routines for external and compressed storage of |
||||
* variable size attributes. |
||||
* |
||||
* Copyright (c) 2000, PostgreSQL Development Team |
||||
* |
||||
* |
||||
* IDENTIFICATION |
||||
* $Header: /cvsroot/pgsql/src/backend/access/heap/tuptoaster.c,v 1.1 1999/12/21 00:06:40 wieck Exp $ |
||||
* |
||||
* |
||||
* INTERFACE ROUTINES |
||||
* heap_tuple_toast_attrs - |
||||
* Try to make a given tuple fit into one page by compressing |
||||
* or moving off attributes |
||||
* |
||||
*------------------------------------------------------------------------- |
||||
*/ |
||||
|
||||
#include "postgres.h" |
||||
|
||||
#include "access/heapam.h" |
||||
#include "access/tuptoaster.h" |
||||
#include "catalog/catalog.h" |
||||
#include "utils/rel.h" |
||||
|
||||
|
||||
#ifdef TUPLE_TOASTER_ACTIVE |
||||
|
||||
void |
||||
heap_tuple_toast_attrs (Relation rel, HeapTuple newtup, HeapTuple oldtup) |
||||
{ |
||||
return; |
||||
} |
||||
|
||||
|
||||
varattrib * |
||||
heap_tuple_untoast_attr (varattrib *attr) |
||||
{ |
||||
elog(ERROR, "heap_tuple_untoast_attr() called"); |
||||
} |
||||
|
||||
|
||||
#endif /* TUPLE_TOASTER_ACTIVE */ |
@ -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 */ |
Loading…
Reference in new issue