aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2022-10-11 10:37:52 +0530
committerAmit Kapila <akapila@postgresql.org>2022-10-11 10:37:52 +0530
commit776e1c8a5d1494e345e5e1b16a5eba5e98aaddca (patch)
tree763be8c9dd5f62cf004e8fd616536a744a466479 /src/backend/tcop/postgres.c
parent8432a815feb8897aabe0c6ed59f32bc47a6b2d50 (diff)
downloadpostgresql-776e1c8a5d1494e345e5e1b16a5eba5e98aaddca.tar.gz
postgresql-776e1c8a5d1494e345e5e1b16a5eba5e98aaddca.zip
Add a common function to generate the origin name.
Make a common replication origin name formatting function to replace multiple snprintf() expressions. This also includes logic previously done by ReplicationOriginNameForTablesync(). This makes the code to generate the origin name consistent among apply worker and tablesync worker. Author: Peter Smith Reviewed-By: Aleksander Alekseev Discussion: https://postgr.es/m/CAHut%2BPsa8hhfSE6ozUK-ih7GkQziAVAf4f3bqiXEj2nQiu-43g%40mail.gmail.com
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions