"S -" <nat_lazy(at)hotmail(dot)com> writes:
> We are working on a project where we want to create a single linked list
> that holds information of all the locks taken or being waited for by
> transactions in Postgresql.
How will you maintain such a list, when the underlying state is
constantly being changed by many different processes?
Perhaps more to the point, why would you want to? The existing lock
status data structures in shared memory can be traversed at need.
regards, tom lane