"Adriano Sperandio" <adriano.sperandio@by7.com.br> writes:
> Hello, I'm experiencing a problem when I run a given query. the error does
> not occur when I run the same query again.
Hm ... the most obvious theory is that you have a corrupted TOAST pointer
in one of those tables, but I don't see why the failure wouldn't be
reproducible if so. I wonder if you have got flaky hardware. Is the
complained-of OID always the same? Can you get a similar error when
doing just "select * from" one or the other of the input tables?
regards, tom lane