From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | excalibur(at)hub(dot)org |
Cc: | Richard Huxton <dev(at)archonet(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Table name lengths... |
Date: | 2003-09-02 17:42:10 |
Message-ID: | 21797.1062524530@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Chris Bowlby <excalibur(at)hub(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Greg Stark | 2003-09-02 17:46:13 | Re: Any way to Convince postgres to push join clause inside subquery aggregate? |
Previous Message | Ron Johnson | 2003-09-02 17:36:49 | Re: Table name lengths... |