pg.ddx.io pgsql-general@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Marcin Barczynski <mbarczynski@starfishstorage.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Why does VACUUM FULL pg_class sometimes wait for ShareLock on another transaction after getting AccessExclusiveLock on pg_class?
Date: Thu, 22 Jul 2021 15:51:32 +0200
Message-ID: <5ff10b4457613f0bbb768a883af40bdfdb8fe1cd.camel@cybertec.at> (raw)
In-Reply-To: <CAOhG4wdr+qxugYwj7kQ5Xi+wS5rSDkR_t+YbQBhyTo1pk1gujQ@mail.gmail.com>
References: <CAOhG4wdr+qxugYwj7kQ5Xi+wS5rSDkR_t+YbQBhyTo1pk1gujQ@mail.gmail.com>
On Thu, 2021-07-22 at 12:55 +0200, Marcin Barczynski wrote:
> There was a long-running transaction consisting of two queries:
>
> CREATE TEMPORARY TABLE abc AS SELECT * FROM def_view;
> INSERT INTO xyz_table SELECT * FROM abc;
>
> When I ran VACUUM FULL pg_class, it waited for ShareLock on that transaction:
There must have been something else using "pg_class", since the above
won't take any permament locks on "pg_class", nor should it block VACUUM.
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
view thread (6+ messages) latest in thread
Message-ID: <5ff10b4457613f0bbb768a883af40bdfdb8fe1cd.camel@cybertec.at> Permalink: ../5ff10b4457613f0bbb768a883af40bdfdb8fe1cd.camel@cybertec.at/ Also on: postgresql.org/message-id/5ff10b4457613f0bbb768a883af40bdfdb8fe1cd.camel@cybertec.at ·
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-general@postgresql.org Cc: laurenz.albe@cybertec.at, mbarczynski@starfishstorage.com Subject: Re: Why does VACUUM FULL pg_class sometimes wait for ShareLock on another transaction after getting AccessExclusiveLock on pg_class? In-Reply-To: <5ff10b4457613f0bbb768a883af40bdfdb8fe1cd.camel@cybertec.at> References: <CAOhG4wdr+qxugYwj7kQ5Xi+wS5rSDkR_t+YbQBhyTo1pk1gujQ@mail.gmail.com> <5ff10b4457613f0bbb768a883af40bdfdb8fe1cd.camel@cybertec.at> * 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