pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedCan parallel vacuum commands lead to a lock in Postgres 10.2
2+ messages / 2 participants
[nested] [flat]
* Can parallel vacuum commands lead to a lock in Postgres 10.2
@ 2018-02-15 16:40 Meikel Bisping <info@mbisping.de>
0 siblings, 1 reply; 2+ messages in thread
From: Meikel Bisping @ 2018-02-15 16:40 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
Hello,
we have lots of scripts which issue individual vacuum commands to tables
like "vacuum full gxstage_bs" but also general "vaccum full" commands.
Until now these scripts run sequentially and there are no problems.
Now the idea is to run some scripts in parallel, my question is if
parallel vacuum commands can lead to a lock in 10.2?
Unfortunately it isn't easy to change the scripts and rely on
auto-vacuum since they are installed on lots of customers' hosts and
installing updates is very complex.
Any suggestion is very much appreciated
Meikel Bisping
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Can parallel vacuum commands lead to a lock in Postgres 10.2
@ 2018-02-15 21:47 PT <wmoran@potentialtech.com>
parent: Meikel Bisping <info@mbisping.de>
0 siblings, 0 replies; 2+ messages in thread
From: PT @ 2018-02-15 21:47 UTC (permalink / raw)
To: Meikel Bisping <info@mbisping.de>; +Cc: pgsql-general@lists.postgresql.org
On Thu, 15 Feb 2018 17:40:48 +0100
Meikel Bisping <info@mbisping.de> wrote:
> Hello,
>
> we have lots of scripts which issue individual vacuum commands to tables
> like "vacuum full gxstage_bs" but also general "vaccum full" commands.
> Until now these scripts run sequentially and there are no problems.
> Now the idea is to run some scripts in parallel, my question is if
> parallel vacuum commands can lead to a lock in 10.2?
> Unfortunately it isn't easy to change the scripts and rely on
> auto-vacuum since they are installed on lots of customers' hosts and
> installing updates is very complex.
They lock already. Running in parallel isn't going to lead to any
new locks.
I don't think that's what you're asking, though. I'm guessing that
what you're asking is are you going to experience deadlocks or other
types of unresolvable lock scenarios.
By design, no. In my experience, no.
In the real world ... it's always possible that you will uncover some
edge-case bug that leads to an unresolvable deadlock. I would rate that
as pretty unlikely, though. Locking is a pretty fundamental part of
Postgres that gets a lot of testing.
--
Bill Moran
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-02-15 21:47 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-02-15 16:40 Can parallel vacuum commands lead to a lock in Postgres 10.2 Meikel Bisping <info@mbisping.de>
2018-02-15 21:47 ` PT <wmoran@potentialtech.com>
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