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 1iXp81-000700-SM for pgsql-general@arkaria.postgresql.org; Thu, 21 Nov 2019 16:16:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iXp80-0004Sj-MX for pgsql-general@arkaria.postgresql.org; Thu, 21 Nov 2019 16:16:20 +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 1iXp80-0004RP-9A for pgsql-general@lists.postgresql.org; Thu, 21 Nov 2019 16:16:20 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iXp7x-000553-Rj for pgsql-general@lists.postgresql.org; Thu, 21 Nov 2019 16:16:19 +0000 Received: by mail-wm1-x342.google.com with SMTP id t26so4374280wmi.4 for ; Thu, 21 Nov 2019 08:16:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=5W8eAlf5HSb4fDkXpe8Ye3vZ5kLRMc1NzAsA7rW55Dc=; b=KN7fcNic+bBMVKjAxQBNbxOKftEMI+BmKkjjwIW/O6P+oMoUbC9cFaNNGAM0CrIxIV Nid3TGsyUmhvaCDSIFeA3mOKxA37Xl8F+ySucuiZJQM4NSKHAO0BbDyCswpPRY2EYmKy CFZb660KYv4wXJOpOmU/Ikycqbg3ZVCcL9CmYOTOlLHloZ5ZbynAN/eSOa8RHF6sd+oP pRWaLs03wNBrB8be43xQxLQRW3zMhOGz0zSajKNCwxa636CnsmOZVjhLENwEQfUSirUf ClD9CLyp1bL+CFDYAjP7UxzmPNaglPBH7r2KPMsJ0QNt52e9HcRhlQDn7si0Gr+xgyfV Mt0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=5W8eAlf5HSb4fDkXpe8Ye3vZ5kLRMc1NzAsA7rW55Dc=; b=dnykeUmOdBhq6sot8bvfs4/1TneDJctIvaI0ADia7SD/8Hw6Xb0mr0sgjT+3s03LxH EK5wY4br/oZ892LWaxFa2PWoaYXK/FCpZdo/TEVYUeDgBDfxSMT8+YYxLJXIhGpIONzE iNX+H+bl/tLJhmJhE6W8xTNk1Xy5queqA4KS2771GxtnYT7FebVaAx5axnXVSTw6G5Ek 6pH/y/QgndDXg8e1Jlx3oqRq20HFFIUxe+l4eKlJzXgYGb8nAV0dIzQeLvcGnwncQFru hcxogoLxMAuGeqfspzuXPg1qh7Gsr/nXDADS36yB8lVtvPMFEijlm3oKMz1WedZ0ltIy ya4w== X-Gm-Message-State: APjAAAX0dRlAjvyIZUPSxG1AJ7Iw85zEopkL+DJ4qUeRqqYk8C2w+qZq fJEuDvxP0EuFtLd3wPBgqinIUNXaiIE= X-Google-Smtp-Source: APXvYqw6UiGljNpLBY1+aW35p4uyk1mUM2uhaZ27INMO0gGDpm3t9Xdor0+U1zfA3IRIS6SJx4kVYg== X-Received: by 2002:a1c:7709:: with SMTP id t9mr10919104wmi.80.1574352976545; Thu, 21 Nov 2019 08:16:16 -0800 (PST) Received: from localhost.localdomain (217-149-171-82.nat.highway.telekom.at. [217.149.171.82]) by smtp.gmail.com with ESMTPSA id a186sm88788wmc.48.2019.11.21.08.16.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Nov 2019 08:16:16 -0800 (PST) Message-ID: Subject: Re: Extract transactions from wals ?? From: Laurenz Albe To: Marc Millas Cc: pgsql-general@lists.postgresql.org Date: Thu, 21 Nov 2019 17:16:15 +0100 In-Reply-To: References: <355aa1f83ee7bf0b2f5296f46cf231fb1384b409.camel@cybertec.at> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.4 (3.32.4-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, 2019-11-21 at 17:07 +0100, Marc Millas wrote: > you say "extract the data you need" > That is exactly the point of my question, as the PITR step was obvious. > How to guess "what is the data" I need ?? Well, you asked for the contents of a table AS OF TIMESTAMP . That means you know which table and which timestamp. So restore the PostgreSQL cluster to that timestamp, connect and SELECT from the table. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com