Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> I want to write an admin utility that will view backend SQL queries, and
> be able to view locks and statistics using gdb on the running backend.
gdb on a backend doesn't seem to me like a reasonable component of a
production situation. I was thinking something along the line of a
SHOW command that would show the state of the lock table.
regards, tom lane