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 1rw1JT-00GFHO-1e for pgsql-general@arkaria.postgresql.org; Sun, 14 Apr 2024 14:58:35 +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 1rw1JQ-00754n-QN for pgsql-general@arkaria.postgresql.org; Sun, 14 Apr 2024 14:58:32 +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 1rw1JP-00754f-06 for pgsql-general@lists.postgresql.org; Sun, 14 Apr 2024 14:58:32 +0000 Received: from wfhigh6-smtp.messagingengine.com ([64.147.123.157]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rw1JI-000uPm-Uf for pgsql-general@lists.postgresql.org; Sun, 14 Apr 2024 14:58:30 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfhigh.west.internal (Postfix) with ESMTP id 0288D18000D2; Sun, 14 Apr 2024 10:58:20 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sun, 14 Apr 2024 10:58:21 -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=1713106700; x=1713193100; bh=tLyBh/4HDlCvssNTaR60UuEqwtowY8ekP9X7oij3C2g=; b= aFPIEAjLYOxo07VmGKIEj/6BO2l2dwwf9UjHW1UiqMccYIingpM+xTHIpZ1JBKck 4mhqkZw1QkOiI1lVsfYOz4JtqYMAqwiXf3mGQMdqSbb9lGVa/nhWjrBuB1nPVJeh UYCgllLi4VoezK9UWLIJFrXeFtQshUGG2esR4CTMaqWK413RwTv2IT0W9xuoQQWz gAMy+v4+p25vuQXSdAxTWJmqOIwZ+aRkX4WTp/RKHzAGx/+ljtQWskHMZ7hWszi2 Nk/k9WnPr+tNxrFwZnZxjXS3zxSotO+acDDGNGtdUUhKqEWFpKjgFevdfJPKx3JY 4YSpirzGB+rYu3rKa58Rjg== 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=1713106700; x= 1713193100; bh=tLyBh/4HDlCvssNTaR60UuEqwtowY8ekP9X7oij3C2g=; b=P I6C/udxnD3qEIWK3kXdXAl2gk+fBonQVHQcJD8WpcAQ7cui+J0jtmiXY6OqosC6m SsLCqkReBP3uRA1azC8j/WAc83iEBCzKuBmwaCXH2MMD73P+ljGeIGa+Kvla92IB F6mt3BZgVpr8nZfp9v0L9FJNQpXbainL409eTwMHf74ZIc6/eI0pkCCc4m8p2eT0 5U/VXrjz/jSTb7q2OtHY3ljUCT7WLvT/Yo4iEJN4EiyRyXgKXJlftl481WLf1IeD UqG+mFQgV4SzYfXKPfMsD9E9I1IjdjpVaM+vAqNz7JgU0RYGzBOA8EYpS7kblxir PqDwd+dLp7e3tSltGXuww== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudeiledgkeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtje ertddtvdejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepiedvhfeihe ehgeeuieeljeeitedtjeehudegfeelkedvleekhedtgfeiffefkedunecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvh gvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 14 Apr 2024 10:58:19 -0400 (EDT) Message-ID: <6f56cb2b-cda0-47b1-a412-719265fd75b9@aklaver.com> Date: Sun, 14 Apr 2024 07:58:18 -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 07:24, jack wrote: > Hello, > I am trying to load about 1.4 billion records into a postgresql table. > The data is in about 100 individual CSV files which I load individually > into the table using the COPY command. > After the data is loaded I perform updates to the data, and this is when > I get errors. Some updates work, some crash. > I am using psql and an SQL script file (update.sql) to perform the > updating (UPDATE table SET field=UPPER(field), etc.). > > The errors are all "Server closed the connection unexpectedly" > > I have been working on this for just over 1 year now, documenting every > step, and I am still unable to get this to work without it crashing > somewhere along the way. > I am beginning to wonder if postgreSQL is bi-polar. More information needed, to start: 1) Complete example of the code in the script. 2) Table definition(s) of those being copied into. 3) Sample of the data being copied. 4) The error message(s) generated. 5) Database locale > > Any help would be greatly appreciated. > Thank you -- Adrian Klaver adrian.klaver@aklaver.com