Re: RegisterShmemCallbacks() does nothing in single-user mode - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: RegisterShmemCallbacks() does nothing in single-user mode
Date
Msg-id 88d9378c-1ca5-456c-833b-cad657919407@iki.fi
Whole thread
Responses Re: [Proposal] add portaddr like hostaddr
List pgsql-hackers
On 26/08/2026 09:24, Ayush Tiwari wrote:
> Thanks for the updated flow, it looks much better.
> 
> I think the new test may need to be moved earlier in the TAP script.  It
> currently runs after shared_preload_libraries has been set to test_shmem,
> so the standalone backend loads and initializes test_shmem during startup.
> The later SELECT therefore uses an area that was already initialized,
> rather than exercising after-startup registration.
> 
> Would it make sense to move that block just after the first $node->stop?

Good catch. Moved the test to fix that and committed. Thanks!

- Heikki



Attachment

pgsql-hackers by date:

Previous
From: Denis Smirnov
Date:
Subject: Re: [Proposal] add portaddr like hostaddr
Next
From: vignesh C
Date:
Subject: Re: Proposal: Conflict log history table for Logical Replication