Re: [GENERAL] select * from table where oid = number;

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [GENERAL] select * from table where oid = number;
Дата
Msg-id 199810082142.RAA26349@candle.pha.pa.us
обсуждение исходный текст
Ответ на select * from table where oid = number;  ("Taral" <taral@mail.utexas.edu>)
Список pgsql-general
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Is there a reason why this occurs?
>
> table=> explain select * from data where oid = 18522;
> NOTICE:  QUERY PLAN:
>
> Seq Scan on data  (cost=0.00 size=0 width=120)
>
> EXPLAIN
>
> I would have expected an index scan or something.

See FAQ.  oid's are not automatically indexed.

--
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026


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

Предыдущее
От: "Jackson, DeJuan"
Дата:
Сообщение: RE: [GENERAL] SELECT Date
Следующее
От: "Jackson, DeJuan"
Дата:
Сообщение: RE: [GENERAL] Row Nums