Select and update with limit and locking

Поиск
Список
Период
Сортировка
От matt w
Тема Select and update with limit and locking
Дата
Msg-id AANLkTinmG0PKSb8ipSJhWN+Pc0jZ5OziVL-Oat1UgVKQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Select and update with limit and locking  (Sean Davis <sdavis2@mail.nih.gov>)
Список pgsql-novice
I'm trying to implement a priority queue. Performance is not much of an issue but there will be about 10m entries.

I need to lock the table, select ~1000 entries (out of ~1m matching the query) and update fields on only the entries selected.

Thanks so much for any help you can give me.

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

Предыдущее
От: Mladen Gogala
Дата:
Сообщение: Re: Passing a variable from the user interface to PostgreSQL
Следующее
От: Sean Davis
Дата:
Сообщение: Re: Select and update with limit and locking