Question: what is regclass in postgresql?
Answer: Explanation: ::regclass is a cast, like ::integer . regclass is a "magic" data type; it's actually an alias for oid , or "object identifier". See Object identifier types in the documentation. Casting to regclass is a shortcut way of saying "this the name of a relation, please convert it to the oid of that relation".