mirror of
https://github.com/postgres/postgres.git
synced 2025-05-05 09:19:17 +03:00
30 lines
811 B
C
30 lines
811 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* parse_enr.c
|
|
* parser support routines dealing with ephemeral named relations
|
|
*
|
|
* Portions Copyright (c) 1996-2019, 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);
|
|
}
|