mirror of
https://github.com/postgres/postgres.git
synced 2025-11-18 02:02:55 +03:00
Add TEMP tables/indexes. Add COPY pfree(). Other cleanups.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: rel.h,v 1.20 1998/09/01 04:39:29 momjian Exp $
|
||||
* $Id: rel.h,v 1.21 1999/02/02 03:45:28 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -49,10 +49,10 @@ typedef struct RelationData
|
||||
File rd_fd; /* open file descriptor */
|
||||
int rd_nblocks; /* number of blocks in rel */
|
||||
uint16 rd_refcnt; /* reference count */
|
||||
bool rd_islocal; /* uses the local buffer mgr */
|
||||
bool rd_myxactonly; /* uses the local buffer mgr */
|
||||
bool rd_isnailed; /* rel is nailed in cache */
|
||||
bool rd_istemp; /* rel is a temp rel */
|
||||
bool rd_tmpunlinked; /* temp rel already unlinked */
|
||||
bool rd_isnoname; /* rel has no name */
|
||||
bool rd_nonameunlinked; /* noname rel already unlinked */
|
||||
Form_pg_am rd_am; /* AM tuple */
|
||||
Form_pg_class rd_rel; /* RELATION tuple */
|
||||
Oid rd_id; /* relations's object id */
|
||||
|
||||
25
src/include/utils/temprel.h
Normal file
25
src/include/utils/temprel.h
Normal file
@@ -0,0 +1,25 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* temprel.h--
|
||||
* Temporary relation functions
|
||||
*
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: temprel.h,v 1.1 1999/02/02 03:45:28 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef TEMPREL_H
|
||||
#define TEMPREL_H
|
||||
|
||||
#include "access/htup.h"
|
||||
#include "access/attnum.h"
|
||||
|
||||
void create_temp_relation(char *relname, HeapTuple pg_class_tuple);
|
||||
void remove_all_temp_relations(void);
|
||||
void remove_temp_relation(Oid relid);
|
||||
HeapTuple get_temp_rel_by_name(char *user_relname);
|
||||
|
||||
#endif /* TEMPREL_H */
|
||||
|
||||
Reference in New Issue
Block a user