Skip to main content

Module oid_alias

Module oid_alias 

Source
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§

OidAliasInput
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. None says 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_constants over every scalar expression of a stored query, nested ones included: a view stores the OIDs its reg* 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.