Received: from aravis.cur-archamps.fr (aravis.cur-archamps.fr [195.202.0.99]) by hub.org (8.9.3/8.9.3) with ESMTP id JAA73880; Mon, 22 May 2000 09:23:01 -0400 (EDT) (envelope-from loic@cri74.org) Received: from pc01.cri.cur-archamps.fr (pc01.cri.cur-archamps.fr [10.10.10.2]) by aravis.cur-archamps.fr (8.9.3/8.9.3) with ESMTP id PAA20092; Mon, 22 May 2000 15:22:28 +0200 Received: from cri74.org (localhost [127.0.0.1]) by pc01.cri.cur-archamps.fr (8.9.3/8.9.3) with ESMTP id PAA02659; Mon, 22 May 2000 15:22:28 +0200 Message-ID: <39293494.DD7163C1@cri74.org> Date: Mon, 22 May 2000 15:22:28 +0200 From: =?iso-8859-1?Q?Lo=EFc=20TREGOU=CBT?= X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.13 i686) X-Accept-Language: fr-FR, en MIME-Version: 1.0 To: "pgsql-admin@postgresql.org" , "pgsql-general@postgresql.org" Subject: inet type , select distinct troubles Content-Type: multipart/alternative; boundary="------------F18FBE1F38721DFDD6B36F80" X-Archive-Number: 200005/18 --------------F18FBE1F38721DFDD6B36F80 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 --------------F18FBE1F38721DFDD6B36F80 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit         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
  --------------F18FBE1F38721DFDD6B36F80--