summaryrefslogtreecommitdiffstats
path: root/src/backend/parser/parse_enr.c
blob: c215dcaa05719786edcf15569d4f44b781dd8366 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*-------------------------------------------------------------------------
 *
 * parse_enr.c
 *	  parser support routines dealing with ephemeral named relations
 *
 * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
 * Portions Copyright (c) 1994, Regents of the University of California
 *
 *
 * IDENTIFICATION
 *	  src/backend/parser/parse_enr.c
 *
 *-------------------------------------------------------------------------
 */
#include "postgres.h"

#include "parser/parse_enr.h"

bool
name_matches_visible_ENR(ParseState *pstate, const char *refname)
{
	return (get_visible_ENR_metadata(pstate->p_queryEnv, refname) != NULL);
}

EphemeralNamedRelationMetadata
get_visible_ENR(ParseState *pstate, const char *refname)
{
	return get_visible_ENR_metadata(pstate->p_queryEnv, refname);
}