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 1hR1lL-0005Qy-JK for pgsql-general@arkaria.postgresql.org; Wed, 15 May 2019 21:48:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hR1lK-0003X7-8g for pgsql-general@arkaria.postgresql.org; Wed, 15 May 2019 21:48:34 +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 1hR1lJ-0003Wz-Rl for pgsql-general@lists.postgresql.org; Wed, 15 May 2019 21:48:34 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hR1lH-0003KM-GW for pgsql-general@lists.postgresql.org; Wed, 15 May 2019 21:48:32 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id CE6F324DDD; Wed, 15 May 2019 17:48:30 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 15 May 2019 17:48:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=L S700CLpXElHNLFwWWlbtFjpPZFqCpcs0HnWd2DeM/Y=; b=evIYDPWUSJEQtz11s W6h3iPdz3Hp4BhrEiJU7QOwq5iPNvGaLr847rxEUtgXhS8lnTrQgRzHAqVQgcCnm vq/Nc33bHQ/l7tUOoVYA0fcpXHmg0WKx+sCuPzwVfYUaJgULU00xgrPt74s2b0VJ vlokaEb7E1ZY+SWbp3VZ4eZ8G6N0vUKlpgWb70Mz5d5oFKBTBDxZ0IRYicPMn21M creKUy70l+WkykmC05k69o+4f8Qhw0DrzYldR+LhmkCZy9PArBhuMuwhcIqDM3Ao +6p5w3D4k72RaZv5BUwQYZ7a4p8rqvE3iththwEXYBVYmVcsCMbC+u8562d37BMj jJP6g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=LS700CLpXElHNLFwWWlbtFjpPZFqCpcs0HnWd2DeM /Y=; b=wHEiGwr+pIyOyBnXprtDqdJebZumSSjdaogyYuEnyuJVF6mYuKJkP9pV9 wdyfPicDqlaCzab6ragvuUGaQdNZf28iYLDBtD4OFwllDdVUkPxw/9T65m/c438i 1tmDjaCnFI9Q4C5EVW2l2/h9ULWYsVtSMUrdiwQ2RVsVgQPAyBLctvis4rd2OwFE 1d2lJ3+A3M5z8lCMtOqloqVE7bsWdNp+isJ2UXYJgNC0D3vly1uxXQBBNDQtJCuV GAVnvD05MpkzYuwljPGcuV9BJqG4otQznZXZjx3FCoQAegYkcFnYHS4M2djYrkT9 HTctTh9EBUdwsu2nnY1dbUnoigmTw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrleekgdduiedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefheenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucfkphepjeefrddvfeelrdduudejrddvfeeknecurfgrrhgrmhepmhgrihhlfhhr ohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmnecuvehluhhsth gvrhfuihiivgeptd X-ME-Proxy: Received: from ranger.suse (c-73-239-117-238.hsd1.wa.comcast.net [73.239.117.238]) by mail.messagingengine.com (Postfix) with ESMTPA id E51A1103CC; Wed, 15 May 2019 17:48:29 -0400 (EDT) Subject: Re: default_tablespace in 8.3 postgresql To: Julie Nishimura , "David G. Johnston" Cc: "pgsql-general@lists.postgresql.org" References: From: Adrian Klaver Message-ID: <0ab4e5df-a4a4-6a02-6b7d-a8e298b38691@aklaver.com> Date: Wed, 15 May 2019 14:48:29 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/15/19 2:45 PM, Julie Nishimura wrote: > Adrian, only first 3 (which are template0, postgres, control). Rest of > them are set to vol4. Do the script(s) reflect this? In other words did you have a script for each and every database and was the default_tablespace set different in some of them? > > The only explanation I would have that all of those databases which have > tablespace vol4 as default were copied from template1 without explicitly > specified tablespace name, and "control" was created with the explicit > tablespace in it?... I dont have any other good explanations... > > ------------------------------------------------------------------------ > *From:* Adrian Klaver > *Sent:* Wednesday, May 15, 2019 2:18 PM > *To:* Julie Nishimura; David G. Johnston > *Cc:* pgsql-general@lists.postgresql.org > *Subject:* Re: default_tablespace in 8.3 postgresql > On 5/15/19 2:15 PM, Julie Nishimura wrote: >> Sure, thank you guys! >> >> CREATE TABLESPACE vol4 >>   OWNER postgres >>   LOCATION '/data/vol4'; >> >> ALTER DATABASE tables_ericb >> SET default_tablespace = 'vol4'; >>   ALTER DATABASE conversion_feasibility_too >>   SET default_tablespace = 'vol4'; >> >> ... and so on for 60 dbs... >> >> but not for all 70+ > > But it was not for all 70+. The control db still is still set at vol1. > > Are there others not set to vol4? > > > -- > Adrian Klaver > adrian.klaver@aklaver.com -- Adrian Klaver adrian.klaver@aklaver.com