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 1sRJVn-00EREn-80 for pgsql-general@arkaria.postgresql.org; Tue, 09 Jul 2024 22:40:39 +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 1sRJVl-000Q69-Hg for pgsql-general@arkaria.postgresql.org; Tue, 09 Jul 2024 22:40:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sRJVl-000Q61-6e for pgsql-general@lists.postgresql.org; Tue, 09 Jul 2024 22:40:37 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sRJVj-001IAU-1p for pgsql-general@postgresql.org; Tue, 09 Jul 2024 22:40:36 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id 13DF52A2B7C for ; Tue, 9 Jul 2024 15:40:33 -0700 (PDT) Date: Tue, 9 Jul 2024 15:40:33 -0700 (PDT) From: Rich Shepard To: pgsql-general@postgresql.org Subject: Re: Finding error in long input file In-Reply-To: <71cf3e97-a0a5-4a94-add8-989cd1e2311d@aklaver.com> Message-ID: 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, Adrian Klaver wrote: > bustrac=#\e scripts/insert-addrs.sql 488 > If that raises this error: > environment variable PSQL_EDITOR_LINENUMBER_ARG must be set to specify a line > number Adrian, It doesn't; it prints the contents of the file to the virtual terminal. Using my default small editor, joe, I scrolled back through the file displayed without seeing any error. 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? TIA, Rich