| From: | Noah Misch <noah(at)leadboat(dot)com> |
|---|---|
| To: | Robins Tharakan <tharakan(at)gmail(dot)com> |
| Cc: | Richard Guo <guofenglinux(at)gmail(dot)com>, PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: ERROR: tuple to be updated was already modified by an operation triggered by the current command |
| Date: | 2025-04-21 04:06:05 |
| Message-ID: | 20250421040605.f4.nmisch@google.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
On Fri, Apr 11, 2025 at 07:41:33AM -0700, Noah Misch wrote:
> On Fri, Apr 11, 2025 at 10:18:04PM +0930, Robins Tharakan wrote:
> > On Thu, 23 Jan 2025 at 19:42, Richard Guo <guofenglinux(at)gmail(dot)com> wrote:
>
> > Repro SQL
> > =========
> > CREATE TEMPORARY TABLE a(b boolean , UNIQUE(b)) ON COMMIT DELETE ROWS ;
> > CREATE TEMP TABLE d() INHERITS(a) ON COMMIT DROP ;
> > ANALYSE;
> --- a/src/backend/commands/vacuum.c
> +++ b/src/backend/commands/vacuum.c
> @@ -657,6 +657,8 @@ vacuum(List *relations, VacuumParams *params, BufferAccessStrategy bstrategy,
> if (use_own_xacts)
> {
> PopActiveSnapshot();
> + /* standard_ProcessUtility() does CCI if !use_own_xacts */
> + CommandCounterIncrement();
> CommitTransactionCommand();
Pushed: postgr.es/c/2d5350c
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Amit Kapila | 2025-04-21 05:17:30 | Re: Disabled logical replication origin session causes primary key errors |
| Previous Message | David Rowley | 2025-04-20 10:21:25 | Re: Error when using array_agg with filter where clause in pg16 and pg17 |