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 1hBfpY-0006YG-2r for pgsql-general@arkaria.postgresql.org; Wed, 03 Apr 2019 13:21:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hBfpW-0005fM-47 for pgsql-general@arkaria.postgresql.org; Wed, 03 Apr 2019 13:21: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 1hBfpV-0005fF-Np for pgsql-general@lists.postgresql.org; Wed, 03 Apr 2019 13:21:25 +0000 Received: from mta1.recol.net ([64.207.103.6]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hBfpS-0001HA-HX for pgsql-general@lists.postgresql.org; Wed, 03 Apr 2019 13:21:24 +0000 Received: from wrkhors.com (unknown [75.37.52.9]) by mta1.recol.net (Postfix) with ESMTPSA id 36BBB398A75; Wed, 3 Apr 2019 09:21:20 -0400 (EDT) Date: Wed, 3 Apr 2019 08:18:25 -0500 From: Steven Lembark To: "pgsql-general@lists.postgresql.org" Cc: lembark@wrkhors.com Subject: Move vs. copy table between databases that share a tablespace? Message-ID: <20190403081825.14dc71c9.lembark@wrkhors.com> Organization: Workhorse Computing X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) X-Workhorse: Quite MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Trying to find a way of moving a large table between databases in the same cluster. There is not sufficient space to copy the contents -- the dedicated tablespace that fits the beastie is on an 80% full disk. Given that the two databases live in the same cluster and have the owner & the tablespace in common, is there any way to move the contents without a dump & reload? Thanks -- Steven Lembark 3920 10th Ave South Workhorse Computing Birmingham, AL 35222 lembark@wrkhors.com +1 888 359 3508