"Tsukaeru.net Webmaster" <webmaster@tsukaeru.net> writes:
> My database is giving me trouble. I assume that it is due to a bad record,
> but I am unable to select/delete that record. Have checked logs with no
> helpful info.
The problem could be at the client side, eg libpq running out of memory.
(Its recovery from this problem is pretty abysmal at the moment :-(.)
Are you selecting a whole lot of data in this query?
regards, tom lane