PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "access/table.h"
#include "utils/queryenvironment.h"
#include "utils/rel.h"
Go to the source code of this file.
Data Structures | |
struct | QueryEnvironment |
Functions | |
QueryEnvironment * | create_queryEnv (void) |
EphemeralNamedRelationMetadata | get_visible_ENR_metadata (QueryEnvironment *queryEnv, const char *refname) |
void | register_ENR (QueryEnvironment *queryEnv, EphemeralNamedRelation enr) |
void | unregister_ENR (QueryEnvironment *queryEnv, const char *name) |
EphemeralNamedRelation | get_ENR (QueryEnvironment *queryEnv, const char *name) |
TupleDesc | ENRMetadataGetTupDesc (EphemeralNamedRelationMetadata enrmd) |
QueryEnvironment* create_queryEnv | ( | void | ) |
Definition at line 39 of file queryenvironment.c.
References palloc0().
Referenced by SPI_register_relation().
TupleDesc ENRMetadataGetTupDesc | ( | EphemeralNamedRelationMetadata | enrmd | ) |
Definition at line 125 of file queryenvironment.c.
References Assert, InvalidOid, NoLock, RelationData::rd_att, EphemeralNamedRelationMetadataData::reliddesc, table_close(), table_open(), and EphemeralNamedRelationMetadataData::tupdesc.
Referenced by addRangeTableEntryForENR(), and ExecInitNamedTuplestoreScan().
EphemeralNamedRelation get_ENR | ( | QueryEnvironment * | queryEnv, |
const char * | name | ||
) |
Definition at line 96 of file queryenvironment.c.
References Assert, lfirst, EphemeralNamedRelationData::md, name, EphemeralNamedRelationMetadataData::name, and QueryEnvironment::namedRelList.
Referenced by _SPI_find_ENR_by_name(), ExecInitNamedTuplestoreScan(), get_visible_ENR_metadata(), register_ENR(), and unregister_ENR().
EphemeralNamedRelationMetadata get_visible_ENR_metadata | ( | QueryEnvironment * | queryEnv, |
const char * | refname | ||
) |
Definition at line 45 of file queryenvironment.c.
References Assert, get_ENR(), and EphemeralNamedRelationData::md.
Referenced by get_visible_ENR(), and name_matches_visible_ENR().
void register_ENR | ( | QueryEnvironment * | queryEnv, |
EphemeralNamedRelation | enr | ||
) |
Definition at line 69 of file queryenvironment.c.
References Assert, get_ENR(), lappend(), EphemeralNamedRelationData::md, EphemeralNamedRelationMetadataData::name, and QueryEnvironment::namedRelList.
Referenced by SPI_register_relation().
void unregister_ENR | ( | QueryEnvironment * | queryEnv, |
const char * | name | ||
) |
Definition at line 82 of file queryenvironment.c.
References get_ENR(), list_delete(), name, and QueryEnvironment::namedRelList.
Referenced by SPI_unregister_relation().