The Keyword NULL in Cast Expressions
Cast expressions can appear in the projection list, including expressions
of the form NULL::datatype, where datatype is
any data type known to the database:
SELECT newtable.col0, null::int FROM newtable;
The keyword NULL has a global scope of reference within expressions. In SQL, the keyword NULL is the only syntactic mechanism for accessing a NULL value. Any attempt to redefine or restrict the global scope of the keyword NULL (for example, declaring an SPL variable called null) disables any cast expression that involves a NULL value. Make sure that the keyword NULL receives its global scope in all expression contexts.