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 1rw6Sv-00GoHk-Cf for pgsql-general@arkaria.postgresql.org; Sun, 14 Apr 2024 20:28:41 +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 1rw6St-008HSn-OE for pgsql-general@arkaria.postgresql.org; Sun, 14 Apr 2024 20:28:39 +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 1rw6St-008HSe-Cn for pgsql-general@lists.postgresql.org; Sun, 14 Apr 2024 20:28:39 +0000 Received: from wfout1-smtp.messagingengine.com ([64.147.123.144]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rw6Sr-000wx8-2Y for pgsql-general@lists.postgresql.org; Sun, 14 Apr 2024 20:28:38 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.west.internal (Postfix) with ESMTP id B36721C0009F; Sun, 14 Apr 2024 16:28:33 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sun, 14 Apr 2024 16:28:33 -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=1713126513; x=1713212913; bh=tG4I7ZCYNXymcy793i0hOsPDfB9W3JH1HIY8r0lZrGo=; b= SyALT38jzwJ114CDH1i241GAyew8NNZ3LMPgVffbH+XA7bfn7c59bvHCOmPfe3me 4CeH1GT0RN7LgE/oCF3SFfMVg3fhB8fYW8LEXAuGaeLAYoGgl5Ycwyw83f6Nnlj6 cR9YVrlBwKbEdjE7vYPhjkZYEnLEEOLSOvqG3CIDkjwpaVg69FGXCnQRUzYZKsXl 4Sb9fjHE+MbEUO5SlexxicOcU4TLXkA38Fn4GFeYzi4T+o/ZVvxCi/sRAF/09Pi9 g8Pl0NKu/Iu3cfudrCRQNNpcTqpHsrV5VYnRn1QIzPp2SweN6eKb9ko00IqjuCAi GuOWGj89NLhwgTaMH3pbtQ== 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=1713126513; x= 1713212913; bh=tG4I7ZCYNXymcy793i0hOsPDfB9W3JH1HIY8r0lZrGo=; b=N NGiHWGXbTJX8UyIoaDpsPCWupPXzaSTwx1fLAttNlP4FkQhlIiHsaps0YqKuDg4c RiR8Qe8ndHusFGcmca5AYBVJWohVFv7zbcZarPWQPtxt4bwOJ7cgoLcvmZ3m24BT CtC0WDOPyRqvVCYIrjD5pAQpdurM6jN5NYFT2Ve8mnc4m97p1msXr/C0kn2JCh+6 qjTEIn7sbC7qrVMZkYpwhSdH+tyrUPvxx3LSiYMtoA8bHK4Up6SuRYyV+3lSC66f NElgD212IilC83kZ8NLi84hZjr1/BFvCj4zgJz2VsbQwufDMCef5EdGb75kBPsDA rbzeD3ZDJzpJ7b/nAXRuw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudeiledgudehudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesth ejredttddvjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeeivdfhie ehheegueeileejieettdejhedugeefleekvdelkeehtdfgiefffeekudenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrg hvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 14 Apr 2024 16:28:32 -0400 (EDT) Message-ID: <311b047d-01f1-4ce3-86de-09ff0181ba00@aklaver.com> Date: Sun, 14 Apr 2024 13:28:31 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: constant crashing To: jack , "pgsql-general@lists.postgresql.org" References: 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 4/14/24 13:18, jack wrote: > The CSV files are being produced by another system, a WIndows app on a > Windows machine. I then copy them to a USB key and copy them onto the > ubuntu machine. The data is then imported via the COPY command. The app? The locale in use on the Windows machine? The locale in use in the database? > > COPY master (field01,field02..fieldX) FROM '/data/file.text' DELIMITER E'\t' > The fields are tab delimited. > > But importing the data works. I can get all the data into a single table > without any problems. The issue is only when I start to update the > single table. And that is why I started using smaller temporary tables > for each CSV file, to do the updates in the smaller tables before I move > them all to a single large table. The import is just dumping the data in, my suspicion is the problem is related to using string functions on the data. > > After all the data is loaded and updated, I run php programs on the > large table to generate reports. All of which works well EXCEPT for > performing the updates on the data. And I do not want to use perl or any > outside tool. I want it all one in SQL because I am required to document > all my steps so that someone else can take over, so everything needs to > be as simple as possible. > -- Adrian Klaver adrian.klaver@aklaver.com