blob: aeb88a7bf1139c5fb48839ea7f29d8bec92c6c85 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*-------------------------------------------------------------------------
*
* nodeShareInputScan.h
*
* Portions Copyright (c) 2007-2008, Greenplum inc
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*-------------------------------------------------------------------------
*/
#ifndef NODESHAREINPUTSCAN_H
#define NODESHAREINPUTSCAN_H
#include "nodes/execnodes.h"
#include "executor/nodeMaterial.h"
extern int ExecCountSlotsShareInputScan(ShareInputScan* node);
extern ShareInputScanState *ExecInitShareInputScan(ShareInputScan *node, EState *estate, int eflags);
extern TupleTableSlot *ExecShareInputScan(ShareInputScanState *node);
extern void ExecEndShareInputScan(ShareInputScanState *node);
extern void ExecShareInputScanMarkPos(ShareInputScanState *node);
extern void ExecShareInputScanRestrPos(ShareInputScanState *node);
extern void ExecShareInputScanReScan(ShareInputScanState *node, ExprContext *exprCtxt);
extern void ExecEagerFreeShareInputScan(ShareInputScanState *node);
extern void ExecSliceDependencyShareInputScan(ShareInputScanState *node);
enum {
GPMON_SHAREINPUT_RESTOREPOS = GPMON_QEXEC_M_NODE_START,
GPMON_SHAREINPUT_RESCAN,
GPMON_SHAREINPUT_TOTAL,
};
static inline gpmon_packet_t * GpmonPktFromShareInputState(ShareInputScanState *node)
{
return &node->ss.ps.gpmon_pkt;
}
extern void generate_lock_file_name(char* p, int size, int share_id, const char* name);
#endif /* NODESHAREINPUTSCAN_H */