Re: seg fault crashed the postmaster - Mailing list pgsql-general

From Tom Lane
Subject Re: seg fault crashed the postmaster
Date
Msg-id 5834.1293828279@sss.pgh.pa.us
Whole thread Raw
In response to Re: seg fault crashed the postmaster  (Gordon Shannon <gordo169@gmail.com>)
Responses Re: seg fault crashed the postmaster  (Gordon Shannon <gordo169@gmail.com>)
Re: seg fault crashed the postmaster  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Gordon Shannon <gordo169@gmail.com> writes:
> Sorry, I left that out.  Yeah, I wondered that too, since these tables do
> not use toast.

Hm.  Well, given that the stack trace suggests we're trying to access a
tuple value that's not there (bogus pointer, or data overwritten since
the pointer was created), the "invalid memory alloc request size"
message is believable as another manifestation of the same problem.
The odds seem pretty good that the "corrupt compressed data" message
has the same origin at bottom, although the lack of any obvious data
to be compressed in this table is confusing.  Maybe you could get that
from trying to copy over a garbage value of that one varchar column,
though.

I tried to replicate the problem here without success, which suggests to
me that maybe it's plan-dependent.  Can you show what EXPLAIN gives you
for the troublesome query?

Another point here is that your logs suggest that the query blocked
behind the previous updater of the row for a very long time --- 90 sec
in one case, 30 sec in another.  Is that the typical runtime for one of
these updates?  If not, can you identify what the blocking query was?
If it's something different from another instance of the identical
update, it'd be useful to know what.

            regards, tom lane

pgsql-general by date:

Previous
From: Gordon Shannon
Date:
Subject: Re: seg fault crashed the postmaster
Next
From: Gordon Shannon
Date:
Subject: Re: seg fault crashed the postmaster