| От | Tom Lane |
|---|---|
| Тема | Re: [HACKERS] A notice for too long names |
| Дата | |
| Msg-id | 21095.948383705@sss.pgh.pa.us обсуждение |
| Ответ на | Re: [HACKERS] A notice for too long names (Thomas Lockhart <lockhart@alumni.caltech.edu>) |
| Ответы |
Re: [HACKERS] A notice for too long names
|
| Список | pgsql-hackers |
Thomas Lockhart <lockhart@alumni.caltech.edu> writes:
>> Wouldn't it be fair if a notice was generated if you attempt to create
>> and/or reference a name that's longer than NAMEDATALEN.
> Would it be better to throw an elog(ERROR)?
Definitely NOT. Rejecting long identifiers went out with Dartmouth Basic.
The only reason to worry at all is if someone uses two identifiers that
are the same for the first NAMEDATALEN characters --- but if so, he'll
get an error about duplicate column or duplicate table name. I see no
real reason to change the current behavior...
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера