Re: Review for GetWALAvailability() - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Review for GetWALAvailability()
Date
Msg-id 20200617180437.GA1812@alvherre.pgsql
Whole thread Raw
In response to Re: Review for GetWALAvailability()  (Fujii Masao <masao.fujii@oss.nttdata.com>)
Responses Re: Review for GetWALAvailability()  (Fujii Masao <masao.fujii@oss.nttdata.com>)
List pgsql-hackers
I think passing the slot name when the slot is also passed is useless
and wasteful; it'd be better to pass NULL for the name and ignore the
strcmp() in that case -- in fact I suggest to forbid passing both name
and slot.  (Any failure there would risk raising an error during
checkpoint, which is undesirable.)

So I propose the following tweaks to your patch, and otherwise +1.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachment

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: language cleanups in code and docs
Next
From: Andres Freund
Date:
Subject: Re: [Patch] ALTER SYSTEM READ ONLY