Expand description
Read OID alias constants at analysis as the reg* input functions read them: a regclass, regtype, regproc, regprocedure or regnamespace cast of a string literal, or a cast to an array of one of them, stores the OIDs the names resolve to, as parse analysis stores the constant, so a stored expression follows the objects through renames and a name no object has is reported where the expression is analyzed.
Traits§
- OidAlias
Input - A catalog that reads OID alias input: the object a name denotes for one alias type, resolved as the type’s input function resolves it through the search path, with the input function’s errors.
Nonesays the catalog has no such object; the reader then reports the input function’s missing-object error.
Functions§
- check_
statement_ oid_ alias_ constants - The alias input functions at analysis for a statement that runs at once: every
reg*cast of a string literal, nested ones included, must name an object before the statement runs, as parse analysis reads the constant before planning and execution. The plan keeps the written names, which the cast resolves again when it is evaluated, since a statement’s text is analyzed anew each time it runs. - read_
oid_ alias_ constants - Read the OID alias constants of a stored schema expression: each
reg*cast of a string literal becomes the typed constant of the OIDs the names resolve to, so the expression follows the objects through renames, and a name no object has reports the input function’s error. - read_
oid_ alias_ constants_ in_ plan read_oid_alias_constantsover every scalar expression of a stored query, nested ones included: a view stores the OIDs itsreg*constants name.- read_
prepared_ oid_ alias_ constants - Read a prepared statement’s OID alias inputs once. Scalar regclass constants contribute relation dependencies separately; invalidation reads the retained original syntax again. A whole array constant retains its OIDs without becoming scalar relation dependencies.