PostgreSQL Source Code  git master
parse_enr.c
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * parse_enr.c
4  * parser support routines dealing with ephemeral named relations
5  *
6  * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994, Regents of the University of California
8  *
9  *
10  * IDENTIFICATION
11  * src/backend/parser/parse_enr.c
12  *
13  *-------------------------------------------------------------------------
14  */
15 #include "postgres.h"
16 
17 #include "parser/parse_enr.h"
18 
19 bool
20 name_matches_visible_ENR(ParseState *pstate, const char *refname)
21 {
22  return (get_visible_ENR_metadata(pstate->p_queryEnv, refname) != NULL);
23 }
24 
26 get_visible_ENR(ParseState *pstate, const char *refname)
27 {
28  return get_visible_ENR_metadata(pstate->p_queryEnv, refname);
29 }
EphemeralNamedRelationMetadata get_visible_ENR(ParseState *pstate, const char *refname)
Definition: parse_enr.c:26
bool name_matches_visible_ENR(ParseState *pstate, const char *refname)
Definition: parse_enr.c:20
EphemeralNamedRelationMetadata get_visible_ENR_metadata(QueryEnvironment *queryEnv, const char *refname)
QueryEnvironment * p_queryEnv
Definition: parse_node.h:239