pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Move vs. copy table between databases that share a tablespace?
Date: Wed, 3 Apr 2019 08:33:54 -0500
Message-ID: <6350b533-4410-358f-f9f5-99be7abdaf0b@gmail.com> (raw)
In-Reply-To: <20190403081825.14dc71c9.lembark@wrkhors.com>
References: <20190403081825.14dc71c9.lembark@wrkhors.com>

On 4/3/19 8:18 AM, Steven Lembark wrote:
> 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?

COPY TO STDIN and pipe that through ssh to another server?

-- 
Angular momentum makes the world go 'round.





view thread (11+ messages)  latest in thread

Message-ID: <6350b533-4410-358f-f9f5-99be7abdaf0b@gmail.com>
Permalink:  ../6350b533-4410-358f-f9f5-99be7abdaf0b@gmail.com/
Also on:    postgresql.org/message-id/6350b533-4410-358f-f9f5-99be7abdaf0b@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: Move vs. copy table between databases that share a tablespace?
  In-Reply-To: <6350b533-4410-358f-f9f5-99be7abdaf0b@gmail.com>
  References: <20190403081825.14dc71c9.lembark@wrkhors.com> <6350b533-4410-358f-f9f5-99be7abdaf0b@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox