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 1iXnix-0003sH-HY for pgsql-general@arkaria.postgresql.org; Thu, 21 Nov 2019 14:46:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iXniu-0006NZ-OR for pgsql-general@arkaria.postgresql.org; Thu, 21 Nov 2019 14:46: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 1iXnfJ-0005Ps-2v for pgsql-general@lists.postgresql.org; Thu, 21 Nov 2019 14:42:37 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iXnfF-0004IW-Ml for pgsql-general@lists.postgresql.org; Thu, 21 Nov 2019 14:42:35 +0000 Received: by mail-wm1-x343.google.com with SMTP id z19so3999373wmk.3 for ; Thu, 21 Nov 2019 06:42:32 -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:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=PNKLRn9ibxemS2sxZ5zB8YulRL13F8krxV0Q/cr8fmI=; b=RqOD9fbfbHWGqBPuoZw+lyDY4hkRa67Dp2N9XQ+ghY0fNzKf80TuAZW7M8sVdiX46N j4XvzJA+YKa8hhXTIZWFSRWx2xjAeBzqZvTEm0oedGFn20JiGU5wKLGw6ckU3K2p8RL2 HYrw4V9V2fMd6cXWVD2hl3WyanQbNs3QSBpOtUz6MhM1aELUxFwfWhWmWR70pIpvOdEl iPR5+j1p4LsmxVu2+FEgo0CDFG0L1Rs7cM/zh0WmbDvcdP+W0vNnYs6Fych2uoluaAzV 8F9Go+XD/bP2O8/mf8wwnCSTTtq335lLEZyLJl/+v1Gtca/gDnQx1vUGpdKXk7iYMAE6 U71g== 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:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=PNKLRn9ibxemS2sxZ5zB8YulRL13F8krxV0Q/cr8fmI=; b=a7h3NESVxMdjQrQBLSSw45G+N3fwxfoFCBe9dOwmE/wO1AgMHlqCwIsWNDXKGNFkw0 yeDhpRIqQyDSgRHNre8CAeHAOuwuBsLc20Lp6Rph131mkPsf4sSGWPE09vqF0MbapO+b kla2BZW0Jaf3iZdn3Z/2xe8oe1mNekPPNZ17iOhxuHYgC7Un/iWFEJT/11Xc4rvZG62D ajb0enr3uIFZEsl4OGbvR4GVmh3brHMJAP/YBozFD6HgjIy90IoMhvQOUgqSRJ3D88Ze 1DVeLlQO+fn+De6xGX4w7HWY+/TgfFAp0jQcGsrUhXlW5cr4ClAzlniSOMqooI+cFg/D jT3w== X-Gm-Message-State: APjAAAV3pWpd4+n5P15lx898h20wm5tHvZXG859bss8glQ6O0aSizUJk Tkot9ITnjOTbAFpPITHfQ4BFdw== X-Google-Smtp-Source: APXvYqzqt6BKvheHS9s9h4WPPTg9q5R8yqWkZ1TKqi7JL4mBRh0q6mfD5mtS8fzSWbyYNY181ESjgg== X-Received: by 2002:a1c:e915:: with SMTP id q21mr10726856wmc.164.1574347351680; Thu, 21 Nov 2019 06:42:31 -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 z7sm1889439wma.46.2019.11.21.06.42.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Nov 2019 06:42:31 -0800 (PST) Message-ID: <9ec989fc2b64327843f138cee5602cb5c0b59db8.camel@cybertec.at> Subject: Re: Extract transaction from WAL From: Laurenz Albe To: Jill Jade , pgsql-general@lists.postgresql.org Date: Thu, 21 Nov 2019 15:42:30 +0100 In-Reply-To: References: 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 12:11 +0400, Jill Jade wrote: > I am new to Postgres and I have a query. > > I have updated a table which I should not have. > > Is there a way to extract the transactions from the WAL and get back the previous data? > > Is there a tool that can help to get back the transactions? This information is not contained in the WAL. You'll have to restore a backup. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com