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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Chris Angelico <rosuav(at)gmail(dot)com>
Cc: 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-05 00:10:51
Message-ID: 26953.1352074251@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Chris Angelico <rosuav(at)gmail(dot)com> writes:
> 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)

Just that the former is the general coding style in pg_dump, not the
latter.

pg_dump typically isn't working with long strings in these places, so
I'd be pretty surprised if this was a worthwhile optimization. But if
we were going to do it we should do it throughout pg_dump, not just here.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2012-11-05 04:27:18 Re: About PostgreSQL as developer
Previous Message Chris Angelico 2012-11-04 23:55:12 Re: alter view foo set () -- fixed in 9.2 stable, but when will it be released?