Re: Sorting by related tables

Поиск
Список
Период
Сортировка
От Bill Moseley
Тема Re: Sorting by related tables
Дата
Msg-id 20050816003008.GA20241@hank.org
обсуждение исходный текст
Ответ на Re: Sorting by related tables  (Andreas Seltenreich <andreas+pg@gate450.dyndns.org>)
Список pgsql-general
On Mon, Aug 15, 2005 at 11:30:32PM +0200, Andreas Seltenreich wrote:
>
> This would be one possibility. If you don't want your application to
> deal with transactions being aborted because of non-serializable
> transactions, you could alternatively use explicit locking (SELECT ...
> FOR UPDATE) combined with the Read Committed isolation level (the
> default).

SELECT FOR UPDATE locks just the rows that are selected, right?  If I
understand correctly, that would not work for my case because I'm
updating different rows than I'm selecting.

My tables are small, so I'm thinking of just manually updating all the
rows in sequence to adjust the order when needed -- to make things a
bit more simple.  But it is a problem that I am curious about how best
to solve in a scalable way.

Thanks very much for your feedback.

--
Bill Moseley
moseley@hank.org


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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: converting curly apostrophes to standard apostrophes
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: How to write jobs in postgresql