Re: Problem (bug?) with like

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problem (bug?) with like
Дата
Msg-id 2874.1007495539@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Problem (bug?) with like  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: Problem (bug?) with like  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: Problem (bug?) with like  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: Problem (bug?) with like  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-general
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> But what about '%A%' vs. '%AC%'.  Seems the second is reasonably
> different from the first the our optimizer may be fine with that.  Is it
> only when the strings get longer that we lose specificity?

Yeah, I don't think that the estimates are bad for one or two
characters.  But the estimate gets real small real fast as you
increase the number of match characters in the LIKE pattern.
We need to slow that down some.

            regards, tom lane

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

Предыдущее
От: "Paul Laub"
Дата:
Сообщение: Re: BEGIN, ROLLBACK,COMMIT
Следующее
От: Kirk Strauser
Дата:
Сообщение: Grant blanket permissions on a database