From: | KaiGai Kohei <kaigai(at)ak(dot)jp(dot)nec(dot)com> |
---|---|
To: | PgSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | shared_preload_libraries is ignored in single user mode |
Date: | 2010-08-05 06:08:54 |
Message-ID: | 4C5A5576.3070003@ak.jp.nec.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
I found out "shared_preload_libraries" setting is ignored when we launch
postgres in single user mode.
In this case, postgres command is launched with "--single" argument,
then the main() directly invokes PostgresMain(); without going through
PostmasterMain() which calls process_shared_preload_libraries().
I think we should put the following code block on somewhere within
PostgresMain() to fix up it.
/*
* If not under postmaster, shared preload libraries are not
* loaded yet, so we try to load them here.
*/
if (!IsUnderPostmaster)
process_shared_preload_libraries();
The reason why I want to use modules in single user mode is to assign
initial security labels on database objects just after initdb.
But, the GUC is ignored, we cannot invokes the routines in the module. :(
Thanks,
--
KaiGai Kohei <kaigai(at)ak(dot)jp(dot)nec(dot)com>
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2010-08-05 07:46:43 | Re: MERGE Specification |
Previous Message | Joshua Tolley | 2010-08-05 05:20:49 | Re: GROUPING SETS revisited |