Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YGUT1-00030E-Mo for pgsql-bugs@arkaria.postgresql.org; Wed, 28 Jan 2015 15:23:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YGUT1-0005Yx-2S for pgsql-bugs@arkaria.postgresql.org; Wed, 28 Jan 2015 15:23:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YGUT0-0005Yq-5C for pgsql-bugs@postgresql.org; Wed, 28 Jan 2015 15:23:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YGUSs-0004k7-Js for pgsql-bugs@postgresql.org; Wed, 28 Jan 2015 15:23:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t0SFNPcd030116; Wed, 28 Jan 2015 10:23:25 -0500 From: Tom Lane To: Heikki Linnakangas cc: Andrew Gierth , warrior2031@mail.ru, pgsql-bugs@postgresql.org Subject: Re: BUG #12670: Can't create postgis extension in single-user mode 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> Comments: In-reply-to Heikki Linnakangas message dated "Wed, 28 Jan 2015 09:16:23 +0200" Date: Wed, 28 Jan 2015 10:23:25 -0500 Message-ID: <30115.1422458605@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Heikki Linnakangas 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