Re: Does export operation cancel SQLs? - Mailing list pgsql-admin

From Ron Johnson
Subject Re: Does export operation cancel SQLs?
Date
Msg-id CANzqJaDBgpErk2a-vXuWEW02+7z5-MFZUDChFHdeDogVnW_A+w@mail.gmail.com
Whole thread Raw
In response to Re: Does export operation cancel SQLs?  (Siraj G <tosiraj.g@gmail.com>)
List pgsql-admin
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@gmail.com> 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!

pgsql-admin by date:

Previous
From: Siraj G
Date:
Subject: Re: Does export operation cancel SQLs?
Next
From: "David G. Johnston"
Date:
Subject: Re: Does export operation cancel SQLs?