[NEWBIE] need help optimizing this query

Поиск
Список
Период
Сортировка
От Dexter Tad-y
Тема [NEWBIE] need help optimizing this query
Дата
Msg-id 1078923481.2833.45.camel@localhost
обсуждение исходный текст
Ответы Re: [NEWBIE] need help optimizing this query  (Bill Moran <wmoran@potentialtech.com>)
Re: [NEWBIE] need help optimizing this query  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Список pgsql-general
Greetings,
I need help in optimizing this query:

select a.id, b.transaction from test as a left join pg_locks as b on
a.xmax = b.transaction where b.transaction is null;

im using the query in obtaining records not locked by other
transactions. any help is appreciated.

cheers!

Dexter Tad-y


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

Предыдущее
От: Peter Schuller
Дата:
Сообщение: Re: Sudden semi-deterministic disconnection between queries
Следующее
От: sferriol
Дата:
Сообщение: bug in rule?