| From: | Heikki Linnakangas <hlinnaka(at)iki(dot)fi> |
|---|---|
| To: | Ayush Tiwari <ayushtiwari(dot)slg01(at)gmail(dot)com> |
| Cc: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com> |
| Subject: | Re: RegisterShmemCallbacks() does nothing in single-user mode |
| Date: | 2026-08-26 10:01:17 |
| Message-ID: | 88d9378c-1ca5-456c-833b-cad657919407@iki.fi |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | vignesh C | 2026-08-26 10:04:32 | Re: Proposal: Conflict log history table for Logical Replication |
| Previous Message | Denis Smirnov | 2026-08-26 09:55:43 | Re: [Proposal] add portaddr like hostaddr |