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 1sRJhl-00ESI8-6p for pgsql-general@arkaria.postgresql.org; Tue, 09 Jul 2024 22:53:01 +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 1sRJhj-000Z8F-QS for pgsql-general@arkaria.postgresql.org; Tue, 09 Jul 2024 22:52:59 +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 1sRJhj-000Z87-Ft for pgsql-general@lists.postgresql.org; Tue, 09 Jul 2024 22:52:59 +0000 Received: from fout6-smtp.messagingengine.com ([103.168.172.149]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sRJhh-001IFq-8o for pgsql-general@postgresql.org; Tue, 09 Jul 2024 22:52:58 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.nyi.internal (Postfix) with ESMTP id 38EA9138010C; Tue, 9 Jul 2024 18:52:56 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 09 Jul 2024 18:52:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1720565576; x=1720651976; bh=xDHch8/LB24sTDz99DoG9jGuc0BdOYcepYUQo++i0LQ=; b= vXzcjzdx0suviCYiCkEYAoQxtMEQR1dN6mKvZgMhSOtOkdVD+y0hWRynMAYSwL3q 04WOlMphZMtJkdTbigXo0lMTT5mr5x6xE/NsxyZoQn0JPe83aU59GnzLlfOGqOtR gPeF6XAYBx4hHlEQYKXEATGcmJVEG3g87St7mmWZ0UZnlWVMqV/SmizRFqy5uDiY /yfEzTGqt+96jWOanIKeQfQcf9HR5UkpycrIGewSa9arugkyDIMQAw+3d0kok5f6 cBO+MZKqDRpRS0HiJMItlp4330GEMEvsRofIyKNFc6cz++B2SH7d9pEy32WrUKev qBXHV8tGfiyTVRhJ7+AEqw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1720565576; x= 1720651976; bh=xDHch8/LB24sTDz99DoG9jGuc0BdOYcepYUQo++i0LQ=; b=J N2TpzwvKWWCJwANY3MIavZNMc/Gr94NBE+dd7M9Wq103gajP4bWOycuto8CXR5Yz X1mJF57gagpRxIW+mYIahGE7TT85x3J2ImK/+ECNbWa0BsUixhaF6bkVA3sgG9WX XhiJE31FMLExWXT5kmw0eArVbvvc3spSWdbm0MIYSpxKK2oLTew3K+Oqs3+8Sqx5 Rdm+g3wpOy7y+F78CbKT/Wy3mOHqZrzeuVNINtryvZxHRnbAYCFympI0IvOeKq2y OQPFAkmx9j66+1d5ddXlNu6J+S+dzafLtPyOfnxJn2xmjkpn5r+E/3xm2ZHR2NFo XvhbOoc/lELaaXhucH2/Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrfedtgdduhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuggftrfgrthhtvghrnhepiedvhfeiheehgeeuieeljeeitedtjeehudegfeelkedv leekhedtgfeiffefkedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 9 Jul 2024 18:52:54 -0400 (EDT) Message-ID: Date: Tue, 9 Jul 2024 15:52:54 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Finding error in long input file To: Rich Shepard , pgsql-general@postgresql.org References: <71cf3e97-a0a5-4a94-add8-989cd1e2311d@aklaver.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 7/9/24 15:40, Rich Shepard wrote: > 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. The error: LINE 488: ...2832,1,default,'85250 Red House Rd','Paisley','OR','97636') is giving you the line number and the data: a) Navigate to that line number using whatever method Joe has for that. b) Search for '85250 Red House Rd'. > > 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 > > -- Adrian Klaver adrian.klaver@aklaver.com