Marcin Gon <marcin77(at)ymail(dot)com> writes:
> I'm getting the following error from my Postgres database while inserting:
> ERROR: unexpected data beyond EOF in block of relation "RelationName".
You omitted the HINT that says this has only been known to occur in
connection with buggy kernels. I see you're running a fairly new
kernel, but it might still pay to inquire whether it's subject to the
wrong-lseek-result race condition that was around ahile back.
As far as getting out of the immediate problem is concerned, I think
restarting the postmaster ought to fix it.
regards, tom lane