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 1hBg1i-00079T-TH for pgsql-general@arkaria.postgresql.org; Wed, 03 Apr 2019 13:34:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hBg1h-0003j4-7Y for pgsql-general@arkaria.postgresql.org; Wed, 03 Apr 2019 13:34:01 +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 1hBg1g-0003gA-RZ for pgsql-general@lists.postgresql.org; Wed, 03 Apr 2019 13:34:00 +0000 Received: from mail-oi1-x235.google.com ([2607:f8b0:4864:20::235]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hBg1e-00016n-PV for pgsql-general@lists.postgresql.org; Wed, 03 Apr 2019 13:34:00 +0000 Received: by mail-oi1-x235.google.com with SMTP id w139so13538915oie.9 for ; Wed, 03 Apr 2019 06:33:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=pWXIn4A0wjSDLQEccxj3uH8TvOUbfTR9iPBcsv4Btow=; b=FqkKjvOM9pTTDii9OB0ZT0D0Rihsht+nZgrrmlkpWGGBHQjjJPnfO9I5yoVXNzIhb8 bs22Or/PT/h0sbO4VlppNLxOjDdwA9n627xDDqj+RCw/VSWUa4ONqBoQZjpvn3OYNiA9 nLAAsB81aOF4Cp/sRTvspEd7fyv72+3Lao3FSfaU4LPCGPvUNTkJazRgq+/bJuvwHuSB WZu0z7SV74ndw3rpR+ETX6sPeS5YsnCodbhKWR1IYa1PXQQnwQnhAhw7hxh3vYlEt5hk LY69eM81i42mriULJFIaixecMlHbVlAqYvCC0UoCbDvG1IeAMd5IPCZzyLdq3zAw+OCk fEdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=pWXIn4A0wjSDLQEccxj3uH8TvOUbfTR9iPBcsv4Btow=; b=K1JAfd1f6gyuJqaARUcwFxqdtKUN3WXWxDdaY88Rk9ZUWgX9rC2u5O7SQdSzCMZHe2 7vcmpG+0dLv67q8Ya2t90J6qGAKrGDT6NTNO5IpK+x+tqYQ/JctRzESiboDpgSk7LAYW HTAbc5hkT7FeDoFwsE46IwI9VV6bpQ559VoqEF7pNP10cyobOHHcmCOwSWm1PiQjFGPT Px5X3F6ePSBlSvvGljqwp8y4HnOJA7dlNu8cGV5+xTFAwyUbLE8VMUkI+P47b4+5ggsn R2ySR5h3xLfgxtpJjVV6amfBA6wk9A/bOj0sWHPSRhEYSozt8RpobyYTvsY+LQqKNbuX Nocg== X-Gm-Message-State: APjAAAWayfQrm/MVnRmnR7pof+sMmYOYHxbWAk1R729XXLqrEhPA01xT rbc0JRP9RtNHXYMZ3e6hXVHxt1HbiYM= X-Google-Smtp-Source: APXvYqwGNusOQfhN4dELds7FvJatkDmvTrjf/gQnZOrfcDGBlMZiHFqyHx2cbzO9Z4lqrougxck7dA== X-Received: by 2002:aca:4f56:: with SMTP id d83mr270437oib.24.1554298435931; Wed, 03 Apr 2019 06:33:55 -0700 (PDT) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id d22sm6449941oti.21.2019.04.03.06.33.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Apr 2019 06:33:55 -0700 (PDT) Subject: Re: Move vs. copy table between databases that share a tablespace? To: pgsql-general@lists.postgresql.org References: <20190403081825.14dc71c9.lembark@wrkhors.com> From: Ron Message-ID: <6350b533-4410-358f-f9f5-99be7abdaf0b@gmail.com> Date: Wed, 3 Apr 2019 08:33:54 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190403081825.14dc71c9.lembark@wrkhors.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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.