pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Loïc TREGOUËT <loic@cri74.org>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: inet type , select distinct troubles
Date: Mon, 22 May 2000 15:22:28 +0200
Message-ID: <39293494.DD7163C1@cri74.org> (raw)

        Hie all ,


    I've a big database ( 2M rows ) and i use the inet type for ip
address .

    for example :

    test=>create table ip_table (i int4 , addr inet );
    CREATE

    The i do a lot of inserts in my database , with Perl/DBI . (Note i
use AutoCommit=off for performance) :

    test=>select count(*) from table_ip ;
    500 000 rows                           //It's normal !

    Then i want to select all the ip @ who are different , so

    test=>select distinct addr from ip_table ;
    192.168.10.10
    192.168.10.10
    ......
    10.10.10.10
    10.10.10.10
    .....
    20000 rows                           //It's not normal !!!!!!

    The given address are fictive but the result have some bugs ? Isn't
it ?

    It seems that the egality test failed ?


                       Any response or suggestions would be apreciate .



loic@cri74.org

Message-ID: <39293494.DD7163C1@cri74.org>
Permalink:  ../39293494.DD7163C1@cri74.org/
Also on:    postgresql.org/message-id/39293494.DD7163C1@cri74.org

 · 

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-admin@postgresql.org
  Cc: loic@cri74.org, pgsql-general@postgresql.org
  Subject: Re: inet type , select distinct troubles
  In-Reply-To: <39293494.DD7163C1@cri74.org>
  References: <39293494.DD7163C1@cri74.org>

* 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