2017-04-01 06:17:18 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* parse_enr.c
|
|
|
|
* parser support routines dealing with ephemeral named relations
|
|
|
|
*
|
2022-01-08 01:04:57 +01:00
|
|
|
* Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
|
2017-04-01 06:17:18 +02:00
|
|
|
* 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);
|
|
|
|
}
|