Nagy Daniel <nagy.daniel@telekom.hu> writes:
> Here's a better backtrace:
The crash location suggests a problem with a corrupted tuple, but it's
impossible to guess where the tuple came from. In particular I can't
guess whether this reflects on-disk data corruption or some internal
bug. Now that you have (some of) the query, can you put together a test
case? Or try "select * from" each of the tables used in the query to
check for on-disk corruption.
regards, tom lane