Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qvYaV-005uf9-Vg for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Oct 2023 07:46:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qvYaU-000HvN-Ft for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Oct 2023 07:45:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qvYaT-000HvA-BD for pgsql-bugs@lists.postgresql.org; Wed, 25 Oct 2023 07:45:58 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qvYaN-002Chd-MU for pgsql-bugs@lists.postgresql.org; Wed, 25 Oct 2023 07:45:55 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 05F693200A24; Wed, 25 Oct 2023 03:45:47 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 25 Oct 2023 03:45:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1698219947; x=1698306347; bh=g TWmA2hdKqy5lOhueDAc9M/kyVxv9Vz+8xADm8eGZuk=; b=dmbuphN7c/+TlCrdN vAJWG4vHpRddFLvA9SAqrJddclV60ZZ5Mv5nGaS3QOk1VCNeiaW1mhYuxjKRlezz N8WQSUBvpaUwZKqKuEy2qY0doclOZTQxe+FuhJQ7nfVbgurqCdBGBEFvfU+xz8Em ERjfffoMMuX3iYTBuvXxnHOnIG3zcb/z5/tHRVlbqwCo9EjYkaY1op0SYmVnTqsC HDQ649lpVPK39IV9Wzc/QyA7i3qMEjoLgpMwvg94diuOO+965kxydwyGOfJHp++U MyiuX6/OT0PrGgQIOdFOT/W3fnBIQEFAY3JTSU+qjp1b/TPdBCkRd26EHL6Of9CI Fy6hg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrkeelgdduvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkgggtugfgjgesthekre dttddtjeenucfhrhhomheptehlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgv segrlhhvhhdrnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepudejveejffejve duudetvdekieeuiedtvdeileefkeevjedufeeguedvjefhueelnecuffhomhgrihhnpegv nhhtvghrphhrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 25 Oct 2023 03:45:46 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1698219944; bh=gcyWbLnPlMv8rfzjJ59O8/1syaLN62Kr0yJyzukahoY=; h=Date:From:To:Subject:In-Reply-To:From; b=I9RurZUasWqAvijfax289SjhpYFVGwZ7zh66Ed8OIinImQloWlMsl+v/OKI4fsv1/ IKaIfzRaeaIvAOv9xLObYTHd5CdsX+jeaPreo8HUsYiJjBIKyKSic68rPflERRBUKH 77l7eUD3Ga8Stl6giSS7nbkSJGwRmx5I/zpRSXrjAgpMTag7+8NxKVgDAETHDMaQkc FVPJV2V7p6wiajJbp+rgw5WbaMLlb392TU1yHHxWOHkmAbgXGq5lsZxTI3tCUq80KG Be/UaBf6ATD4gfjdRnqesRgm0Yay6+qSa9Q9iPqv5MK/mLbU1pBLD4McgQ0ERa0W4/ v4ajCL+VUpJIw== Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 31627C9; Wed, 25 Oct 2023 09:45:44 +0200 (CEST) Date: Wed, 25 Oct 2023 09:45:44 +0200 From: Alvaro Herrera To: mariusraicu@laposte.net, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18167: cannot create partitioned tables when default_tablespace is set Message-ID: <202310250745.x6mzvzbsk4bz@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <18167-fcc9f9f33cddf04d@postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2023-Oct-24, PG Bug reporting form wrote: > marius@[local]:5434/postgres=# show default_tablespace; > default_tablespace > -------------------- > tblspc1 > (1 row) > > marius@[local]:5434/postgres=# create tablespace tblspc1 location > '/home/marius/pgcode/tblspc1'; > CREATE TABLESPACE > marius@[local]:5434/postgres=# create database test tablespace tblspc1; > CREATE DATABASE > marius@[local]:5434/postgres=# \c test > You are now connected to database "test" as user "marius". > marius@[local]:5434/test=# create table toto(id numeric) partition by > list(id); > ERROR: cannot specify default tablespace for partitioned relations Oh, so the problem here is that *both* default_tablespace and the database's tablespace are set, and then a partitioned table creation fails when it doesn't specify any tablespace? That indeed sounds like a bug. I'll have a look, thanks. I'm surprised it took so long for this to be reported. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "Someone said that it is at least an order of magnitude more work to do production software than a prototype. I think he is wrong by at least an order of magnitude." (Brian Kernighan)