Re: bootstrap pg_shseclabel in relcache initialization - Mailing list pgsql-hackers

From Tom Lane
Subject Re: bootstrap pg_shseclabel in relcache initialization
Date
Msg-id 17980.1447180417@sss.pgh.pa.us
Whole thread Raw
In response to Re: bootstrap pg_shseclabel in relcache initialization  (Adam Brightwell <adam.brightwell@crunchydata.com>)
Responses Re: bootstrap pg_shseclabel in relcache initialization
List pgsql-hackers
Adam Brightwell <adam.brightwell@crunchydata.com> writes:
> On Tue, Nov 10, 2015 at 9:18 AM, Adam Brightwell
> <adam.brightwell@crunchydata.com> wrote:
>>> I'm with Alvaro: the most interesting question here is why that mistake
>>> did not blow up on you immediately.  I thought we had enough safeguards
>>> in place to catch this type of error.

>> Ok, I'll explore that a bit further as I was able to build and use
>> with my hook without any issue. :-/

> Ok, I have verified that it does indeed eventually raise a warning
> about this.  It took a few for it to occur/appear in my logs. I was
> expecting it to be more "immediate".

Hm.  Salesforce had also run into the issue that the warnings are just
warnings and relatively easy to miss.  What we did there was to change
the elog(WARNING)s near the bottom of load_relcache_init_file to
elog(ERROR), but I'm not sure if I want to recommend doing that in the
community sources.  In commit 5d1ff6bd559ea8df I'd expected that the
WARNINGs would certainly show up in regression test output, and I thought
I'd verified that that was the case --- did that not happen for you?
        regards, tom lane



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Uh-oh: documentation PDF output no longer builds in HEAD
Next
From: Adam Brightwell
Date:
Subject: Re: bootstrap pg_shseclabel in relcache initialization