Re: BUG #18711: Attempting a connection with a database name longer than 63 characters now fails

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #18711: Attempting a connection with a database name longer than 63 characters now fails
Дата
Msg-id 477092.1732234269@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #18711: Attempting a connection with a database name longer than 63 characters now fails  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-bugs
Bruce Momjian <bruce@momjian.us> writes:
> But the logic doesn't make sense.  Why would two bytes be any different
> than one?  I assumed you would just remove all trailing high-bit bytes
> and stop and the first non-high-bit byte. 

To take the most obvious counterexample: what if the name contains
*only* high-bit-set bytes?  In any case, this logic must achieve
the same effect as the original encoding-aware truncation, which
will not have removed more than it absolutely had to.

            regards, tom lane



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