Re: Table name lengths...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Table name lengths...
Дата
Msg-id 21797.1062524530@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Table name lengths...  (Chris Bowlby <excalibur@hub.org>)
Список 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 по дате отправления:

Предыдущее
От: Chris Bowlby
Дата:
Сообщение: Re: Table name lengths...
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Table name lengths...