Question

If I run a select from a column in PostgreSQL that is of type enum, are the string values of the enum joined in before or after the final result set has been created? An explanation of my motive can be found at http://archives.postgresql.org/pgsql-performance/2008-07/msg00226.php

Was it helpful?

Solution

Internally it uses the OID the whole time. But you can cast that to text at any time.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top