Re: Strange Windows problem, lock_timeout test request - Mailing list pgsql-hackers

From Stephen Frost
Subject Re: Strange Windows problem, lock_timeout test request
Date
Msg-id 20130227030644.GB16142@tamriel.snowman.net
Whole thread Raw
In response to Re: Strange Windows problem, lock_timeout test request  (Boszormenyi Zoltan <zb@cybertec.at>)
Responses Re: Strange Windows problem, lock_timeout test request
List pgsql-hackers
Zoltan,

* Boszormenyi Zoltan (zb@cybertec.at) wrote:
> attached is v30, I hope with everything fixed.

Making progress, certainly.

Given the hack to the API of enable_timeout_after() and the need for
timeout_reset_base_time(), I'm just going to voice my objection to the
"accumulated wait time on locks" portion again.  I still like the idea
of a timeout for waiting on relation-level locks, as we acquire those
all up-front and we'd be able to just set a timeout at the appropriate
point and then release it when we're past acquiring the relation-level
locks.  Seems like that would be much cleaner.

On the other hand, if we're going to go down this route, I'm really
starting to wonder if it should be the timeout systems responsibility to
keep track of such accumulated time.

Other than that..

> - List based enable/disable_multiple_timeouts()

That looks good, like the use of foreach(), etc, but I don't like how
you've set up delay_ms as a pointer..?  Looks to be to allow you to
initialize the TimeoutParams structs early in proc.c..?  Is there
another reason it needs to be a pointer that I'm missing?  Why not build
the TimeoutParam strcutures in the if() blocks that check if the GUCs
are set..?

> - separate per-lock and per-statement lock_timeout variants
> - modified comments and documentation

Thanks.
Stephen

pgsql-hackers by date:

Previous
From: Greg Smith
Date:
Subject: Re: initdb ignoring options due to bash environment on OS X
Next
From: Pavel Stehule
Date:
Subject: Re: bugfix: --echo-hidden is not supported by \sf statements