pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Flaris Roland Feller <flaris.feller@gmail.com>
To: Peter J. Holzer <hjp-pgsql@hjp.at>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: ERROR: invalid memory alloc request size 18446744073709551613
Date: Mon, 10 Aug 2020 23:30:18 -0300
Message-ID: <B6739903-FA3D-42D5-9DE4-B746650670DC@gmail.com> (raw)
In-Reply-To: <20200622153315.GA25644@hjp.at>
References: <20200622153315.GA25644@hjp.at>

Hello Peter,

In this case, It was a COPY for a table to out of the database, but the error occurs with other commands like a SELECT.

Thanks in advance,
Flaris.

Flaris R. Feller
flaris.feller@gmail.com
http://linkedin.com/in/flarisfeller


> Em 22 de jun de 2020, à(s) 12:33, Peter J. Holzer <hjp-pgsql@hjp.at> escreveu:
> 
> On 2020-06-22 11:13:33 -0300, Flaris Feller wrote:
>> When using Postgres 9.6.15 on "CentOS Linux release 7.5.1804 (Core)" on Intel
>> x86_64 I noticed "invalid memory alloc request size" error at PostgreSQL logs.
>> This is the postgresq.log file's fragment of log where the error was found.
>> 
>> 2020-06-22 00:29:18 BRT [16987]: [1-1] db=bxs,user=postgres ERRO:  invalid
>> memory alloc request size 18446744073709551613
> 
> That's 2**64 - 3. So probably the size of some object is (erroneously)
> computed as -3 bytes.
> 
>> 2020-06-22 00:29:18 BRT [16987]: [2-1] db=bxs,user=postgres COMANDO:  COPY
>> public.cham_chamada....
> 
> Does this always happen in conjunction with a COPY command or sometimes
> with other commands, too? If the former, are you copying into the
> database or out of it?
> 
>        hp
> 
> -- 
>   _  | Peter J. Holzer    | Story must make more sense than reality.
> |_|_) |                    |
> | |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
> __/   | http://www.hjp.at/ |       challenge!"

view thread (43+ messages)  latest in thread

Message-ID: <B6739903-FA3D-42D5-9DE4-B746650670DC@gmail.com>
Permalink:  ../B6739903-FA3D-42D5-9DE4-B746650670DC@gmail.com/
Also on:    postgresql.org/message-id/B6739903-FA3D-42D5-9DE4-B746650670DC@gmail.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: flaris.feller@gmail.com, hjp-pgsql@hjp.at
  Subject: Re: ERROR: invalid memory alloc request size 18446744073709551613
  In-Reply-To: <B6739903-FA3D-42D5-9DE4-B746650670DC@gmail.com>
  References: <20200622153315.GA25644@hjp.at> <B6739903-FA3D-42D5-9DE4-B746650670DC@gmail.com>

* 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