Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wrq0w-0006kV-JB for pgsql-bugs@arkaria.postgresql.org; Tue, 03 Jun 2014 14:48:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wrq0w-0001jZ-0c for pgsql-bugs@arkaria.postgresql.org; Tue, 03 Jun 2014 14:48:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Wrq0v-0001hp-0i; Tue, 03 Jun 2014 14:48:33 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wrq0r-0004CI-1C; Tue, 03 Jun 2014 14:48:31 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id A4AD14F0001; Tue, 3 Jun 2014 16:48:27 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (p5DDC6A0F.dip0.t-ipconnect.de [93.220.106.15]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 8AC354E8003; Tue, 3 Jun 2014 16:48:24 +0200 (CEST) Received: by anarazel.de (Postfix, from userid 1000) id 0C175100901; Tue, 3 Jun 2014 16:48:24 +0200 (CEST) Date: Tue, 3 Jun 2014 16:48:24 +0200 From: Andres Freund To: Tom Lane Cc: Haribabu Kommi , Keith Fiske , Daniel O'Connor , "pgsql-bugs@postgresql.org" , "pgsql-hackers@postgresql.org" Subject: Re: [HACKERS] BUG #9652: inet types don't support min/max Message-ID: <20140603144824.GE1220@awork2.anarazel.de> References: <20140321061735.28629.38477@wrigleys.postgresql.org> <20140603095139.GK24145@awork2.anarazel.de> <12477.1401805486@sss.pgh.pa.us> <20140603142733.GD1220@awork2.anarazel.de> <12773.1401806273@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <12773.1401806273@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) 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 On 2014-06-03 10:37:53 -0400, Tom Lane wrote: > Andres Freund writes: > > On 2014-06-03 10:24:46 -0400, Tom Lane wrote: > >> Personally, I would wonder why the regression tests contain such a query > >> in the first place. It seems like nothing but a major maintenance PITA. > > > I haven't added it, but it seems appropriate in that specific case. The > > number of leakproof functions should be fairly small and every addition > > should be carefully reviewed... I am e.g. not sure that it's a good idea > > to declare network_smaller/greater as leakproof - but it's hard to catch > > that on the basic of pg_proc.h alone. > > Meh. I agree that new leakproof functions should be carefully reviewed, > but I have precisely zero faith that this regression test will contribute > to that. Well, I personally wouldn't have noticed that the OP's patch marked the new functions as leakproof without that test. At least not while looking at the patch. pg_proc.h is just too hard to read. > It hasn't even got a comment saying why changes here should > receive any scrutiny; moreover, it's not in a file where changes would be > likely to excite suspicion. (Probably it should be in opr_sanity, if > we're going to have such a thing at all.) I don't object to moving it there. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs