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 1hQLgK-0007VD-5A for pgsql-general@arkaria.postgresql.org; Tue, 14 May 2019 00:52: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 1hQLgI-00007Z-Kl for pgsql-general@arkaria.postgresql.org; Tue, 14 May 2019 00:52:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQLgH-0008IV-GP for pgsql-general@lists.postgresql.org; Tue, 14 May 2019 00:52:34 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQLgF-0002f5-DT for pgsql-general@lists.postgresql.org; Tue, 14 May 2019 00:52:33 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 4DF3223EF1; Mon, 13 May 2019 20:52:30 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 13 May 2019 20:52:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=Y grwSzSps0Gv6UMJf15mfFtCYUA49MGcbfrfkFF4Tf8=; b=Q9X4Y34PYkMHDmVvF ZvB2cuJW1xua0LfVCGRc101haQL136zKYkVHXRcHP2RsjOjucuggBqTEpwtk4YDf Yw9385zM5xi4LJBiUMPske4nH2Rr2VqTXuG55llw3MgnT+Jw6eQ06VuaAja22dUK yHwGl0wxHzKcDCQwK5X4P3hdol/9oLyk/bYLIEYQdqllYsTM8rieUQYRTcmrfFX6 ZMnEOArejIYCgbfL98A6t3v05uEPePdUsenHioFAcfy7nYJaZ4IwOHQoMb/F/w+D o6/gaZTr50IVphM3JOSke9Rjug40RM3qJ6cU9go3KVSDmpMKc/IilQY7ooJiyXCp oorMw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=YgrwSzSps0Gv6UMJf15mfFtCYUA49MGcbfrfkFF4T f8=; b=JH6XrQ/b4mawU4B+jtFXa9EwYPaFcvJIx3ilqfugfvYbpPiOPwYFCzjcC FMSQoiXTNsXlTvAWMxEuVkFxrpBdlLSPcvhJYVIKb7tnVMAin9U/wUZyzjzaYKd2 d3zhoo2jXJuyelM4QA62/U2VlE0qLbRYcGAneVUCAPf0RjoqP34FfwChIKKwOakI 8LMn+Jy5/eq2DLqoAesN7by8k4NKd7jnmYQgLxT1oJe6sobN1XhRjKzUhWbz7Vyh U4+wQqoJzaksJkFM89LUYoAUtdyM+1ftzKpMR82OxdfCaGkv8KNRhpuQog4nWo8L 0+UEdZw+P2+wjPssJuP89LorEjvyg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrleehgdefjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekre dttdefheenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucfkphepjedurddvuddvrdduhedtrddvtd dvnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhl rghvvghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 693CE103D5; Mon, 13 May 2019 20:52:29 -0400 (EDT) Subject: Re: does postgresql backup require additional space on disk To: Julie Nishimura , "pgsql-general@lists.postgresql.org" , pgsql-general References: <86c77c15-c089-a7fb-53d8-a6c14c9cd28a@aklaver.com> <757d70ad-259e-4032-f57a-b9b692ee00f5@aklaver.com> From: Adrian Klaver Message-ID: <55b69ec0-2210-0da8-66c3-fcc289f1bbcb@aklaver.com> Date: Mon, 13 May 2019 17:52:28 -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/13/19 5:39 PM, Julie Nishimura wrote: > LOL. Adrian, I so appreciate your help. > > So, since this server is obviously very old, and it seems like 3 other > tablespaces were added in the past (vol1 - 2.7 tb, vol2 - 2.7 tb, vol3 - > 16 tb), and I am about to add another vol - vol4 (4 tb), I am trying to > see where the objects are actually located. > > So, for example, working only with one database at a time. > > The database has the following: > ALTER DATABASE er_temp >   SET default_tablespace = 'vol3'; > > My postgresql.conf also lists the following: > default_tablespace = 'vol3' > > There is one table "test", and its DDL (according to PGAdmin): > CREATE TABLE test > ( >   id integer, >   key character varying, >   value character varying > ) > WITH ( >   OIDS=FALSE > ) > TABLESPACE vol1; > > but if I run the following command, I have empty string as tablespace > > er_temp=# SELECT tablespace > FROM pg_tables > WHERE tablename = 'test' AND schemaname = 'public'; >  tablespace > ------------ > > (1 row) Is test in the public schema? > > However, if I create new table, it will go to vol3: > > er_temp=# CREATE TABLE test_j > er_temp-# ( > er_temp(#   id integer, > er_temp(#   key character varying, > er_temp(#   value character varying > er_temp(# ); > CREATE TABLE > er_temp=# SELECT tablespace > FROM pg_tables > WHERE tablename = 'test_j' AND schemaname = 'public'; >  tablespace > ------------ >  vol3 > (1 row) > > So, why would tablespace for "test" show as empty string if it is not > default? Where are the files for "test" table? > > Thanks, > Julie -- Adrian Klaver adrian.klaver@aklaver.com