mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
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.
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: nodes.h,v 1.68 2000/05/29 01:59:12 tgl Exp $
|
||||
* $Id: nodes.h,v 1.69 2000/06/18 22:44:31 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -39,13 +39,13 @@ typedef enum NodeTag
|
||||
T_NestLoop,
|
||||
T_MergeJoin,
|
||||
T_HashJoin,
|
||||
T_Noname,
|
||||
T_Noname_XXX, /* not used anymore; this tag# is available */
|
||||
T_Material,
|
||||
T_Sort,
|
||||
T_Agg,
|
||||
T_Unique,
|
||||
T_Hash,
|
||||
T_Choose,
|
||||
T_Choose_XXX, /* not used anymore; this tag# is available */
|
||||
T_Group,
|
||||
T_SubPlan,
|
||||
T_TidScan,
|
||||
@ -261,10 +261,6 @@ typedef struct Node
|
||||
(IsA(jp, Join) || IsA(jp, NestLoop) || \
|
||||
IsA(jp, MergeJoin) || IsA(jp, HashJoin))
|
||||
|
||||
#define IsA_Noname(t) \
|
||||
(IsA(t, Noname) || IsA(t, Material) || IsA(t, Sort) || \
|
||||
IsA(t, Unique))
|
||||
|
||||
#define IsA_Value(t) \
|
||||
(IsA(t, Integer) || IsA(t, Float) || IsA(t, String))
|
||||
|
||||
|
Reference in New Issue
Block a user