Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qU4Mb-00BYOY-St for pgsql-admin@arkaria.postgresql.org; Thu, 10 Aug 2023 12:02:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qU4MY-00EEki-UI for pgsql-admin@arkaria.postgresql.org; Thu, 10 Aug 2023 12:01:59 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qU4MY-00EEka-G7 for pgsql-admin@lists.postgresql.org; Thu, 10 Aug 2023 12:01:58 +0000 Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qU4MT-001bBp-SI for pgsql-admin@lists.postgresql.org; Thu, 10 Aug 2023 12:01:57 +0000 Received: by mail.gandi.net (Postfix) with ESMTPA id 4ADAF1C0006; Thu, 10 Aug 2023 12:01:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=izzop.net; s=gm1; t=1691668910; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kk0haZe3yvNgtnn+z5V1Qqs5+42RbjHODqe1B6ARNzk=; b=juO+LbbDEeKar4aCWlAXH80cR9SBTkgcbO8yInWf0nO6+wRoCYAkTxamweENFvGiHpSem4 BAc0GNfAAJCv1NwBvcmP03qPoSVDC+pDNR4GM3NmYHws3vq3MZ4ag8KmtXSFPWSi9yrPIs 76kRS5WlvAOLNAbFOdQvwDonlQKJglge233xl5QnYQHfuR99sHI4xuhoc006YoaqvyQoPe AfHesFD3IrvUKaElSdAzFBP65bmU6iYQ1LvqbKgRZqsV1SppLxNx3wpzPvw6ZNVJgJxCcw iGhYznULtKRlD4BZA/lyYUel8Kz3iFGKEPddGH5NVRppbhUDu+XO5jEqqcnJ7A== MIME-Version: 1.0 Date: Thu, 10 Aug 2023 14:01:50 +0200 From: jp.pozzi@izzop.net To: Rajesh Kumar Cc: pgsql-admin@lists.postgresql.org Subject: Re: Undo Update In-Reply-To: References: Message-ID: X-Sender: jp.pozzi@izzop.net Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-GND-Sasl: jp.pozzi@izzop.net List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, Restore the data .... Regards JP P > Hi friends > > I was given a query to update the record in table A with where clause. > But I executed it in production mistakenly without where clause so it > updated incorrectly for all rows. > > How do I resolve this?