Re: BUG #12670: Can't create postgis extension in single-user mode

From: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: warrior2031(at)mail(dot)ru, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #12670: Can't create postgis extension in single-user mode
Date: 2015-01-28 01:05:20
Message-ID: 87zj93agba.fsf@news-spur.riddles.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

>>>>> "Tom" == Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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)

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2015-01-28 01:49:56 Re: BUG #12670: Can't create postgis extension in single-user mode
Previous Message ousema2003 2015-01-27 13:59:04 BUG #12681: Cannot Read Refcursor from JAVA