Newbie question about locks...

Поиск
Список
Период
Сортировка
От jean-francois butkiewicz
Тема Newbie question about locks...
Дата
Msg-id 3A9D3B18.1050705@wanadoo.fr
обсуждение исходный текст
Список pgsql-general
Hi all,

I'm a newbie on this newsgroup, and i have some troubles with Postgres
7.0 on Linux. I am programming with libpq-c library to access a small
database. For one process, i have to lock a row before an update. I give
an "select * from xxx where yyy=zzzz for update" SQL command to lock the
row and it works well. But from an other app, when i try to update the
same row, the app seems to go into an infinite loop until i commit the
first transaction. It's OK for the data - the second app waits for the
first, but for the users it's not very nice. So, is there an option or a
command to know if a row is lock for an update ?

Thanks in advance for your answer(s).

regards,
BUTKIEWICZ jean-Francois
jean.francois.butkiewicz@acgcenter.com


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

Предыдущее
От: "Oberpriller, Wade D."
Дата:
Сообщение: PLPGSQL
Следующее
От: Ian Harding
Дата:
Сообщение: Re: Re: Migrate from MS SQL 6.5 to postgres??