On 2019-03-18 08:32, Magnus Hagander wrote: > Going based on the current setting of the directory seems defensible to > me, with the argument of "we trust you created the directory the way you > want the rest of the system to be". > > > Which I believe is also how a plain unix cp (or tar or whatever) would > work, isn't it? I think that alone is a pretty strong reason to work the > same as those -- they're not entirely unsimilar.
Those don't copy over the network. In the case of pg_basebackup, there is nothing that ensures that the remote system has the same users or groups or permission setup. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services