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

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: taral(at)mail(dot)utexas(dot)edu (Taral)
Cc: pgsql-general(at)hub(dot)org
Subject: Re: [GENERAL] select * from table where oid = number;
Date: 1998-10-08 21:40:53
Message-ID: 199810082142.RAA26349@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jackson, DeJuan 1998-10-08 21:59:59 RE: [GENERAL] Row Nums
Previous Message Jackson, DeJuan 1998-10-08 21:37:50 RE: [GENERAL] SELECT Date