|
PostgreSQL Source Code git master
|

Go to the source code of this file.
Macros | |
| #define | SUB_ACC(fld) shsubent->stats.fld += localent->fld |
Functions | |
| void | pgstat_report_subscription_error (Oid subid, LogicalRepWorkerType wtype) |
| void | pgstat_report_subscription_conflict (Oid subid, ConflictType type) |
| void | pgstat_create_subscription (Oid subid) |
| void | pgstat_drop_subscription (Oid subid) |
| PgStat_StatSubEntry * | pgstat_fetch_stat_subscription (Oid subid) |
| bool | pgstat_subscription_flush_cb (PgStat_EntryRef *entry_ref, bool nowait) |
| void | pgstat_subscription_reset_timestamp_cb (PgStatShared_Common *header, TimestampTz ts) |
| #define SUB_ACC | ( | fld | ) | shsubent->stats.fld += localent->fld |
| void pgstat_create_subscription | ( | Oid | subid | ) |
Definition at line 77 of file pgstat_subscription.c.
References InvalidOid, pgstat_create_transactional(), pgstat_get_entry_ref(), PGSTAT_KIND_SUBSCRIPTION, and pgstat_reset_entry().
Referenced by CreateSubscription().
| void pgstat_drop_subscription | ( | Oid | subid | ) |
Definition at line 95 of file pgstat_subscription.c.
References InvalidOid, pgstat_drop_transactional(), and PGSTAT_KIND_SUBSCRIPTION.
Referenced by DropSubscription().
| PgStat_StatSubEntry * pgstat_fetch_stat_subscription | ( | Oid | subid | ) |
Definition at line 106 of file pgstat_subscription.c.
References InvalidOid, pgstat_fetch_entry(), and PGSTAT_KIND_SUBSCRIPTION.
Referenced by pg_stat_get_subscription_stats().
| void pgstat_report_subscription_conflict | ( | Oid | subid, |
| ConflictType | type | ||
| ) |
Definition at line 62 of file pgstat_subscription.c.
References PgStat_BackendSubEntry::conflict_count, InvalidOid, PgStat_EntryRef::pending, PGSTAT_KIND_SUBSCRIPTION, pgstat_prep_pending_entry(), and type.
Referenced by ReportApplyConflict().
| void pgstat_report_subscription_error | ( | Oid | subid, |
| LogicalRepWorkerType | wtype | ||
| ) |
Definition at line 28 of file pgstat_subscription.c.
References PgStat_BackendSubEntry::apply_error_count, Assert(), InvalidOid, PgStat_EntryRef::pending, PGSTAT_KIND_SUBSCRIPTION, pgstat_prep_pending_entry(), PgStat_BackendSubEntry::sync_seq_error_count, PgStat_BackendSubEntry::sync_table_error_count, WORKERTYPE_APPLY, WORKERTYPE_SEQUENCESYNC, and WORKERTYPE_TABLESYNC.
Referenced by DisableSubscriptionAndExit(), start_apply(), start_sequence_sync(), and start_table_sync().
| bool pgstat_subscription_flush_cb | ( | PgStat_EntryRef * | entry_ref, |
| bool | nowait | ||
| ) |
Definition at line 119 of file pgstat_subscription.c.
References CONFLICT_NUM_TYPES, i, PgStat_EntryRef::pending, pgstat_lock_entry(), pgstat_unlock_entry(), PgStat_EntryRef::shared_stats, and SUB_ACC.
| void pgstat_subscription_reset_timestamp_cb | ( | PgStatShared_Common * | header, |
| TimestampTz | ts | ||
| ) |
Definition at line 145 of file pgstat_subscription.c.