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 1sRJbv-00ERnd-Q9 for pgsql-general@arkaria.postgresql.org; Tue, 09 Jul 2024 22:46:59 +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 1sRJbu-000TeK-3G for pgsql-general@arkaria.postgresql.org; Tue, 09 Jul 2024 22:46:58 +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 1sRJbt-000TeB-Me for pgsql-general@lists.postgresql.org; Tue, 09 Jul 2024 22:46:57 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sRJbr-001H4A-6L for pgsql-general@postgresql.org; Tue, 09 Jul 2024 22:46:56 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id 137D92A2B7C for ; Tue, 9 Jul 2024 15:46:54 -0700 (PDT) Date: Tue, 9 Jul 2024 15:46:54 -0700 (PDT) From: Rich Shepard Reply-To: Rich Shepard To: pgsql-general@postgresql.org Subject: Re: Finding error in long input file In-Reply-To: Message-ID: <53c9d6fa-8992-2a69-471e-7df37e594991@appl-ecosys.com> References: <71cf3e97-a0a5-4a94-add8-989cd1e2311d@aklaver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 9 Jul 2024, Rich Shepard wrote: > Should I run BEGIN: at the psql prompt prior to entering the insert > command? Would that tell me if any rows were entered and, if so, where > that stopped? Began a transction, ran the script, checked the locations table for a couple of rows to be inserted. They weren't. Issued the rollback; command. How best should I proceed to isolate the source of the error at the end of the file? Rich