MCPcopy Create free account
hub / github.com/apache/cloudberry / GetExtTableEntry

Function GetExtTableEntry

src/backend/access/external/external.c:162–174  ·  view source on GitHub ↗

* Get the entry for an exttable relation (from pg_foreign_table) */

Source from the content-addressed store, hash-verified

160 * Get the entry for an exttable relation (from pg_foreign_table)
161 */
162ExtTableEntry*
163GetExtTableEntry(Oid relid)
164{
165 ExtTableEntry *extentry;
166
167 extentry = GetExtTableEntryIfExists(relid);
168 if (!extentry)
169 ereport(ERROR,
170 (errcode(ERRCODE_UNDEFINED_OBJECT),
171 errmsg("missing pg_foreign_table entry for relation \"%s\"",
172 get_rel_name(relid))));
173 return extentry;
174}
175
176/*
177 * Like GetExtTableEntry(Oid), but returns NULL instead of throwing

Callers 9

check_ext_optionsFunction · 0.85
ATExecExpandTableFunction · 0.85
ATExecSetDistributedByFunction · 0.85
getFormatStrFunction · 0.85
parseFormatOptsFunction · 0.85
exttable_GetForeignPathsFunction · 0.85
external_insert_initFunction · 0.85

Calls 4

GetExtTableEntryIfExistsFunction · 0.85
get_rel_nameFunction · 0.85
errcodeFunction · 0.50
errmsgFunction · 0.50

Tested by

no test coverage detected