[NEWBIE] need help optimizing this query - Mailing list pgsql-general

From Dexter Tad-y
Subject [NEWBIE] need help optimizing this query
Date
Msg-id 1078923481.2833.45.camel@localhost
Whole thread Raw
Responses Re: [NEWBIE] need help optimizing this query
Re: [NEWBIE] need help optimizing this query
List 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 by date:

Previous
From: Peter Schuller
Date:
Subject: Re: Sudden semi-deterministic disconnection between queries
Next
From: sferriol
Date:
Subject: bug in rule?