Should smgrdounlink() be removed?

Started by Peter Geogheganalmost 6 years ago9 messageshackers
Jump to latest

I see that commit 33a94bae605edf3ceda6751916f0b1af3e88630a removed
smgrdounlinkfork() because it was dead code. Should we also remove
smgrdounlink() now? It also appears to be dead code.

--
Peter Geoghegan

#2vignesh C
vignesh21@gmail.com
In reply to: Peter Geoghegan (#1)
Re: Should smgrdounlink() be removed?

On Thu, May 7, 2020 at 8:33 AM Peter Geoghegan <pg@bowt.ie> wrote:

I see that commit 33a94bae605edf3ceda6751916f0b1af3e88630a removed
smgrdounlinkfork() because it was dead code. Should we also remove
smgrdounlink() now? It also appears to be dead code.

I could not find any code reference to smgrdounlink, I feel it can be
removed.

Regards,
Vignesh
EnterpriseDB: http://www.enterprisedb.com

#3Michael Paquier
michael@paquier.xyz
In reply to: vignesh C (#2)
Re: Should smgrdounlink() be removed?

On Thu, May 07, 2020 at 09:48:35AM +0530, vignesh C wrote:

I could not find any code reference to smgrdounlink, I feel it can be
removed.

The last use of smgrdounlink() was b416691. I have just looked at
Debian Code Search and github, and could not find a hit with the
function being used in some custom extension code, so it feels like a
safe bet to remove it.
--
Michael

#4Fujii Masao
masao.fujii@gmail.com
In reply to: Michael Paquier (#3)
Re: Should smgrdounlink() be removed?

On 2020/05/07 13:49, Michael Paquier wrote:

On Thu, May 07, 2020 at 09:48:35AM +0530, vignesh C wrote:

I could not find any code reference to smgrdounlink, I feel it can be
removed.

The last use of smgrdounlink() was b416691. I have just looked at
Debian Code Search and github, and could not find a hit with the
function being used in some custom extension code, so it feels like a
safe bet to remove it.

+1

Regards,

--
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION

#5Michael Paquier
michael@paquier.xyz
In reply to: Fujii Masao (#4)
Re: Should smgrdounlink() be removed?

On Thu, May 07, 2020 at 04:57:00PM +0900, Fujii Masao wrote:

On 2020/05/07 13:49, Michael Paquier wrote:

On Thu, May 07, 2020 at 09:48:35AM +0530, vignesh C wrote:

I could not find any code reference to smgrdounlink, I feel it can be
removed.

The last use of smgrdounlink() was b416691. I have just looked at
Debian Code Search and github, and could not find a hit with the
function being used in some custom extension code, so it feels like a
safe bet to remove it.

+1

So this gives the attached. Any thoughts?
--
Michael

Attachments:

smgrunlink-remove-v1.patchtext/x-diff; charset=us-asciiDownload+0-57
In reply to: Michael Paquier (#5)
Re: Should smgrdounlink() be removed?

On Thu, May 7, 2020 at 4:33 AM Michael Paquier <michael@paquier.xyz> wrote:

So this gives the attached. Any thoughts?

That seems fine.

--
Peter Geoghegan

#7Michael Paquier
michael@paquier.xyz
In reply to: Peter Geoghegan (#6)
Re: Should smgrdounlink() be removed?

On Thu, May 07, 2020 at 09:18:52AM -0700, Peter Geoghegan wrote:

On Thu, May 7, 2020 at 4:33 AM Michael Paquier <michael@paquier.xyz> wrote:

So this gives the attached. Any thoughts?

That seems fine.

Thanks for the review. If there are no objections, I would like to
apply that by tomorrow. So please let me know.
--
Michael

In reply to: Michael Paquier (#7)
Re: Should smgrdounlink() be removed?

Fine with me.

Peter Geoghegan
(Sent from my phone)

#9Michael Paquier
michael@paquier.xyz
In reply to: Peter Geoghegan (#8)
Re: Should smgrdounlink() be removed?

On Fri, May 08, 2020 at 09:21:25PM -0700, Peter Geoghegan wrote:

Fine with me.

Thanks, Peter. Done.
--
Michael