pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: D. Duccini <duccini@backpack.com>
To: Margarit Nickolov <man@digsys.bg>
Cc: pgsql-novice@postgreSQL.org
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [NOVICE] Index scan on CIDR field ?
Date: Wed, 29 Dec 1999 08:52:19 -0600 (CST)
Message-ID: <Pine.GSO.3.96.991229084945.3773A-100000@ra.bpsi.net> (raw)
In-Reply-To: <199912290846.KAA19677@school.digsys.bg>


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!"   
-----------------------------------------------------------------------------





view thread (4+ messages)  latest in thread

Message-ID: <Pine.GSO.3.96.991229084945.3773A-100000@ra.bpsi.net>
Permalink:  ../Pine.GSO.3.96.991229084945.3773A-100000@ra.bpsi.net/
Also on:    postgresql.org/message-id/Pine.GSO.3.96.991229084945.3773A-100000@ra.bpsi.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: duccini@backpack.com, man@digsys.bg, pgsql-novice@postgreSQL.org
  Subject: Re: [NOVICE] Index scan on CIDR field ?
  In-Reply-To: <Pine.GSO.3.96.991229084945.3773A-100000@ra.bpsi.net>
  References: <199912290846.KAA19677@school.digsys.bg> <Pine.GSO.3.96.991229084945.3773A-100000@ra.bpsi.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox