简体   繁体   English

DISCARD ALL之后是否执行postgresql发布(建议)锁定? 命令?

[英]Does postgresql release (advisory) locks after a DISCARD ALL; command?

Does postgresql release (advisory) locks after a DISCARD ALL; DISCARD ALL;之后是否执行postgresql发布(建议)锁定DISCARD ALL; command? 命令?

It seems like it doesn't from this mail discussion I found . 似乎不是从我发现的此邮件讨论中获得的 But I was wondering if anyone could tell me if this was changed or fixed in a new release since nov 2008 ? 但是我想知道是否有人可以告诉我,自200811月以来在新版本中是否对此进行了更改或修复?

https://www.postgresql.org/docs/current/static/sql-discard.html https://www.postgresql.org/docs/current/static/sql-discard.html

Releases all temporary resources associated with the current session and resets the session to its initial state. 释放与当前会话关联的所有临时资源,并将会话重置为其初始状态。 Currently, this has the same effect as executing the following sequence of statements: 当前,这与执行以下语句序列具有相同的效果:

 SET SESSION AUTHORIZATION DEFAULT; RESET ALL; DEALLOCATE ALL; CLOSE ALL; UNLISTEN *; SELECT pg_advisory_unlock_all(); DISCARD PLANS; DISCARD SEQUENCES; DISCARD TEMP; 

supposedly?.. 应该吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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