Add function create_event_record()

For logging an event to the event table without generating an external
event notification.

Rename existing create_event_record*() functions to create_event_notification*()
as this describes their function better.
This commit is contained in:
Ian Barwick
2017-07-05 09:52:22 +09:00
parent d3ec15cd25
commit 617dee6bd6
6 changed files with 62 additions and 42 deletions

View File

@@ -1413,7 +1413,7 @@ create_repmgr_extension(PGconn *conn)
log_notice(_("\"repmgr\" extension successfully installed"));
create_event_record(conn,
create_event_notification(conn,
&config_file_options,
config_file_options.node_id,
"cluster_created",