pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Heikki Linnakangas <hlinnakangas@vmware.com>
Cc: Andrew Gierth <andrew@tao11.riddles.org.uk>
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 10:23:25 -0500
Message-ID: <30115.1422458605@sss.pgh.pa.us> (raw)
In-Reply-To: <54C88CC7.7030204@vmware.com>
References: <20150126124133.19763.60605@wrigleys.postgresql.org>
	<29161.1422337002@sss.pgh.pa.us>
	<87zj93agba.fsf@news-spur.riddles.org.uk>
	<4086.1422409796@sss.pgh.pa.us>
	<54C88CC7.7030204@vmware.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Heikki Linnakangas <hlinnakangas@vmware.com> writes:
> On 01/28/2015 03:49 AM, Tom Lane wrote:
>> Now, I'll agree that if you just intend to install a couple of simple
>> extensions, you might be able to get away with doing that much without
>> any background support processes.  But it's not a mode meant for
>> routine activity.  And I rather wonder why you need to install
>> extensions in that way anyway.

> Using the single-user mode for installing extensions etc. is a sensible 
> idea; or was if it worked. It'd be nice to run initdb, install 
> extensions, even load data etc. all in single-user mode,

... and right there is where the argument falls to the ground.  Loading
any significant amount of data without background checkpointing, bgwriter,
wal writer, etc will be exceedingly slow, *and* have the risk of having
to replay a whole lot of WAL if you have any problems.  It's not apparent
to me how this is superior to loading all the same definitions and data
after the system is up for real.

> We had discussions some time ago about teaching the backend to speak the 
> regular FE/BE protocol in single-user mode, and having libpq "connect" 
> to that. That would still be nice...

Yeah, I was one of the ones pushing it.  But the idea stalled after it
was pointed out how unpleasant an operating environment it would be.

At this point I think a more practical solution to the lock-out-users-
for-maintenance problem would be to invent some postmaster command line
switch for overriding pg_hba.conf.  Not sure exactly what it would look
like.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (9+ messages)  latest in thread

Message-ID: <30115.1422458605@sss.pgh.pa.us>
Permalink:  ../30115.1422458605@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/30115.1422458605@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, hlinnakangas@vmware.com, andrew@tao11.riddles.org.uk, warrior2031@mail.ru
  Subject: Re: BUG #12670: Can't create postgis extension in single-user mode
  In-Reply-To: <30115.1422458605@sss.pgh.pa.us>
  References: <20150126124133.19763.60605@wrigleys.postgresql.org> <29161.1422337002@sss.pgh.pa.us> <87zj93agba.fsf@news-spur.riddles.org.uk> <4086.1422409796@sss.pgh.pa.us> <54C88CC7.7030204@vmware.com> <30115.1422458605@sss.pgh.pa.us>

* 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