Re: pg_restore & locks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I should add all of the locks are REFRESH MATERIALIZED VIEW... statements.

On Sun, Jun 13, 2021 at 8:37 AM Wells Oliver <wells.oliver@xxxxxxxxx> wrote:
Is it normal for a parallel pg_restore to result in locks? Will these usually resolve themselves?

The restore is running with 16 jobs into an RDS instance and at the moment pg_locks has about 243 AccessShareLock, 35 ExclusiveLock, 24 AccessExclusiveLock, and 8 ShareLock...

Will these just resolve as queries finish, or is it a concern? The restore has been running a long time.

pg_restore command:

time pg_restore \
--host=${HOST} \
--user=postgres \
--format=directory \
--dbname=${DB} \
--jobs ${JOBS} \ 

Where JOBS here 16.
--


--
Wells Oliver
wells.oliver@xxxxxxxxx

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux