Re: [HACKERS] Incautious handling of overlength identifiers

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Incautious handling of overlength identifiers
Дата
Msg-id 9597.1482779250@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [HACKERS] Incautious handling of overlength identifiers  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> I also admit it didn't occur to me to test the function(s) against
> overlength input when developing it.  I wouldn't object to adding code
> to deal with overlength identifies, but I'm not really sure I would
> choose truncation over reporting an error.  But whatever it'd be, it'd
> be at that level, not at the lower (hash function) level.

Yeah, I'm now convinced that whatever we do about this, if we do anything,
needs to be at a higher code level.  It's not hashname()'s job to prevent
use of overlength names.  I'll go remove the Assert.
        regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] propose to pushdown qual into EXCEPT
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] pg_stat_activity.waiting_start