Chris Bowlby <excalibur@hub.org> writes:
> I'm working with an application that needs to be able to determine this
> depending on the version of PostgreSQL that is running. I know what
> anything less then 7.3 was 32 characters and anything newer is currently
> 64, but I'm hoping to be able to check the lengths from my application
> before creating a table/sequence/index, etc..
I'd do
SELECT 1 AS "some really long string here";
and see how many characters come back in the column title ...
regards, tom lane