Hi, On 2020-04-10 12:20:01 -0400, Robert Haas wrote: > - We're only talking about writing a handful of tar files, and that's > in the context of a full-database backup, which is a much > heavier-weight operation than a query. > - There is not really any state that needs to be maintained across calls. > - The expected result is that a file gets written someplace, which is > not an in-memory data structure but something that gets written to a > place outside of PostgreSQL.
Wouldn't there be state like a S3/ssh/https/... connection? And perhaps a 'backup_id' in the backup metadata DB that'd one would want to update at the end? Greetings, Andres Freund