pgsql: pg_basebackup: Use atexit()

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: pg_basebackup: Use atexit()
Дата
Msg-id E1ggWx1-00078v-EY@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
pg_basebackup: Use atexit()

Instead of using our custom disconnect_and_exit(), just register the
desired cleanup using atexit() and use the standard exit() to leave
the program.

Reviewed-by: Alvaro Herrera <alvherre@2ndquadrant.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://www.postgresql.org/message-id/flat/ec4135ba-84e9-28bf-b584-0e78d47448d5@2ndquadrant.com/

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a4205fa00d526c3158c677a3d82042f88d429f84

Modified Files
--------------
src/bin/pg_basebackup/pg_basebackup.c  | 142 +++++++++++++++++----------------
src/bin/pg_basebackup/pg_receivewal.c  |  45 ++++++-----
src/bin/pg_basebackup/pg_recvlogical.c |  18 ++---
3 files changed, 104 insertions(+), 101 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Replace the data structure used for keyword lookup.
Следующее
От: Andrew Gierth
Дата:
Сообщение: pgsql: doc: document that INFO messages always go to client.