Re: psql: Greatly speed up "\d tablename" when not using regexes

Поиск
Список
Период
Сортировка
От Greg Sabino Mullane
Тема Re: psql: Greatly speed up "\d tablename" when not using regexes
Дата
Msg-id CAKAnmmK3Y=pv3ZimxmMT8RGBicBaJVfcmhh6u1rc5Y11kZhiFw@mail.gmail.com
обсуждение исходный текст
Ответ на [MASSMAIL]psql: Greatly speed up "\d tablename" when not using regexes  (Jelte Fennema-Nio <postgres@jeltef.nl>)
Список pgsql-hackers
Patch looks good to me. Great idea overall, that forced regex has always bugged me.

+       char       *regexChars = "|*+?()[]{}.^$\\";

One super minor optimization is that we technically do not need to scan for ')' and ']'. If they appear without their partner, the query will fail anyway. :)
Cheers,
Greg

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Table AM Interface Enhancements
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Issue with the PRNG used by Postgres