Re: Why sequential scan for currval?

Поиск
Список
Период
Сортировка
От John Barham
Тема Re: Why sequential scan for currval?
Дата
Msg-id 4f34febc05042700323fa02243@mail.gmail.com
обсуждение исходный текст
Ответ на Why sequential scan for currval?  (John Barham <jbarham@gmail.com>)
Список pgsql-general
> test=# explain select s from tt where id = currval('tt_id_key');
>                       QUERY PLAN
> ------------------------------------------------------
>  Seq Scan on tt  (cost=0.00..1734.42 rows=1 width=32)
>    Filter: (id = currval('tt_id_key'::text))
> (2 rows)

should be:

test=# explain select s from tt where id = currval('tt_id_seq'); --
tt_id_seq vs. tt_id_key
                      QUERY PLAN
------------------------------------------------------
 Seq Scan on tt  (cost=0.00..1734.42 rows=1 width=32)
   Filter: (id = currval('tt_id_seq'::text))
(2 rows)

but the question still holds.

  John

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

Предыдущее
От: John Barham
Дата:
Сообщение: Why sequential scan for currval?
Следующее
От: Chris Green
Дата:
Сообщение: Re: www.thekompany.com rekall