Index scan on CIDR field ?
Index scan on CIDR field ?
От:
Margarit Nickolov <man@digsys.bg>
Дата:
I created index on CIDR field on table with about 1 000 000 rows, made 'vacuum analyze', but exlain told me that sequental scan is doneon query like that SELECT * FROM table WHERE ipaddr='212.129.92.1' I'm using PostgreSQL 6.5.1. I need a index scan. Do I miss something ? Margarit.
Re: [NOVICE] Index scan on CIDR field ?
От:
"D. Duccini" <duccini@backpack.com>
Дата:
did you create an index? create index_name on tablename (row_name); you would also get one automatically if when you created the table you'd made that row a PRIMARY KEY -duck On Wed, 29 Dec 1999, Margarit Nickolov wrote: > I created index on CIDR field on table with about 1 000 000 rows, made > 'vacuum analyze', but exlain told me that sequental scan is done > on query like that SELECT * FROM table WHERE ipaddr='212.129.92.1' > > I'm using PostgreSQL 6.5.1. I need a index scan. Do I miss something ? > Margarit. > > > ************ > ----------------------------------------------------------------------------- david@backpack.com BackPack Software, Inc. www.backpack.com +1 651.645.7550 voice "Life is an Adventure. +1 651.645.9798 fax Don't forget your BackPack!" -----------------------------------------------------------------------------