Re: Locking rows

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: Locking rows
Дата
Msg-id m3n0kgs8xy.fsf@varsoon.wireboard.com
обсуждение исходный текст
Ответ на Locking rows  (Jean-Christian Imbeault <jc@mega-bucks.co.jp>)
Список pgsql-general
Jean-Christian Imbeault <jc@mega-bucks.co.jp> writes:

> I have written an application that prints out data from a
> database. One problem I am encountering is in the time it takes to
> generate the print file the data may have changed.

If you use a single query to generate the rows, this will not be a
problem.

If you use multiple queries, execute them all inside a transaction and
you will get a consistent view of the database.

No locking needed.

-Doug

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

Предыдущее
От: Jonathan Bartlett
Дата:
Сообщение: Re: Few Simple Questions
Следующее
От: "Berend Tober"
Дата:
Сообщение: Some useful plpgsl