Matthias Leisi <matthias(at)leisi(dot)net> writes:
> I have a behaviour of Postgres which I do not understand (and thus can
> not fix...). When inserting into a log-like table, I get the error
> message "compressed data is corrupt" for certain (rare) combination of
> values. When I re-create the same table structure from scratch and
> insert the same data in to that table, the error does not appear.
The most obvious theory for this is a corrupted index entry in the pkey
index. Does the issue go away if you REINDEX?
regards, tom lane