Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 216DD2DF891 for ; Tue, 13 Dec 2011 02:35:30 -0400 (AST) Received: from exprod7og110.obsmtp.com ([64.18.2.173]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RaLxW-0003ue-QU for pgsql-committers@postgresql.org; Tue, 13 Dec 2011 06:35:29 +0000 Received: from mail-ee0-f44.google.com ([74.125.83.44]) (using TLSv1) by exprod7ob110.postini.com ([64.18.6.12]) with SMTP ID DSNKTubyHwINrfYpOQ4WWpEN1+sLWZA5O7z+@postini.com; Mon, 12 Dec 2011 22:35:26 PST Received: by eeke49 with SMTP id e49so1958393eek.3 for ; Mon, 12 Dec 2011 22:35:10 -0800 (PST) Received: by 10.14.15.227 with SMTP id f75mr3789290eef.125.1323758110530; Mon, 12 Dec 2011 22:35:10 -0800 (PST) Received: from [192.168.1.101] (dsl-hkibrasgw2-ff6cc300-200.dhcp.inet.fi. [88.195.108.200]) by mx.google.com with ESMTPS id 53sm85237495eef.2.2011.12.12.22.35.08 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Dec 2011 22:35:09 -0800 (PST) Message-ID: <4EE6F21B.5020508@enterprisedb.com> Date: Tue, 13 Dec 2011 08:35:07 +0200 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fi-FI; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16 MIME-Version: 1.0 To: Andres Freund CC: Tom Lane , pgsql-committers@postgresql.org, Rafael Martinez Subject: Re: pgsql: Revert the behavior of inet/cidr functions to not unpack the arg References: <201112121937.14928.andres@anarazel.de> <23066.1323715681@sss.pgh.pa.us> <201112121955.36976.andres@anarazel.de> In-Reply-To: <201112121955.36976.andres@anarazel.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -4.2 (----) X-Archive-Number: 201112/93 X-Sequence-Number: 46856 On 12.12.2011 20:55, Andres Freund wrote: > On Monday, December 12, 2011 07:48:01 PM Tom Lane wrote: >> Andres Freund writes: >>> On Monday, December 12, 2011 09:29:23 AM Heikki Linnakangas wrote: >>>> Revert the behavior of inet/cidr functions to not unpack the arguments. >>> >>> Whats the plan to handle this wrt a stable release? >> >> I was wondering whether we shouldn't revert the original patch >> altogether in the back branches. As far as I'd heard, there were >> no reports of the previous coding causing real trouble, and this >> episode demonstrates that there is a possibility to make things >> worse rather than better. I think maybe we'd better treat this >> change as something to make in HEAD only. > +1 Zoltan's original complaint was real, and he bumped into it in 9.1 and 9.0. There are few people using these macros in third party code, so I doubt we'll hear many reports either way. The memory leak should be fixed now, and I don't foresee any new issues cropping up, so I'm not inclined to revert it anymore. Within PostgreSQL itself, I couldn't find any more references to these macros. If we do revert, I think we should still leave the DatumGetInetPP() macro in place. It would be identical to DatumGetInetP(), neither would unpack, but DatumGetInetPP() would be the preferred macro to use for that purpose. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com