Summary: | Slony functions unnecessarily lock pg_catalog tables for update | ||
---|---|---|---|
Product: | Slony-I | Reporter: | Kristopher <kristopherwilson> |
Component: | stored procedures | Assignee: | Slony Bugs List <slony1-bugs> |
Status: | NEW --- | ||
Severity: | enhancement | CC: | slony1-bugs |
Priority: | low | ||
Version: | devel | ||
Hardware: | PC | ||
OS: | Linux |
Description
Kristopher
2013-07-23 10:18:02 UTC
There appears to be a need to do the FOR UPDATE, in that this was introduced to prevent deadlocks that can occur due to needing to escalate locks on such tables. A thought is to "hide" this query inside a security definer function, so that the permission could be granted to a more ordinary user. That seems a bit thorny, requires more thought. |