summaryrefslogtreecommitdiff
path: root/src/include/optimizer/internal.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-06-18 22:44:35 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-06-18 22:44:35 +0000
commit1ee26b776475155ad1fb00fa3ed0a93659ffadad (patch)
tree1f2c7a59a1fdf3fe3eb62cf5044c5c6c21f77d12 /src/include/optimizer/internal.h
parent2c0edb3c8677831d836fc44eb58ebecb73f747af (diff)
Reimplement nodeMaterial to use a temporary BufFile (or even memory, if the
materialized tupleset is small enough) instead of a temporary relation. This was something I was thinking of doing anyway for performance, and Jan says he needs it for TOAST because he doesn't want to cope with toasting noname relations. With this change, the 'noname table' support in heap.c is dead code, and I have accordingly removed it. Also clean up 'noname' plan handling in planner --- nonames are either sort or materialize plans, and it seems less confusing to handle them separately under those names.
Diffstat (limited to 'src/include/optimizer/internal.h')
-rw-r--r--src/include/optimizer/internal.h54
1 files changed, 0 insertions, 54 deletions
diff --git a/src/include/optimizer/internal.h b/src/include/optimizer/internal.h
deleted file mode 100644
index e9b0c8e4bc1..00000000000
--- a/src/include/optimizer/internal.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/*-------------------------------------------------------------------------
- *
- * internal.h
- * Definitions required throughout the query optimizer.
- *
- *
- * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
- * Portions Copyright (c) 1994, Regents of the University of California
- *
- * $Id: internal.h,v 1.27 2000/06/15 03:32:51 momjian Exp $
- *
- *-------------------------------------------------------------------------
- */
-#ifndef INTERNAL_H
-#define INTERNAL_H
-
-/*
- * ---------- SHARED MACROS
- *
- * Macros common to modules for creating, accessing, and modifying
- * query tree and query plan components.
- * Shared with the executor.
- *
- */
-
-
-/*
- * Size estimates
- *
- */
-
-/* The cost of sequentially scanning a materialized temporary relation
- */
-#define _NONAME_SCAN_COST_ 10
-
-/* The number of pages and tuples in a materialized relation
- */
-#define _NONAME_RELATION_PAGES_ 1
-#define _NONAME_RELATION_TUPLES_ 10
-
-/* The length of a variable-length field in bytes (stupid estimate...)
- */
-#define _DEFAULT_ATTRIBUTE_WIDTH_ 12
-
-/*
- * Flags and identifiers
- *
- */
-
-/* Identifier for (sort) temp relations */
-/* used to be -1 */
-#define _NONAME_RELATION_ID_ InvalidOid
-
-#endif /* INTERNAL_H */