Movatterモバイル変換


[0]ホーム

URL:


Quick Links

remove reset_shared()

From:Nathan Bossart <nathandbossart(at)gmail(dot)com>
To:pgsql-hackers(at)postgresql(dot)org
Subject:remove reset_shared()
Date:2022-03-29 22:17:02
Message-ID:20220329221702.GA559657@nathanxps13
Views:Whole Thread |Raw Message |Download mbox |Resend email
Thread:
Lists:pgsql-hackers

Hi hackers,

Is there any reason to keep reset_shared() around anymore? It is now just
a wrapper function for CreateSharedMemoryAndSemaphores(), and AFAICT the
information in the comments is already covered by comments in the shared
memory code. I think it's arguable that the name of the function makes it
clear that it might recreate the shared memory, but if that is a concern,
perhaps we could rename the function to something like
CreateOrRecreateSharedMemoryAndSemaphores().

I've attached a patch that simply removes this wrapper function. This is
admittedly just nitpicking, so I don't intend to carry this patch further
if anyone is opposed.

--
Nathan Bossart
Amazon Web Services:https://aws.amazon.com

AttachmentContent-TypeSize
v1-0001-Remove-reset_shared.patchtext/x-diff2.1 KB

Responses

Browse pgsql-hackers by date

 FromDateSubject
Next MessageDaniel Gustafsson2022-03-29 22:19:05Re: Frontend error logging style
Previous MessageAndres Freund2022-03-29 22:16:15Re: Window Function "Run Conditions"

[8]ページ先頭

©2009-2026 Movatter.jp