Re: PostgreSQL does CAST implicitely between int andadomain derived from int

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: PostgreSQL does CAST implicitely between int andadomain derived from int
Дата
Msg-id 4A96575C020000250002A3F9@gw.wicourts.gov
обсуждение исходный текст
Ответ на Re: PostgreSQL does CAST implicitely between int and adomain derived from int  (Jean-Michel Pouré <jm@poure.com>)
Ответы Re: PostgreSQL does CAST implicitely between int andadomain derived from int
Список pgsql-performance
Jean-Michel Pouré<jm@poure.com> wrote:

> ... Index Cond: ((tid)::integer = 3)

> ... Index Cond: ((n.vid)::integer = (tn.vid)::integer)

> ... Index Cond: ((ncs.nid)::integer = n.nid)

>  Total runtime: 0.092 ms

Sorry, but I just had to point that out.
I feel much better now.  ;-)

> Does it mean my index is broken and should be rebuilt?

No, probably not.

Just to get another data point, what happens if you run the same query
without taking the index out of the picture, but without the LIMIT or
OFFSET clauses?  An EXPLAIN ANALYZE of that would help understand it
more fully.

-Kevin

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

Предыдущее
От: Jean-Michel Pouré
Дата:
Сообщение: Re: PostgreSQL does CAST implicitely between int and adomain derived from int
Следующее
От: Jean-Michel Pouré
Дата:
Сообщение: Re: PostgreSQL does CAST implicitely between int andadomain derived from int