How is timeout implemented in postgresql?

Started by qihua wuabout 3 years ago2 messagesgeneral
Jump to latest
#1qihua wu
staywithpin@gmail.com

I tried to find out how timeout, such as statement_timeout, works in
source code, But there are so many places it appears in the code, anybody
could show me some clue about where is the entry point for timeout
implementation?

#2David G. Johnston
david.g.johnston@gmail.com
In reply to: qihua wu (#1)
Re: How is timeout implemented in postgresql?

On Mon, Jan 30, 2023 at 6:36 PM qihua wu <staywithpin@gmail.com> wrote:

I tried to find out how timeout, such as statement_timeout, works in
source code, But there are so many places it appears in the code, anybody
could show me some clue about where is the entry point for timeout
implementation?

https://github.com/postgres/postgres/blob/master/src/backend/utils/misc/timeout.c

David J.