Re: Does export operation cancel SQLs?

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

 



It's quite reasonable that pg_dump would block a TRUNCATE statement.

Two suggestions:
1. Add more threads to run the pg_dump faster, 
2, Reschedule the TRUNCATE command so that it doesn't run when the pg_dump is running.

On Wed, Feb 19, 2025 at 3:46 PM Siraj G <tosiraj.g@xxxxxxxxx> wrote:
Hello Everyone!

I did a little bit of digging in the logs. Here is the observation:

Export start timestamp:
"2025-02-19 05:29:16.911 UTC [675181]: [2-1] db=postgres,user=cloudsqladmin LOG: connection authorized: user=cloudsqladmin database=postgres application_name=pg_dump SSL enabled (protocol=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256, bits=128)"

The process is: 675181

Locks observed:
Soon after I started noticing:
timestamp

timestamp

  
Waiting processes get cancelled:
In the case, all the waiting pid (663355, 675442, 675407) got cancelled and the messages are:

textPayload
timestamp
timestamp
timestamp

--
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!

[Index of Archives]     [Postgresql Home]     [Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

  Powered by Linux