Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YGH4U-0002rV-36 for pgsql-bugs@arkaria.postgresql.org; Wed, 28 Jan 2015 01:05:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YGH4T-0001Lf-Jc for pgsql-bugs@arkaria.postgresql.org; Wed, 28 Jan 2015 01:05:29 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YGH4S-0001LZ-QM for pgsql-bugs@postgresql.org; Wed, 28 Jan 2015 01:05:28 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YGH4P-0005Z8-7d for pgsql-bugs@postgresql.org; Wed, 28 Jan 2015 01:05:27 +0000 Received: from localhost ([127.0.0.1]:22963 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtp (Exim 4.84 (FreeBSD)) (envelope-from ) id 1YGH4K-0001oo-VF; Wed, 28 Jan 2015 01:05:21 +0000 From: Andrew Gierth To: Tom Lane Cc: warrior2031@mail.ru, pgsql-bugs@postgresql.org Subject: Re: BUG #12670: Can't create postgis extension in single-user mode In-Reply-To: <29161.1422337002@sss.pgh.pa.us> (Tom Lane's message of "Tue, 27 Jan 2015 00:36:42 -0500") Message-ID: <87zj93agba.fsf@news-spur.riddles.org.uk> References: <20150126124133.19763.60605@wrigleys.postgresql.org> <29161.1422337002@sss.pgh.pa.us> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) Date: Wed, 28 Jan 2015 01:05:20 +0000 MIME-Version: 1.0 Content-Type: text/plain 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 >>>>> "Tom" == Tom Lane 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