简体   繁体   中英

What is a Postgres “session”?

What is a Postgres "session" in the context of session-level advisory locks ? Can two threads/processes share the same session?

According to this thread , a session is "synonymous with a TCP connection". The language in Session Information Functions also supports this.

So, in the context of a session-level advisory lock, anything that shares the TCP connection will have access to the resource, and the resource won't be released unless explicitly unlocked, or the TCP connection is terminated.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM