pg.ddx.io pgsql-bugs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
BUG #7832: incorrect summation of ipv6 addresses 2+ messages / 2 participants [nested] [flat]
* BUG #7832: incorrect summation of ipv6 addresses @ 2013-01-28 12:58 shuklin@selectel.ru 2013-01-28 16:09 ` Re: BUG #7832: incorrect summation of ipv6 addresses Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 1 reply; 2+ messages in thread From: shuklin@selectel.ru @ 2013-01-28 12:58 UTC (permalink / raw) To: pgsql-bugs The following bug has been logged on the website: Bug reference: 7832 Logged by: George Shuklin Email address: shuklin@selectel.ru PostgreSQL version: 9.1.0 Operating system: GNU/Debian Linux Wheezy Description: Normal summation: SELECT cidr'0::1/128'+1; ?column? ---------- ::2 SELECT cidr'0::1/128'+65535; ?column? ----------- ::0.1.0.0 (strange dots in the middle of the ipv6 address). -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #7832: incorrect summation of ipv6 addresses 2013-01-28 12:58 BUG #7832: incorrect summation of ipv6 addresses shuklin@selectel.ru @ 2013-01-28 16:09 ` Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2013-01-28 16:09 UTC (permalink / raw) To: shuklin@selectel.ru; +Cc: pgsql-bugs shuklin@selectel.ru writes: > SELECT cidr'0::1/128'+65535; > ?column? > ----------- > ::0.1.0.0 > (strange dots in the middle of the ipv6 address). The code in inet_net_ntop_ipv6 (which we got from the BIND project, we didn't invent it ourselves) appears to believe that values in this range should be printed in encapsulated-IPv4 format. Unless you can cite chapter and verse why that's wrong, I'm disinclined to change it. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2013-01-28 16:09 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2013-01-28 12:58 BUG #7832: incorrect summation of ipv6 addresses shuklin@selectel.ru 2013-01-28 16:09 ` Tom Lane <tgl@sss.pgh.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