public inbox for [email protected]
help / color / mirror / Atom feedFrom: Pavel Stehule <[email protected]>
To: Shaozhong SHI <[email protected]>
Cc: pgsql-sql <[email protected]>
Subject: Re: Memory allocation error
Date: Fri, 14 Jul 2023 09:13:23 +0200
Message-ID: <CAFj8pRCr=Qvsys2FKYscjWw5VR7wOYMFsHRoUwLsTZjgRV5yjQ@mail.gmail.com> (raw)
In-Reply-To: <CA+i5JwYtVS9z2E71PcNKAVPbOn4R2wuj-LqbJsYr_XOz73q7dQ@mail.gmail.com>
References: <CA+i5JwYtVS9z2E71PcNKAVPbOn4R2wuj-LqbJsYr_XOz73q7dQ@mail.gmail.com>
Hi
pá 14. 7. 2023 v 8:38 odesílatel Shaozhong SHI <[email protected]>
napsal:
> A function is being called in a loop. Sometime, there is an error.
>
> sqlstate: XX000
> NOTICE: message: invalid memory alloc request size 1073741824
>
> What to do to resolve the issue?
>
It depends what you do. Postgres doesn't allow to allocate bigger blocks
than 1GB. Maybe you create too big string or too big value of some other
type. But it can be signal of some cache bloating.
Can you show source code? Can you use gdb, attach to Postgres, place
breakpoint to this error message, and when you get this error, send stack
trace?
Regards
Pavel
>
> Regards,
>
> David
>
view thread (7+ messages) latest in thread
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: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Memory allocation error
In-Reply-To: <CAFj8pRCr=Qvsys2FKYscjWw5VR7wOYMFsHRoUwLsTZjgRV5yjQ@mail.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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox