FATAL: cannot request additional shared memory outside shmem_request_hook

From: Alexander Remus <confabulatus(at)pm(dot)me>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: FATAL: cannot request additional shared memory outside shmem_request_hook
Date: 2022-07-15 10:28:01
Message-ID: 81f82c00-8818-91f3-96fa-47976f94662b@pm.me
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hello,

I'm trying to get the plugin_debugger plugin to work on a Manjaro system.

I got the source code of Postgres from
https://github.com/postgres/postgres, and the source code of the
extension from git clone https://github.com/EnterpriseDB/pldebugger.git.

The build process went OK and a database has been init.

Now when I shut the the database down and edit the postgresql.conf file
as instructed in https://github.com/EnterpriseDB/pldebugger, the server
cannot be started again due to this error:

FATAL:  cannot request additional shared memory outside shmem_request_hook.

I'm sure that the extension built OK since I failed to change the
directory in my build script before and upon server start I got a
different error saying that it cannot find the plugin or something along
those lines.

In https://www.pgadmin.org/docs/pgadmin4/development/debugger.html it
says "You must have superuser privileges to use the debugger.". Not sure
about this, does this refer to the database role? The server is started
with a postgres system account, which is not a "Linux" superuser, at
least I cannot use sudo as this user.

The question now is: Is there a way to fix this?

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Julien Rouhaud 2022-07-15 10:49:22 Re: FATAL: cannot request additional shared memory outside shmem_request_hook
Previous Message Bruce Momjian 2022-07-14 20:34:55 Re: Fwd: Adding more detail to pg_upgrade documentation