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.96) (envelope-from ) id 1wQ60L-001HjQ-2y for pgsql-admin@arkaria.postgresql.org; Thu, 21 May 2026 16:12:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wQ60I-00AWU8-2s for pgsql-admin@arkaria.postgresql.org; Thu, 21 May 2026 16:12:11 +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.96) (envelope-from ) id 1wQ60I-00AWTy-1b for pgsql-admin@lists.postgresql.org; Thu, 21 May 2026 16:12:11 +0000 Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wQ60H-000000007fN-37tR for pgsql-admin@lists.postgresql.org; Thu, 21 May 2026 16:12:10 +0000 Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-393c93a0166so63095521fa.2 for ; Thu, 21 May 2026 09:12:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1779379928; cv=none; d=google.com; s=arc-20240605; b=S+AkP5BIFoeu6SaKZL4tElPkMLILxRCST7FVoqKNs743Ozf33z6O6MS+PtN1QtKLOB lAFrANW7GFohe7YUHl3BwuBzVa6VBbK7cHBnrW5gWAqIfeTMy8C7VnsAIpC/WgkLTPp2 XV3VndQqSB3vimbWSFSGz7chUXHHEG0cjE9dqjs/2cBgMmgzHoKFeMR/JyGrFuV/7mK3 Ho8En4KUhHF0BMTW4HvaujguhBFp9QBE+B8TsnX4qoIoUDKR9PuFP7ynKvNX8dBr4tVT Q++HC2Z8OQ+9XNyEutYLONS9BCqgQft8lkorMDfXE1/YAw5c8kh0kmclKl1H7SA7D0+t Wm1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=/iODYjh7J/qAVWHdfN34S2XCePOer/9MnkovGWRq/4I=; fh=w+NdVitGKczCsjwXWKDGhV4AmoWb4l6r06tzxs/Zo9k=; b=hu5auxL2qevyntK47j62CNO/hh+JOCkXpnN+65C7AIoXqzGXUzACuBaZW/Jl1W9cPw zfjhWixKs6zQk12jo/l528455gxAtQQsCth2H9xX46J9R/+S/owXJ9o5p5URrX2Vf1GO 3BoNlM2Ete4qKpEt/jORVFc8AiwK/DQDWNAEqcw1Pu2x4Mo4xuPs9msK4LiEy7xONl80 KlljxWFdH/x+oOJIj34KctEogPqUUpR6Cg28lkSTJZpF4y+X16wEAfkum4uXUQSzJ+Dv 9mczLTI3lO0/HV6ue0g6cl5BezutNQ5LURruTRxwIfJnxKXnF78Gcof9KEaa/5kKRTjz lfMA==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779379928; x=1779984728; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/iODYjh7J/qAVWHdfN34S2XCePOer/9MnkovGWRq/4I=; b=eRKyn0o0L2yqeFbJJDmGS0g7KC2BH5NjIoSySdlZtbqGFnn+ZIj474eUhe8pN4gBPr zImnZMzMXbgKk9iuCw+qRLJ5o0bDayZkH2q9nN2yhhVRjI1B2TU1IkAm6zLjkYMG17AM DgLOdbcgil7XdSDSMtj7eNLvqMSfWxoXWbVEXbC4QSz85loLniZaoQxP4MvdGlWSqna4 r8X9NIDe8JZqpOESfgI7fFSbaMfOLxrNaV9OS39K3EQM6Lgx48rICvZmHQpzktYRjFc6 /PfzflrPTivBTERyuBcWE42VPtR7DYxiWN1iiWPxFORajia3GMij0g8AAawCl8hcvMmL 9X8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779379928; x=1779984728; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=/iODYjh7J/qAVWHdfN34S2XCePOer/9MnkovGWRq/4I=; b=BD6V+qYGrWJ7x81OibtOZhMI7aJGGwG8gjJWQKfa1WmoKZaY0nQ1OknETEFnHVYIto QNlkZJzbt3HmG759sfddPFxZD+e1gFlX86kkb7Ix0s1Ww7xrasn9gucByg8o/9Zl0nKi nmFPZZiXXpO6A2Gl++gKQB5rF1GKUDZ+IyA4KAIaJEZ91dYDgU97ubNrgr9wAP0PSAat LjWxxXIDp+7Nx6kWjyguYeV96SSwi3fPiUN/Ki30zgKWd8psGslX5Xnwoiha2hEUkSg2 vmLwmmMXq4QpUwcilCH0vn4T/PnBYvKpVwdTrsg3+BIpXMqND/wvE0aEkwvN3bJosmPR 1E+Q== X-Gm-Message-State: AOJu0Yy9QIP32FAi6yZFwMPWO/elDRe1V4ZhzDuWoOboWGwPRVSgdcTU Na79osfhAL4R5DUwfwEvw65OoCzV1Os7PgYFUq0u0GaUjeNzhS7Otlwcu9yWBdg0ikbMDfvN9Pj 0JoKA5v66X7JdrdxxlaQa4H3DVXBfpfI= X-Gm-Gg: Acq92OHip9MOUm1SJ9hohZk2ZrETYFgrVaL9qNHFGeHUzPFlCE69YDB9TrFtgSk/7Vl 5oyLa7OxaxwVU0KNoJLqj7tzkeedBzIFbpJMJja2fWSLeXJ7VkV2dDt5Y/4WaIUDMaS8HrXMbn3 /N8jGUYO00QhaKqWp7APgnb/8IUfo1ZqDeFWEhvENw4k9nXOw0fTixGqB9cStWFCoLnRVuE6a4H VZaVs/nh7krnfY0tz0p4mZXCDD2eM8KNG4tP+nfEw0SaTzkar/VuQ1oGuwJrihPm7gnthDjI7Jb 9bTdpKahEfWgNhqzKSNpVAd6jJjo6pG68Yto4dTSVA== X-Received: by 2002:a2e:bc83:0:b0:38e:e6fd:65b2 with SMTP id 38308e7fff4ca-395ca5ad8fbmr14476441fa.21.1779379927731; Thu, 21 May 2026 09:12:07 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Raj Date: Thu, 21 May 2026 21:41:55 +0530 X-Gm-Features: AVHnY4IljYGqBhRrihGcL3dpWenGgR00W8VxBQ3KkCNyvTB-isrJlYSFq3mn3e0 Message-ID: Subject: Re: Partitioning table - Update on partitioning key To: Laurenz Albe Cc: Pgsql-admin Content-Type: multipart/alternative; boundary="0000000000008351070652562cc2" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000008351070652562cc2 Content-Type: text/plain; charset="UTF-8" No, updating the partition key (say colum created_at)....when u update the date , say change march to April, this record is in new partition and we get this error On Thu, 21 May 2026, 17:12 Laurenz Albe, wrote: > On Thu, 2026-05-21 at 16:45 +0530, Raj wrote: > > Update happing on partition key. > > > > And we get error 'Tuple to be locked was already moved to another > partition due to concurrent update error.. > > > > What's the best solution to handle it? > > Could you give us more context, like the exact statement and a description > of the data it is operating on? > > If I had to guess, I would suspect that your UPDATE statement tries to > modify > the same row more than once. > > Yours, > Laurenz Albe > --0000000000008351070652562cc2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
No, updating the partition key (say colum created_at)....= when u update the date , say change march to April,=C2=A0 this record is in= new partition and we get this error

On Thu, 21 May 20= 26, 17:12 Laurenz Albe, <lau= renz.albe@cybertec.at> wrote: