Re: alter view foo set () -- fixed in 9.2 stable, but when will it be released?

From: Chris Angelico <rosuav(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: alter view foo set () -- fixed in 9.2 stable, but when will it be released?
Date: 2012-11-04 23:55:12
Message-ID: CAPTjJmp1vmU=CQye24QfEFJRv3kJVnmu4iMRbxsEdMXDyeqHNQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Nov 5, 2012 at 8:48 AM, Ondrej Ivanič <ondrej(dot)ivanic(at)gmail(dot)com> wrote:
> On 5 November 2012 08:39, Chris Angelico <rosuav(at)gmail(dot)com> wrote:
>> Point of random curiosity: The commit mentioned adds the following line:
>>
>> if (rinfo->reloptions && strlen(rinfo->reloptions) > 0)
>>
>> Is there a reason this isn't done as:
>>
>> if (rinfo->reloptions && *rinfo->reloptions)
>>
>> ? It seems like overkill to ascertain the string length just to find
>> out if the first character is the null terminator.
>
> My guess is to be multibyte encoding safe: UTF-16 or similar.

Oh, is your strlen function not the default C strlen, then? I'd best
not look at out-of-context patches then, heh :)

ChrisA

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2012-11-05 00:10:51 Re: alter view foo set () -- fixed in 9.2 stable, but when will it be released?
Previous Message Nyamul Hassan 2012-11-04 23:28:15 Recover from failed files