Checking The Type Of A Value
The pg_typeof()
function allows you to determine the data type of anything in Postgres.
If you try it on an arbitrary string, it is unable to disambiguate which string type (e.g. text
vs varchar
).
You just have to be a bit more specific.
Last updated