Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f6HaQ-0002t5-5A for pgsql-general@arkaria.postgresql.org; Wed, 11 Apr 2018 15:23:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f6HaO-0002zS-GX for pgsql-general@arkaria.postgresql.org; Wed, 11 Apr 2018 15:23:00 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1f6HaO-0002zI-5d for pgsql-general@lists.postgresql.org; Wed, 11 Apr 2018 15:23:00 +0000 Received: from mail-ot0-x235.google.com ([2607:f8b0:4003:c0f::235]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1f6HaL-0002A6-CY for pgsql-general@lists.postgresql.org; Wed, 11 Apr 2018 15:22:59 +0000 Received: by mail-ot0-x235.google.com with SMTP id j8-v6so2415549ota.7 for ; Wed, 11 Apr 2018 08:22:56 -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=YyQ0Vr+GjOTPUY3rF6UC8v2L5xs95pjSDXPjjSa9wSo=; b=u4eiFbA7ppZJ3oqgIve1wEb+iNweeP+A5RVBYeJXnW4MyiNnvgxkVq5vbSWTSZLzA4 +LEj8Ml9X5s30FpmCJvjAjivQu1FZLPO5HV4U00eozOZENJYPwiK7j0Cx/w/Jr1CeeCP jHDX/JjxYKyh3gpI+zlrpr66g4Grgc9QcS4XNT3afz7uwsgolZlcnQ9ITfaXsNBne+ks egT2xXLWkMv5EQlwKMOv9Ur5y5Uy8avsJ+a5//wLsCJNuYeL49XgX3jv2XTKs6cfJ/uw npbAgvnacPggMD/XO/eis6y3LWgzrYOPSpwgh4wUdMd+qtp9QNMv969DcggbPQXkjw5i LIVw== 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=YyQ0Vr+GjOTPUY3rF6UC8v2L5xs95pjSDXPjjSa9wSo=; b=WbYo59xnNwVskX5tWCZ8ST4lqECLlrB4Jq3rz2BpzT4nDUEzhYur4/xMhmdj/OTsY1 kKJCXP3DHvbSzJACW+XqG7xgVfXeJUfm6/6QsSNPBifrfivUrpaNg6swrHYEPmAuWvKa tFQRRRJsRmW22CYx9x2lDZcWY4eey3wYT5UYwcz3ihfiSNjBm9S9GrDjBp4FDUqLL1DR vrO5PWlVDJlsFGsfgw0OZg/KUUtgAY+CeEKxxeS2ilOhxok3J3Ivse+sVT0wL2Wmhixl lPeOEUeCvDWco3O4dhhh6RkrVoYXeKZEiZyCem2OzOpxjTZdJv54iRtzra4rDqecMH8a uVDQ== X-Gm-Message-State: ALQs6tC3yigafPyOBeZc13PYBPt7xFUJsFNFbeiE3opd6TAcEjNqf2w8 vMPyFA7/yi9b0M7d/g/JO2Y3AA== X-Google-Smtp-Source: AIpwx49ihBUCA/i49WFCR/Mw4Rzh89lrPSlLp525g6WFDtd9nxCjVHnF6aQpuB/516NT8mX+SmRSFA== X-Received: by 2002:a9d:4376:: with SMTP id y51-v6mr3573792oti.329.1523460174831; Wed, 11 Apr 2018 08:22:54 -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 r12-v6sm1042925otr.27.2018.04.11.08.22.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Apr 2018 08:22:53 -0700 (PDT) Subject: Re: pg_basebackup restore a single table To: pgsql-general@lists.postgresql.org References: <1523454780421-0.post@n3.nabble.com> From: Ron Message-ID: <4c94d474-fb81-0789-a9c2-f0b904562d17@gmail.com> Date: Wed, 11 Apr 2018 10:22:53 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: 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 04/11/2018 10:21 AM, Andreas Kretschmer wrote: > > > Am 11.04.2018 um 15:53 schrieb camarillo: >> Can I do a restore of a single table or single base using the archive >> generated for the basebackup without having to delete the filesystem >> (/var/lib/pgsql/9.5/*)?. > > No, but you can use a spare machine to restore the hole database > (point-in-time-recovery) and restore the table from that using pg_dump or > copy. Not everyone has a spare machine and a few TB lying around... -- Angular momentum makes the world go 'round.