Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit55e566f

Browse files
committed
pgstat: remove some superflous comments from pgstat.h.
These would all need to be rephrased when moving to shared memory stats, butsince they don't provide actual information right now, remove them instead.The comments for PgStat_Msg* are left in, because they will all be removed aspart of the shared memory stats patch.Author: Andres Freund <andres@anarazel.de>Reviewed-By: Thomas Munro <thomas.munro@gmail.com>Discussion:https://postgr.es/m/20220303021600.hs34ghqcw6zcokdh@alap3.anarazel.de
1 parentedadf80 commit55e566f

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

‎src/include/pgstat.h

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -776,9 +776,6 @@ typedef union PgStat_Msg
776776

777777
#definePGSTAT_FILE_FORMAT_ID0x01A5BCA6
778778

779-
/*
780-
* Archiver statistics kept in the stats collector
781-
*/
782779
typedefstructPgStat_ArchiverStats
783780
{
784781
PgStat_Counterarchived_count;/* archival successes */
@@ -792,9 +789,6 @@ typedef struct PgStat_ArchiverStats
792789
TimestampTzstat_reset_timestamp;
793790
}PgStat_ArchiverStats;
794791

795-
/*
796-
* Background writer statistics kept in the stats collector
797-
*/
798792
typedefstructPgStat_BgWriterStats
799793
{
800794
PgStat_Counterbuf_written_clean;
@@ -803,9 +797,6 @@ typedef struct PgStat_BgWriterStats
803797
TimestampTzstat_reset_timestamp;
804798
}PgStat_BgWriterStats;
805799

806-
/*
807-
* Checkpointer statistics kept in the stats collector
808-
*/
809800
typedefstructPgStat_CheckpointerStats
810801
{
811802
TimestampTzstats_timestamp;/* time of stats file update */
@@ -818,10 +809,6 @@ typedef struct PgStat_CheckpointerStats
818809
PgStat_Counterbuf_fsync_backend;
819810
}PgStat_CheckpointerStats;
820811

821-
/* ----------
822-
* PgStat_StatDBEntryThe collector's data per database
823-
* ----------
824-
*/
825812
typedefstructPgStat_StatDBEntry
826813
{
827814
Oiddatabaseid;
@@ -866,10 +853,6 @@ typedef struct PgStat_StatDBEntry
866853
HTAB*functions;
867854
}PgStat_StatDBEntry;
868855

869-
/* ----------
870-
* PgStat_StatFuncEntryThe collector's data per function
871-
* ----------
872-
*/
873856
typedefstructPgStat_StatFuncEntry
874857
{
875858
Oidfunctionid;
@@ -880,9 +863,6 @@ typedef struct PgStat_StatFuncEntry
880863
PgStat_Counterf_self_time;
881864
}PgStat_StatFuncEntry;
882865

883-
/*
884-
* Global statistics kept in the stats collector
885-
*/
886866
typedefstructPgStat_GlobalStats
887867
{
888868
TimestampTzstats_timestamp;/* time of stats file update */
@@ -891,9 +871,6 @@ typedef struct PgStat_GlobalStats
891871
PgStat_BgWriterStatsbgwriter;
892872
}PgStat_GlobalStats;
893873

894-
/*
895-
* Replication slot statistics kept in the stats collector
896-
*/
897874
typedefstructPgStat_StatReplSlotEntry
898875
{
899876
NameDataslotname;
@@ -908,9 +885,6 @@ typedef struct PgStat_StatReplSlotEntry
908885
TimestampTzstat_reset_timestamp;
909886
}PgStat_StatReplSlotEntry;
910887

911-
/*
912-
* SLRU statistics kept in the stats collector
913-
*/
914888
typedefstructPgStat_SLRUStats
915889
{
916890
PgStat_Counterblocks_zeroed;
@@ -923,9 +897,6 @@ typedef struct PgStat_SLRUStats
923897
TimestampTzstat_reset_timestamp;
924898
}PgStat_SLRUStats;
925899

926-
/*
927-
* Subscription statistics kept in the stats collector.
928-
*/
929900
typedefstructPgStat_StatSubEntry
930901
{
931902
Oidsubid;/* hash key (must be first) */
@@ -935,10 +906,6 @@ typedef struct PgStat_StatSubEntry
935906
TimestampTzstat_reset_timestamp;
936907
}PgStat_StatSubEntry;
937908

938-
/* ----------
939-
* PgStat_StatTabEntryThe collector's data per table (or index)
940-
* ----------
941-
*/
942909
typedefstructPgStat_StatTabEntry
943910
{
944911
Oidtableid;
@@ -971,9 +938,6 @@ typedef struct PgStat_StatTabEntry
971938
PgStat_Counterautovac_analyze_count;
972939
}PgStat_StatTabEntry;
973940

974-
/*
975-
* WAL statistics kept in the stats collector
976-
*/
977941
typedefstructPgStat_WalStats
978942
{
979943
PgStat_Counterwal_records;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp