Re: parallel mode and parallel contexts - Mailing list pgsql-hackers

From Tom Lane
Subject Re: parallel mode and parallel contexts
Date
Msg-id 8027.1427232131@sss.pgh.pa.us
Whole thread Raw
In response to Re: parallel mode and parallel contexts  (Andres Freund <andres@2ndquadrant.com>)
List pgsql-hackers
Andres Freund <andres@2ndquadrant.com> writes:
> Also: Man, trying to understand the guts of deadlock.c only made me
> understand how *friggin* expensive deadlock checking is. I'm really
> rather surprised that it only infrequently causes problems.

The reason for that is that we only run deadlock checking if something's
been waiting for at least one second, which pretty much takes it out
of any performance-relevant code pathway.  I think it would be a serious
error to put any deadlock-checking-like behavior into mainline code.
Which probably means that Andres is right that teaching deadlock.c
about any new sources of deadlock is the way to approach this.
        regards, tom lane



pgsql-hackers by date:

Previous
From: "Baker, Keith [OCDUS Non-J&J]"
Date:
Subject: Re: Zero-padding and zero-masking fixes for to_char(float)
Next
From: Petr Jelinek
Date:
Subject: Re: Replication identifiers, take 4