Re: Perfomance decreasing

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Perfomance decreasing
Дата
Msg-id 28513.998021231@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Perfomance decreasing  (Hiroshi Inoue <Inoue@tpf.co.jp>)
Список pgsql-general
Hiroshi Inoue <Inoue@tpf.co.jp> 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

В списке pgsql-general по дате отправления:

Предыдущее
От: Hiroshi Inoue
Дата:
Сообщение: Re: Perfomance decreasing
Следующее
От: Hiroshi Inoue
Дата:
Сообщение: Re: Perfomance decreasing