Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WQz51-0005ki-Bs for pgsql-bugs@arkaria.postgresql.org; Fri, 21 Mar 2014 13:01:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WQz50-0007yK-0b for pgsql-bugs@arkaria.postgresql.org; Fri, 21 Mar 2014 13:01:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WQsmN-0003tZ-2i for pgsql-bugs@postgresql.org; Fri, 21 Mar 2014 06:18:07 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WQsmI-0005Jz-Tq for pgsql-bugs@postgresql.org; Fri, 21 Mar 2014 06:18:06 +0000 MIME-Version: 1.0 Subject: BUG #9652: inet types don't support min/max To: pgsql-bugs@postgresql.org From: darius@dons.net.au Date: Fri, 21 Mar 2014 06:17:35 +0000 Message-ID: <20140321061735.28629.38477@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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