Re: [PATCH] Logical decoding of TRUNCATE - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: [PATCH] Logical decoding of TRUNCATE
Date
Msg-id CAH2-WzkKTQVWhz7ZEJKiv7c4emgAzPKL92ag64kZdbh2YKgDkw@mail.gmail.com
Whole thread Raw
In response to Re: [PATCH] Logical decoding of TRUNCATE  (Andres Freund <andres@anarazel.de>)
Responses Re: [PATCH] Logical decoding of TRUNCATE
List pgsql-hackers
On Sun, Dec 20, 2020 at 3:13 PM Andres Freund <andres@anarazel.de> wrote:
> Hm. Do I understand correctly that this problem is hit solely because
> the parallel mode code relies on there already have been a transaction
> snapshot set, thus avoiding the error? And that the code normally only
> works because GetTransactionSnapshot() will already have been called
> somewhere, before EnterParallelMode()?

It seems unlikely that InitializeParallelDSM() was ever intended to be
run in a background worker.

-- 
Peter Geoghegan



pgsql-hackers by date:

Previous
From: David Fetter
Date:
Subject: Re: \gsetenv
Next
From: "David G. Johnston"
Date:
Subject: Re: \gsetenv