summaryrefslogtreecommitdiff
path: root/src/include/utils
diff options
context:
space:
mode:
authorBruce Momjian1999-02-02 03:45:56 +0000
committerBruce Momjian1999-02-02 03:45:56 +0000
commit4390b0bfbe2641ff26a35372184880348a19919e (patch)
tree52ab7a8a528648da52a995b86aac321e6602698f /src/include/utils
parent7fc75517df6b8f70c57b95e879fd9696935c22fd (diff)
Add TEMP tables/indexes. Add COPY pfree(). Other cleanups.
Diffstat (limited to 'src/include/utils')
-rw-r--r--src/include/utils/rel.h8
-rw-r--r--src/include/utils/temprel.h25
2 files changed, 29 insertions, 4 deletions
diff --git a/src/include/utils/rel.h b/src/include/utils/rel.h
index 456b92305c8..3e06e584130 100644
--- a/src/include/utils/rel.h
+++ b/src/include/utils/rel.h
@@ -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 */
diff --git a/src/include/utils/temprel.h b/src/include/utils/temprel.h
new file mode 100644
index 00000000000..135f28c8ad0
--- /dev/null
+++ b/src/include/utils/temprel.h
@@ -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 */
+