Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iDVGp-0005QI-Rc for pgsql-bugs@arkaria.postgresql.org; Thu, 26 Sep 2019 15:01:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iDVGo-0002WU-El for pgsql-bugs@arkaria.postgresql.org; Thu, 26 Sep 2019 15:01:26 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iDVGo-0002WK-4s for pgsql-bugs@lists.postgresql.org; Thu, 26 Sep 2019 15:01:26 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iDVGl-0002YU-Rv for pgsql-bugs@lists.postgresql.org; Thu, 26 Sep 2019 15:01:25 +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 x8QF1HGr012187; Thu, 26 Sep 2019 11:01:18 -0400 From: Tom Lane To: virgile.crevon@dassault-aviation.com cc: pgsql-bugs@lists.postgresql.org, Thomas Munro Subject: Re: BUG #16026: default_tablespace in postgresql.conf is used instead of the database's default. In-reply-to: <16026-7938df12bae60c5e@postgresql.org> References: <16026-7938df12bae60c5e@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Thu, 26 Sep 2019 12:57:01 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <12185.1569510077.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 26 Sep 2019 11:01:17 -0400 Message-ID: <12186.1569510077@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PG Bug reporting form writes: > 1- create a tablespace data (whereever you want it to be). Note that da= ta > is lowercase without quotation marks. > 2- set default_tablespace=3D'DATA' in postgresql.conf. Note this is un > UPPERCASE. > 3- reload conf. > 4- create a database with default tablespace data (lowercase). > 5- create a query that is using parallel (gather step) to seq scan. This is the same issue discussed in https://www.postgresql.org/message-id/flat/15726-6d67e4fa14f027b3%40postgr= esql.org I'm not sure why progress on that thread has come to a dead halt, but in any case, the general opinion seems to be that all we're going to do about it is improve the error reporting. Wrong values in postgresql.conf aren't a well-supported or encouraged situation, even if it seems to mostly work for default_tablespace. BTW, it occurred to me to wonder if we could make the situation better by running RestoreGUCState() *outside* a transaction, but that just moves the problems around: +ERROR: invalid value for parameter "session_authorization": "postgres" +CONTEXT: parallel worker regards, tom lane