pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: Andres Freund <andres@anarazel.de>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@postgresql.org
Cc: Rafael Martinez <r.m.guerrero@usit.uio.no>
Subject: Re: pgsql: Revert the behavior of inet/cidr functions to not unpack the arg
Date: Tue, 13 Dec 2011 08:35:07 +0200
Message-ID: <4EE6F21B.5020508@enterprisedb.com> (raw)
In-Reply-To: <201112121955.36976.andres@anarazel.de>
References: <E1Ra1GF-0004dt-0D@gemulon.postgresql.org>
	<201112121937.14928.andres@anarazel.de>
	<23066.1323715681@sss.pgh.pa.us>
	<201112121955.36976.andres@anarazel.de>

On 12.12.2011 20:55, Andres Freund wrote:
> On Monday, December 12, 2011 07:48:01 PM Tom Lane wrote:
>> Andres Freund<andres@anarazel.de>  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



view thread (11+ messages)  latest in thread

Message-ID: <4EE6F21B.5020508@enterprisedb.com>
Permalink:  ../4EE6F21B.5020508@enterprisedb.com/
Also on:    postgresql.org/message-id/4EE6F21B.5020508@enterprisedb.com

 · 

reply

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-committers@postgresql.org
  Cc: heikki.linnakangas@enterprisedb.com, andres@anarazel.de, tgl@sss.pgh.pa.us, r.m.guerrero@usit.uio.no
  Subject: Re: pgsql: Revert the behavior of inet/cidr functions to not unpack the arg
  In-Reply-To: <4EE6F21B.5020508@enterprisedb.com>
  References: <E1Ra1GF-0004dt-0D@gemulon.postgresql.org> <201112121937.14928.andres@anarazel.de> <23066.1323715681@sss.pgh.pa.us> <201112121955.36976.andres@anarazel.de> <4EE6F21B.5020508@enterprisedb.com>

* 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