Hiroshi Inoue <[EMAIL PROTECTED]> writes:
> Where do I release the lock ?
I'd say you shouldn't release it at all. Let it be held until end of
transaction.
rel = heap_open(relid, AccessExclusiveLock);
...
heap_close(rel, NoLock); /* close rel, keep lock till end of xact */
regards, tom lane
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?
http://www.postgresql.org/search.mpl
- [GENERAL] Perfomance decreasing Alexander Loginov
- Re: [GENERAL] Perfomance decreasing Erwin Lansing
- Re: [GENERAL] Perfomance decreasing Tom Lane
- RE: Re[2]: [GENERAL] Perfomance decreasing Hiroshi Inoue
- Re: [GENERAL] Perfomance decreasing Tom Lane
- Re: [GENERAL] Perfomance decreasing Hiroshi Inoue
- Re: [GENERAL] Perfomance decreasing Tom Lane
- Re: [GENERAL] Perfomance decreasing Hiroshi Inoue
- Re: [GENERAL] Perfomance decreasing Tom Lane
- Re: [GENERAL] Perfomance decreasing Hiroshi Inoue
- Re: [GENERAL] Perfomance decreasing wsheldah
- Re: [GENERAL] Perfomance decreasing Erwin Lansing
