From: Michael Paquier <michael@paquier.xyz>
To: Andres Freund <andres@anarazel.de>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgresql.org
Cc: pgsql-committers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Fix inadequate locking during get_rel_oids().
Date: Tue, 6 Mar 2018 09:57:54 +0900
Message-ID: <20180306005753.GC1878@paquier.xyz> (raw)
In-Reply-To: <20180306003409.qwwdgn3bw4ifi5s4@alap3.anarazel.de>
References: <E1dy1ru-0002RK-8q@gemulon.postgresql.org>
<20180306001152.qxguen2kclystz7p@alap3.anarazel.de>
<20180306003409.qwwdgn3bw4ifi5s4@alap3.anarazel.de>
On Mon, Mar 05, 2018 at 04:34:09PM -0800, Andres Freund wrote:
> Scratch that, we should be going down the
> /* If caller supplied OID, there's nothing we need do here. */
> if (OidIsValid(vrel->oid))
> {
> oldcontext = MemoryContextSwitchTo(vac_context);
> vacrels = lappend(vacrels, vrel);
> MemoryContextSwitchTo(oldcontext);
> }
> branch in expand_vacuum_rel() for autovacuum, so this shouldn't
> matter. Sorry for the noise
Yes, I don't see a problem. However I can understand that it is easy to
be confused on those code paths if you are not used to them and this
area has changed quite a bit the last years. Perhaps we could add an
Assert(IsAutoVacuumWorkerProcess()) to reduce the confusion?
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz, andres@anarazel.de, tgl@sss.pgh.pa.us, pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Fix inadequate locking during get_rel_oids().
In-Reply-To: <20180306005753.GC1878@paquier.xyz>
References: <E1dy1ru-0002RK-8q@gemulon.postgresql.org> <20180306001152.qxguen2kclystz7p@alap3.anarazel.de> <20180306003409.qwwdgn3bw4ifi5s4@alap3.anarazel.de> <20180306005753.GC1878@paquier.xyz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox