Re: Table name lengths... - Mailing list pgsql-general

From Tom Lane
Subject Re: Table name lengths...
Date
Msg-id 21797.1062524530@sss.pgh.pa.us
Whole thread Raw
In response to Re: Table name lengths...  (Chris Bowlby <excalibur@hub.org>)
List pgsql-general
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

pgsql-general by date:

Previous
From: Chris Bowlby
Date:
Subject: Re: Table name lengths...
Next
From: Alvaro Herrera
Date:
Subject: Re: Table name lengths...