]> granicus.if.org Git - postgresql/commitdiff
Rename dtrace probes for ongoing xlog -> wal conversion.
authorRobert Haas <rhaas@postgresql.org>
Thu, 9 Feb 2017 21:40:19 +0000 (16:40 -0500)
committerRobert Haas <rhaas@postgresql.org>
Thu, 9 Feb 2017 21:40:19 +0000 (16:40 -0500)
xlog-switch becomes wal-switch, and xlog-insert becomes wal-insert.

doc/src/sgml/monitoring.sgml
src/backend/access/transam/xlog.c
src/backend/access/transam/xloginsert.c
src/backend/utils/probes.d

index 01fad3870f678350017d204687cdba457af3937f..5b67defdb8918e6718a265b78c7bc8af4fb6bea5 100644 (file)
@@ -3349,14 +3349,14 @@ SELECT pg_stat_get_backend_pid(s.backendid) AS pid,
      <entry>Probe that fires when a dirty WAL buffer write is complete.</entry>
     </row>
     <row>
-     <entry><literal>xlog-insert</literal></entry>
+     <entry><literal>wal-insert</literal></entry>
      <entry><literal>(unsigned char, unsigned char)</literal></entry>
      <entry>Probe that fires when a WAL record is inserted.
       arg0 is the resource manager (rmid) for the record.
       arg1 contains the info flags.</entry>
     </row>
     <row>
-     <entry><literal>xlog-switch</literal></entry>
+     <entry><literal>wal-switch</literal></entry>
      <entry><literal>()</literal></entry>
      <entry>Probe that fires when a WAL segment switch is requested.</entry>
     </row>
index b91a6ffd533bbff8649c18dab0f835ef1f8d831a..2dcff7f54b5367182038f44cb1463739676aded2 100644 (file)
@@ -1114,7 +1114,7 @@ XLogInsertRecord(XLogRecData *rdata,
         */
        if (isLogSwitch)
        {
-               TRACE_POSTGRESQL_XLOG_SWITCH();
+               TRACE_POSTGRESQL_WAL_SWITCH();
                XLogFlush(EndPos);
 
                /*
index 797e68cd901ea020eb6fe0c3df261cdbafcb86d5..03b05f937f024db731dad68fbabcc50ed4a2d669 100644 (file)
@@ -429,7 +429,7 @@ XLogInsert(RmgrId rmid, uint8 info)
                                  XLR_CHECK_CONSISTENCY)) != 0)
                elog(PANIC, "invalid xlog info mask %02X", info);
 
-       TRACE_POSTGRESQL_XLOG_INSERT(rmid, info);
+       TRACE_POSTGRESQL_WAL_INSERT(rmid, info);
 
        /*
         * In bootstrap mode, we don't actually log anything but XLOG resources;
index 1aaadc15198bd0ec2114de8a0fe80a3671848303..214dc712cae07c888c069ef430f172dfbc62c096 100644 (file)
@@ -87,8 +87,8 @@ provider postgresql {
        probe smgr__md__write__start(ForkNumber, BlockNumber, Oid, Oid, Oid, int);
        probe smgr__md__write__done(ForkNumber, BlockNumber, Oid, Oid, Oid, int, int, int);
 
-       probe xlog__insert(unsigned char, unsigned char);
-       probe xlog__switch();
+       probe wal__insert(unsigned char, unsigned char);
+       probe wal__switch();
        probe wal__buffer__write__dirty__start();
        probe wal__buffer__write__dirty__done();
 };