From loic@cri74.org Tue May 23 07:42:35 2000 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 DAA23793 for ; Tue, 23 May 2000 03:42:35 -0400 (EDT) (envelope-from loic@ext.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 JAA05033 for ; Tue, 23 May 2000 09:42:03 +0200 Received: from ext.cri74.org (localhost [127.0.0.1]) by pc01.cri.cur-archamps.fr (8.9.3/8.9.3) with ESMTP id JAA03696 for ; Tue, 23 May 2000 09:42:03 +0200 Message-ID: <392A364B.1274A042@ext.cri74.org> Date: Tue, 23 May 2000 09:42:03 +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" Subject: select distinct inet bug Content-Type: multipart/alternative; boundary="------------BB14A6C29B12E714DA9430F1" X-Archive-Number: 200005/20 --------------BB14A6C29B12E714DA9430F1 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hie all , I've already post a similar messages but i don't see it into the mailing list so ... Look at the following : test=> create table ip_table (addr inet); CREATE test=> insert into ip_table values ('10.10.10.10'); INSERT 1403913 1 test=> insert into ip_table values ('10.10.10.11'); INSERT 1403914 1 test=> select distinct addr from ip_table ; addr ----------- 10.10.10.10 10.10.10.11 (2 rows) test=> insert into ip_table values ('10.10.10.10'); INSERT 1403915 1 test=> select distinct addr from ip_table ; addr ----------- 10.10.10.10 10.10.10.10 10.10.10.11 (3 rows) ???? I've read there was some bugs with inet type but i have not see it . It seems to appear when i insert a value , after a select distinct and not if i insert without look at the result . Is anybody could help me ? (Postgresql 6.5.2 on a Debian ) Loic loic@ext.cri74.org --------------BB14A6C29B12E714DA9430F1 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit                                         Hie all ,

    I've already post a similar messages but i don't see it into the mailing list so ...
Look at the following :

test=> create table ip_table (addr inet);
CREATE
test=> insert into ip_table values ('10.10.10.10');
INSERT 1403913 1
test=> insert into ip_table values ('10.10.10.11');
INSERT 1403914 1
test=> select distinct addr from ip_table ;
       addr
-----------
10.10.10.10
10.10.10.11
(2 rows)

test=> insert into ip_table values ('10.10.10.10');
INSERT 1403915 1
test=> select distinct addr from ip_table ;
       addr
-----------
10.10.10.10
10.10.10.10
10.10.10.11
(3 rows)
 

????  I've read there was some bugs with inet type but i have not see it .

It seems to appear when i insert a value , after a select distinct and not if i insert without look at the result .

    Is anybody could help me ?  (Postgresql 6.5.2 on a Debian )
 

                                                            Loic
 

                                                                                                loic@ext.cri74.org --------------BB14A6C29B12E714DA9430F1-- From pgman@candle.pha.pa.us Wed May 24 20:45:48 2000 Received: from candle.pha.pa.us (root@s5-03.ppp.op.net [209.152.195.67]) by hub.org (8.9.3/8.9.3) with ESMTP id QAA30967 for ; Wed, 24 May 2000 16:45:48 -0400 (EDT) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id QAA19802; Wed, 24 May 2000 16:42:50 -0400 (EDT) From: Bruce Momjian Message-Id: <200005242042.QAA19802@candle.pha.pa.us> Subject: Re: select distinct inet bug In-Reply-To: <392A364B.1274A042@ext.cri74.org> =?ISO-8859-1?Q?from_Lo=EFc_TREGOU=CBT_at_May_23=2C_2000_09=3A42=3A03_am?= To: =?ISO-8859-1?Q?Lo=EFc_TREGOU=CBT?= Date: Wed, 24 May 2000 16:42:50 -0400 (EDT) CC: "pgsql-admin@postgresql.org" X-Mailer: ELM [version 2.4ME+ PL77 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200005/24 Fixed in PostgreSQL 7.0, which was just released. > Hie all , > > I've already post a similar messages but i don't see it into the > mailing list so ... > Look at the following : > > test=> create table ip_table (addr inet); > CREATE > test=> insert into ip_table values ('10.10.10.10'); > INSERT 1403913 1 > test=> insert into ip_table values ('10.10.10.11'); > INSERT 1403914 1 > test=> select distinct addr from ip_table ; > addr > ----------- > 10.10.10.10 > 10.10.10.11 > (2 rows) > > test=> insert into ip_table values ('10.10.10.10'); > INSERT 1403915 1 > test=> select distinct addr from ip_table ; > addr > ----------- > 10.10.10.10 > 10.10.10.10 > 10.10.10.11 > (3 rows) > > > ???? I've read there was some bugs with inet type but i have not see it > . > > It seems to appear when i insert a value , after a select distinct and > not if i insert without look at the result . > > Is anybody could help me ? (Postgresql 6.5.2 on a Debian ) > > > Loic > > > > loic@ext.cri74.org -- Bruce Momjian | http://www.op.net/~candle pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026