Re: postgres_fdw hint messages

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: postgres_fdw hint messages
Дата
Msg-id 789102.1662073729@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: postgres_fdw hint messages  (Nathan Bossart <nathandbossart@gmail.com>)
Ответы Re: postgres_fdw hint messages  (Nathan Bossart <nathandbossart@gmail.com>)
Список pgsql-hackers
Nathan Bossart <nathandbossart@gmail.com> writes:
> On Fri, Aug 26, 2022 at 12:35:38PM -0400, Tom Lane wrote:
>> I vote for just dropping all these hints for now, while leaving the
>> door open for anyone who wants to write closest-match-offering code.

> Here is a quickly-hacked-together proof-of-concept for using Levenshtein
> distances to determine which option to include in the hint.  Would
> something like this suffice?  If so, I will work on polishing it up a bit.

Seems reasonable to me, but

(1) there probably needs to be some threshold of closeness, so we don't
offer "foobar" when the user wrote "huh"

(2) there are several places doing this now, and there will no doubt
be more later, so we need to try to abstract the logic so it can be
shared.

            regards, tom lane



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

Предыдущее
От: Junwang Zhao
Дата:
Сообщение: Re: [PATCH v1] fix potential memory leak in untransformRelOptions
Следующее
От: samay sharma
Дата:
Сообщение: Re: [RFC] building postgres with meson - v11