From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: warrior2031@mail.ru
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #12670: Can't create postgis extension in single-user mode
Date: Wed, 28 Jan 2015 01:05:20 +0000
Message-ID: <87zj93agba.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <29161.1422337002@sss.pgh.pa.us>
References: <20150126124133.19763.60605@wrigleys.postgresql.org>
<29161.1422337002@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
>>>>> "Tom" == Tom Lane <tgl@sss.pgh.pa.us> writes:
>> [ Can't create postgis extension in single-user mode ]
Tom> Why in the world would you think that's a good thing to do?
The context, for what it's worth, is setting up docker containers, so
there's a reasonable desire to be able to do some basic database setup
before starting any listener.
(Not my project; my only involvement in this is in answering questions
on irc, as usual)
Tom> Single-user mode is a barely-documented disaster recovery aid.
Tom> It's not meant for routine activity. There are a *whole lot*
Tom> of behaviors you want that are turned off in single-user mode.
Ok, I'll bite: what are they?
(I did a quick review of uses of IsUnderPostmaster. Essentially none of
them are visible at SQL level except this one (the only other one that
comes close is the disabling of event triggers). Almost everything else
is about process management; the only exceptions I found are one for
accepting tsearch dictionary options and another for running as
superuser in spite of missing role entries.)
Tom> The specific reason why this doesn't work is this bit in
Tom> heap_create_with_catalog:
Which personally I think is misguided. There never was any good reason
other than rowcount of pg_type not to make array types for catalog
tables, and it's inconsistent not to be able to use arrays of system
views or i_s views and so on.
--
Andrew (irc:RhodiumToad)
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: andrew@tao11.riddles.org.uk, tgl@sss.pgh.pa.us, warrior2031@mail.ru
Subject: Re: BUG #12670: Can't create postgis extension in single-user mode
In-Reply-To: <87zj93agba.fsf@news-spur.riddles.org.uk>
References: <20150126124133.19763.60605@wrigleys.postgresql.org> <29161.1422337002@sss.pgh.pa.us> <87zj93agba.fsf@news-spur.riddles.org.uk>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox