pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bossart, Nathan <bossartn@amazon.com>
To: Masahiko Sawada <sawada.mshk@gmail.com>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Lyes Ameddah <lyes.amd@gmail.com>
Cc: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14941: Vacuum crashes
Date: Mon, 18 Dec 2017 22:18:09 +0000
Message-ID: <32F4B778-292B-41AF-891A-497B8127CD59@amazon.com> (raw)
In-Reply-To: <CAD21AoC9D528HBugWumq678t_GOLft-KyeGyG=VFeyKfHY4Z5A@mail.gmail.com>
References: <20171201160907.27110.74730@wrigleys.postgresql.org>
	<cabd2b8a-ebbc-ad38-3ca2-113882afd12a@2ndquadrant.com>
	<1E4815BF-18D2-4184-989A-975728F59B88@amazon.com>
	<CA+TgmoY3Azn-6cuuuV7KSJ=eFErJiVpyzUXEQF6J32aCzLLkHg@mail.gmail.com>
	<F7AE1E78-4C3A-4D2D-84EE-68E8D8898E6D@amazon.com>
	<CAEcwYAJY_EODBTj20xuZMKZNxdm0W7vVyCj1TQV7Kmcz+BBX3w@mail.gmail.com>
	<CA+TgmobBsYxLT586dHBtcsHHeSsJ7T6tr447tY3C08X5fFFraQ@mail.gmail.com>
	<D3FC73E2-9B1A-4DB4-8180-55F57D116B4E@amazon.com>
	<CAB7nPqTyY_7rXFi_=7DX_xZad43snZvDpw-KU+SuX20euGNhbQ@mail.gmail.com>
	<CAD21AoBGtBXxsDECmVVHsM-d64nK2qiDhZ5_tOreBH86=h7Smw@mail.gmail.com>
	<AD80AE03-8A5D-40A2-99C9-C26646489E49@amazon.com>
	<48A02BB8-A7DE-4D11-9586-0BBE5E6FE4F3@amazon.com>
	<CAD21AoC9D528HBugWumq678t_GOLft-KyeGyG=VFeyKfHY4Z5A@mail.gmail.com>

On 12/18/17, 3:30 PM, "Masahiko Sawada" <sawada.mshk@gmail.com> wrote:
> According to the following old comment, there might be reason why we
> didn't pass the information to vacuum_rel(). But your patch fetches
> the relation
> name even if the "relation" is not provided. I wonder if it can be
> problem in some cases.

Thanks for taking another look.

I've thought through a few edge cases here, but I haven't noticed
anything that I think is a problem.  If an unspecified relation is
renamed prior to get_rel_name(), we'll use the updated name, which
doesn't seem like an issue.  If an unspecified relation is renamed
between get_rel_name() and the log statement, we'll use the old name,
which seems possible in the current logging logic for VACUUM/ANALYZE.
And if an unspecified relation is dropped just prior to
get_rel_name(), the result will be NULL, and the logging will be
skipped (as it already is for concurrently dropped relations that are
not specified in the command).

Nathan



view thread (42+ messages)  latest in thread

Message-ID: <32F4B778-292B-41AF-891A-497B8127CD59@amazon.com>
Permalink:  ../32F4B778-292B-41AF-891A-497B8127CD59@amazon.com/
Also on:    postgresql.org/message-id/32F4B778-292B-41AF-891A-497B8127CD59@amazon.com

 · 

reply

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-bugs@postgresql.org
  Cc: bossartn@amazon.com, sawada.mshk@gmail.com, michael.paquier@gmail.com, robertmhaas@gmail.com, lyes.amd@gmail.com, tomas.vondra@2ndquadrant.com, pgsql-hackers@postgresql.org
  Subject: Re: BUG #14941: Vacuum crashes
  In-Reply-To: <32F4B778-292B-41AF-891A-497B8127CD59@amazon.com>
  References: <20171201160907.27110.74730@wrigleys.postgresql.org> <cabd2b8a-ebbc-ad38-3ca2-113882afd12a@2ndquadrant.com> <1E4815BF-18D2-4184-989A-975728F59B88@amazon.com> <CA+TgmoY3Azn-6cuuuV7KSJ=eFErJiVpyzUXEQF6J32aCzLLkHg@mail.gmail.com> <F7AE1E78-4C3A-4D2D-84EE-68E8D8898E6D@amazon.com> <CAEcwYAJY_EODBTj20xuZMKZNxdm0W7vVyCj1TQV7Kmcz+BBX3w@mail.gmail.com> <CA+TgmobBsYxLT586dHBtcsHHeSsJ7T6tr447tY3C08X5fFFraQ@mail.gmail.com> <D3FC73E2-9B1A-4DB4-8180-55F57D116B4E@amazon.com> <CAB7nPqTyY_7rXFi_=7DX_xZad43snZvDpw-KU+SuX20euGNhbQ@mail.gmail.com> <CAD21AoBGtBXxsDECmVVHsM-d64nK2qiDhZ5_tOreBH86=h7Smw@mail.gmail.com> <AD80AE03-8A5D-40A2-99C9-C26646489E49@amazon.com> <48A02BB8-A7DE-4D11-9586-0BBE5E6FE4F3@amazon.com> <CAD21AoC9D528HBugWumq678t_GOLft-KyeGyG=VFeyKfHY4Z5A@mail.gmail.com> <32F4B778-292B-41AF-891A-497B8127CD59@amazon.com>

* 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