Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oVvEW-00026r-Cu for pgsql-novice@arkaria.postgresql.org; Wed, 07 Sep 2022 13:36:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oVvEV-0000ul-4d for pgsql-novice@arkaria.postgresql.org; Wed, 07 Sep 2022 13:36:47 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oVvEU-0000uc-SB for pgsql-novice@lists.postgresql.org; Wed, 07 Sep 2022 13:36:46 +0000 Received: from smtp03.isdsl.net ([196.26.208.195]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oVvEQ-0003VB-Du for pgsql-novice@postgresql.org; Wed, 07 Sep 2022 13:36:44 +0000 Received: from 196-210-6-79.dynamic.isadsl.co.za ([196.210.6.79]:44331 helo=jason.fables.co.za) by smtp03.isdsl.net with esmtp (Exim 4 #5) (envelope-from ) id 1oVvEC-0002lM-GX for ; Wed, 07 Sep 2022 15:36:33 +0200 Received: by jason.fables.co.za (Postfix, from userid 1005) id 74081E81FB; Wed, 7 Sep 2022 09:50:18 +0200 (SAST) Date: Wed, 7 Sep 2022 09:50:18 +0200 From: Anne Wainwright To: pgsql-novice Subject: restore overwrite? Message-ID: <20220907075018.GA3923@fables.co.za> Mail-Followup-To: pgsql-novice MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Spam_score: 5.9 X-Spam_score_int: 59 X-Spam_bar: +++++ X-Spam_report: Spam detection software, running on the system "smtp03.isdsl.net", has identified this incoming email as possible spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: Hi, I want to do a restore to write over the top of existing data. The unique key prevents this. Should I rather TRUNCATE the tables concerned before the restore? That is a bit scary if the restore does not work. Is there a better way. Content analysis details: (5.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_PBL RBL: Received via a relay in Spamhaus PBL [196.210.6.79 listed in zen.spamhaus.org] 0.0 TVD_RCVD_IP Message was received from an IP address 1.1 DATE_IN_PAST_03_06 Date: is 3 to 6 hours before Received: date 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom;id=anotheranne%40fables.co.za;ip=196.210.6.79;r=smtp03.isdsl.net] 0.0 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP address [196.210.6.79 listed in dnsbl.sorbs.net] -0.0 T_SCC_BODY_TEXT_LINE No description available. 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 0.0 KHOP_HELO_FCRDNS Relay HELO differs from its IP's reverse DNS X-Spam-Score: 5.9 (+++++) X-Spam-Flag: YES X-Spam-Report: Spam detection software, running on the system "smtp03.isdsl.net", has identified this incoming email as possible spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: Hi, I want to do a restore to write over the top of existing data. The unique key prevents this. Should I rather TRUNCATE the tables concerned before the restore? That is a bit scary if the restore does not work. Is there a better way. Content analysis details: (5.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_PBL RBL: Received via a relay in Spamhaus PBL [196.210.6.79 listed in zen.spamhaus.org] 0.0 TVD_RCVD_IP Message was received from an IP address 1.1 DATE_IN_PAST_03_06 Date: is 3 to 6 hours before Received: date 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom;id=anotheranne%40fables.co.za;ip=196.210.6.79;r=smtp03.isdsl.net] 0.0 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP address [196.210.6.79 listed in dnsbl.sorbs.net] -0.0 T_SCC_BODY_TEXT_LINE No description available. 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 0.0 KHOP_HELO_FCRDNS Relay HELO differs from its IP's reverse DNS X-Scan-Signature: 4b55969169a39cf6728b98f2c59236e4{13}} List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, I want to do a restore to write over the top of existing data. The unique key prevents this. Should I rather TRUNCATE the tables concerned before the restore? That is a bit scary if the restore does not work. Is there a better way. (This data on v.8.4.4 which is being moved to latest version 14). Thanks for answer in advance Anne