Allow extensions to add new backup targets.
authorRobert Haas <rhaas@postgresql.org>
Tue, 15 Mar 2022 17:22:04 +0000 (13:22 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 15 Mar 2022 17:22:04 +0000 (13:22 -0400)
commite4ba69f3f4a1b997aa493cc02e563a91c0f35b87
tree42896f0b83306b28fbc131ff45d6ab49ef33c821
parent75eae090876f4d47bf6a1e1016627b75da612307
Allow extensions to add new backup targets.

Commit 3500ccc39b0dadd1068a03938e4b8ff562587ccc allowed for base backup
targets, meaning that we could do something with the backup other than
send it to the client, but all of those targets had to be baked in to
the core code. This commit makes it possible for extensions to define
additional backup targets.

Patch by me, reviewed by Abhijit Menon-Sen.

Discussion: http://postgr.es/m/CA+TgmoaqvdT-u3nt+_kkZ7bgDAyqDB0i-+XOMmr5JN2Rd37hxw@mail.gmail.com
src/backend/replication/Makefile
src/backend/replication/Makefile.orig [new file with mode: 0644]
src/backend/replication/basebackup.c
src/backend/replication/basebackup_target.c [new file with mode: 0644]
src/include/replication/basebackup_target.h [new file with mode: 0644]