"Jim C. Nasby" <jnasby(at)pervasive(dot)com> writes:
> Should we ask users if anyone is currently doing this? It seems pretty
> ugly to have most functions return the last used WAL byte with only
> stop_backup returning the first unused byte.
No, you misunderstood. All the functions that return WAL location
strings use the same convention. It's the two new functions that
convert a WAL location string to a filename that have the boundary-case
logic.
regards, tom lane