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

Function specialAttNum

src/backend/parser/parse_relation.c:3765–3774  ·  view source on GitHub ↗

specialAttNum() * * Check attribute name to see if it is "special", e.g. "xmin". * - thomas 2000-02-07 * * Note: this only discovers whether the name could be a system attribute. * Caller needs to ensure that it really is an attribute of the rel. */

Source from the content-addressed store, hash-verified

3763 * Caller needs to ensure that it really is an attribute of the rel.
3764 */
3765static int
3766specialAttNum(const char *attname)
3767{
3768 const FormData_pg_attribute *sysatt;
3769
3770 sysatt = SystemAttributeByName(attname);
3771 if (sysatt != NULL)
3772 return sysatt->attnum;
3773 return InvalidAttrNumber;
3774}
3775
3776
3777/*

Callers 2

scanRTEForColumnFunction · 0.85
attnameAttNumFunction · 0.85

Calls 1

SystemAttributeByNameFunction · 0.85

Tested by

no test coverage detected