pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
select distinct inet bug
2+ messages / 2 participants
[nested] [flat]

* select distinct inet bug
@ 2000-05-23 07:42  Loïc TREGOUËT <loic@cri74.org>
  0 siblings, 1 reply; 2+ messages in thread

From: Loïc TREGOUËT @ 2000-05-23 07:42 UTC (permalink / raw)
  To: pgsql-admin

                                        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

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: select distinct inet bug
@ 2000-05-24 20:42  Bruce Momjian <pgman@candle.pha.pa.us>
  parent: Loïc TREGOUËT <loic@cri74.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Bruce Momjian @ 2000-05-24 20:42 UTC (permalink / raw)
  To: Loïc TREGOUËT <loic@cri74.org>; +Cc: pgsql-admin

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2000-05-24 20:42 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-05-23 07:42 select distinct inet bug Loïc TREGOUËT <loic@cri74.org>
2000-05-24 20:42 ` Bruce Momjian <pgman@candle.pha.pa.us>

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