Csaba Kalman <csaba818@xxxxxxxxxxx> writes: > I frequently get this error message: > PANIC: unexpected hash relation size: X, should be Y > There is no specific point where I get this error, it can occur anytime > after a SELECT/INSERT/UPDATE. I've never got it after DELETE so far. AFAICS this should only happen in INSERT/UPDATE, since it must be coming from an attempt to insert an entry in a hash index. What's the exact schema of this table including indexes? > Is it a bug, or I'm doing something wrong? It's a bug, but you've not provided enough information to let anyone reproduce or fix it. regards, tom lane