From: darius@dons.net.au
To: pgsql-bugs@postgresql.org
Subject: BUG #9652: inet types don't support min/max
Date: Fri, 21 Mar 2014 06:17:35 +0000
Message-ID: <20140321061735.28629.38477@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 9652
Logged by: Daniel O'Connor
Email address: darius@dons.net.au
PostgreSQL version: 9.2.7
Operating system: OSX Mavericks
Description:
reclog=> select * from foo;
bar
---------
1.2.3.4
(1 row)
reclog=> select min(bar) from foo;
ERROR: function min(inet) does not exist
LINE 1: select min(bar) from foo;
^
HINT: No function matches the given name and argument types. You might need
to add explicit type casts.
This is surprising to me since the inet type is ordered, hence min/max are
possible.
You also can't cast an inet to an integer or bigint although I guess that
isn't too surprising since v6 addrs are larger than bigints.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: darius@dons.net.au
Subject: Re: BUG #9652: inet types don't support min/max
In-Reply-To: <20140321061735.28629.38477@wrigleys.postgresql.org>
References: <20140321061735.28629.38477@wrigleys.postgresql.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