Re: Proposal: two new role attributes and/or capabilities? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Proposal: two new role attributes and/or capabilities?
Date
Msg-id 651.1422573242@sss.pgh.pa.us
Whole thread Raw
In response to Re: Proposal: two new role attributes and/or capabilities?  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
List pgsql-hackers
Jim Nasby <Jim.Nasby@BlueTreble.com> writes:
> On 1/29/15 4:02 PM, Robert Haas wrote:
>> I don't think this is true, and I don't think it's been true for a
>> long time, if ever.  The difference between a manual vacuum and
>> autovacuum is that autovacuum commits suicide when it conflicts with
>> somebody else's lock request, and a manual vacuum doesn't.

> Any idea where we set that up?

The relevant logic is in the deadlock detector, which will cancel an
autovacuum transaction if it is blocking somebody else's lock request.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Jim Nasby
Date:
Subject: Re: Proposal: two new role attributes and/or capabilities?
Next
From: Peter Geoghegan
Date:
Subject: Re: INSERT ... ON CONFLICT {UPDATE | IGNORE} 2.0