pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thompson, Shon <Shon.Thompson@MaineGeneral.org>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: Invalid memory alloc querying field type bytea
Date: Wed, 17 Jun 2020 14:45:35 -0400
Message-ID: <1453988.1592419535@sss.pgh.pa.us> (raw)
In-Reply-To: <1EE72409308D54419CC1915B28D0FC2A5290F1E0@EXCPRDMS02.mainegeneral.org>
References: <1EE72409308D54419CC1915B28D0FC2A5290F1E0@EXCPRDMS02.mainegeneral.org>

"Thompson, Shon" <Shon.Thompson@MaineGeneral.org> writes:
> I'm getting errors when I query a table that uses data type bytea.  I can query the table if I don't include the field for data type bytea.  Here are the two error messages I get.  The first error is one generated from visual studio:
> "ERROR: XX000: invalid memory alloc request size 1294068297"

Looks like a corrupt-data problem.  I doubt it's directly the fault of
bytea; any variable-length field would have given a similar type of error,
because what this seems to be is a damaged field length word.

Do you see any clearly bogus data in other columns of the table?  That
might help isolate which row(s) have gotten damaged.  It seems somewhat
unlikely that only the bytea field header would be clobbered and not
any adjacent data.

The questions you should be asking yourself include whether your PG
version is up-to-date and whether the storage stack is reliable.

			regards, tom lane





view thread (2+ messages)

Message-ID: <1453988.1592419535@sss.pgh.pa.us>
Permalink:  ../1453988.1592419535@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1453988.1592419535@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, Shon.Thompson@MaineGeneral.org, pgsql-bugs@lists.postgresql.org
  Subject: Re: Invalid memory alloc querying field type bytea
  In-Reply-To: <1453988.1592419535@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox