Re: [GENERAL] sequential scan when using bigint value

2004-03-19 Thread Tom Lane
David Garamond <[EMAIL PROTECTED]> writes: > I have a table of 2mil records. The table consists of two columns, id > (BYTEA/GUID, PK) and i (INT, UNIQUE INDEX). Could someone explain why, > when using a bigint value like this: > Postgres immediately switches from index scan to seq scan? Cross-da

Re: [GENERAL] sequential scan when using bigint value

2004-03-19 Thread Bill Moran
David Garamond wrote: I have a table of 2mil records. The table consists of two columns, id (BYTEA/GUID, PK) and i (INT, UNIQUE INDEX). Could someone explain why, when using a bigint value like this: select * from partition where i=30; or select * from partition where i in (1,2,3,300

[GENERAL] sequential scan when using bigint value

2004-03-19 Thread David Garamond
I have a table of 2mil records. The table consists of two columns, id (BYTEA/GUID, PK) and i (INT, UNIQUE INDEX). Could someone explain why, when using a bigint value like this: select * from partition where i=30; or select * from partition where i in (1,2,3,30); Postgres im