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

From: Ondrej Ivanič <ondrej(dot)ivanic(at)gmail(dot)com>
To: Chris Angelico <rosuav(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org general" <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 21:48:23
Message-ID: CAM6mieL+TPQh0LFmbg_RyomLpGQD7Jzqgb80c1cha9ki2F1X_A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

On 5 November 2012 08:39, Chris Angelico <rosuav(at)gmail(dot)com> wrote:
> On Sat, Nov 3, 2012 at 9:15 AM, Joe Van Dyk <joe(at)tanga(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.

--
Ondrej Ivanic
(ondrej(dot)ivanic(at)gmail(dot)com)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Nyamul Hassan 2012-11-04 23:28:15 Recover from failed files
Previous Message Chris Angelico 2012-11-04 21:39:07 Re: alter view foo set () -- fixed in 9.2 stable, but when will it be released?