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 1ssiHJ-00AKmf-AS for pgsql-bugs@arkaria.postgresql.org; Mon, 23 Sep 2024 12:34:58 +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 1ssiGK-007scY-Ga for pgsql-bugs@arkaria.postgresql.org; Mon, 23 Sep 2024 12:33:56 +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 1ssiGJ-007sWq-V0 for pgsql-bugs@lists.postgresql.org; Mon, 23 Sep 2024 12:33:56 +0000 Received: from mout-u-107.mailbox.org ([2001:67c:2050:101:465::107]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ssiGG-000e1l-KA for pgsql-bugs@lists.postgresql.org; Mon, 23 Sep 2024 12:33:54 +0000 Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-107.mailbox.org (Postfix) with ESMTPS id 4XC2V13Q2xz9sRh; Mon, 23 Sep 2024 14:33:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ewie.name; s=MBO0001; t=1727094825; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FmzDdZgeXIEqCw8tY25SQXWHPoEwnhSHIx8/U5TScrA=; b=Sr+/nz5b2G/D3dwjG3HMBo3IScFAg6lbP+EjVE4UDelqejQLwJVtNvjkEZ+ul01bVV08gx AH5yD48B1A5lxCJm7z4MZYFpdEhaIpxO+HxHNX8sKY7YHBVE5YzwR7Mn2g3iVJbqkjDftO mm0O/Erymy33JEF1tHyYTX2WMYp2oPrt4BFiy5a0kIv/tz8Aa7nuPASalsLliTy8ogWeO8 Aw6ptwtjsOwR29CAPDYyl52Qg0t/5Ov+R+3bRwPbDRLoIwbRfbF1FRnkbKq9XQaaSrEbvx 5h/p62XM4bQEf3pIWfhlCBrxihz3OvFI/Y8z2aDM4sRiSVEIKwNNUhBaK2aivQ== Date: Mon, 23 Sep 2024 14:33:41 +0200 From: Erik Wienhold To: Mark Kostevych Cc: "pgsql-bugs@lists.postgresql.org" , Jacob Shure , Michael Green Subject: Re: Can't fix Pgsql Insert Command Issue. Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-09-23 06:39 +0200, Mark Kostevych wrote: > We are facing a critical issue while inserting our records to > Postgresql Server. It was working well before but after 09/20, it > failed, and we can't find what to fix. 1) What has changed on 09/20? Any triggers defined on table "checks"? 2) What error message do you get if the statement fails? 3) Or is the statement just hanging, judging by the attached screenshot? The table or rows may be locked. The wiki should help you with that: https://wiki.postgresql.org/wiki/Lock_Monitoring > Here is a sample SQL Command for your reference. > Insert INTO checks (id, name, number, status, sub_total, tax_total, total= , mandatory_tip_amount, open_time, close_time, employee_name, employee_role= _name, employee_id, employee, guest_count, type, type_id, taxed_type, table= _name, location, zone, autograt_tax, trading_day_id, trading_day, updated_a= t, non_revenue_total, revenue_total, outstanding_balance, comp_total, voidc= omp_reason_text, voidcomp_type, voidcomp_value) VALUES ($$d2a187a5-9c61-425= c-a956-ca730437cdbd$$,$token$806$token$,1108,$$Closed$$,316.80,18.96,335.76= ,0.00,$$2024-09-20T12:32:10-07:00$$,$$2024-09-20T13:33:58-07:00$$,$$Kendall= Rucks$$,$$Server$$,$$d014cf80-5ebb-45e7-a919-fc38a3b46be4$$,$$398007_Kenda= ll_Bird Streets Club_Server$$,7,$$Table$$,1,$$exclusive$$,$$806$$,$$Bird St= reets Club$$,$$Lounge$$,0.00,$$912b2778-822f-4586-ae3e-5970379867d2$$,$$202= 4-09-20$$,$$2024-09-20T20:33:58.000Z$$,0,316.8,0.00, 0, $$$$, $$$$, NULL), = ($$fbe112aa-e59f-4345-9b66-86a693a795d7$$,$token$Test$token$,2919,$$Closed$= $,0.00,0.00,0.00,0.00,$$2024-09-20T13:02:34-07:00$$,$$2024-09-20T13:03:04-0= 7:00$$,$$Ian Brown$$,$$Admin$$,$$bb71f90d-61c4-46d1-bb9c-116d9444ec30$$,$$m= anager$$,1,$$Tab$$,2,$$inclusive$$,$$$$,$$Poppy$$,$$$$,0.00,$$75f5b22a-e3c4= -4c54-9c27-3faec5595024$$,$$2024-09-20$$,$$2024-09-20T20:03:06.000Z$$,0,0,0= =2E00, 0, $$$$, $$$$, NULL), ($$10aef268-3973-4e74-b92e-761572bd7fc7$$,$tok= en$L=E2=80=99Agence shoot$token$,7302,$$Closed$$,23373.00,0.00,23373.00,0.0= 0,$$2024-09-20T13:14:51-07:00$$,$$2024-09-20T13:15:39-07:00$$,$$Sara Martin= ez$$,$$Manager$$,$$645cb249-d9a9-4965-9b57-23d4ede686ee$$,$$manager$$,1,$$T= ab$$,2,$$exclusive$$,$$$$,$$Keys Los Angeles$$,$$$$,0.00,$$a7073607-3880-47= 5f-91f6-46f23b7af08f$$,$$2024-09-20$$,$$2024-09-20T20:15:41.000Z$$,2337300,= 0,0.00, 0, $$$$, $$$$, NULL) ON CONFLICT(id) DO UPDATE SET sub_total =3D EX= CLUDED.sub_total, tax_total =3D EXCLUDED.tax_total, employee=3DEXCLUDED.emp= loyee,total =3D EXCLUDED.total, open_time =3D EXCLUDED.open_time, close_tim= e =3D EXCLUDED.close_time, updated_at =3D EXCLUDED.updated_at,voidcomp_reas= on_text =3D EXCLUDED.voidcomp_reason_text, voidcomp_type =3D EXCLUDED.voidc= omp_type, voidcomp_value =3D EXCLUDED.voidcomp_value,comp_total=3DEXCLUDED.= comp_total, non_revenue_total =3D EXCLUDED.non_revenue_total, revenue_total= =3D EXCLUDED.revenue_total; --=20 Erik