Hi, https://www.postgresql.org/docs/devel/pgstatstatements.html
In pg_stat_statements docs, the columns about WAL activity are put in the table in the order of wal_bytes, wal_records and wal_fpi. But in the definition of pg_stat_statements view, wal_bytes is put last. So I think that it's better to reorder those columns in a consistent with the view definition. Patch attached. Thought? Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION
diff --git a/doc/src/sgml/pgstatstatements.sgml b/doc/src/sgml/pgstatstatements.sgml index b1d5f3d1dc..edacda971f 100644 --- a/doc/src/sgml/pgstatstatements.sgml +++ b/doc/src/sgml/pgstatstatements.sgml @@ -264,15 +264,6 @@ </entry> </row> - <row> - <entry><structfield>wal_bytes</structfield></entry> - <entry><type>numeric</type></entry> - <entry></entry> - <entry> - Total amount of WAL bytes generated by the statement - </entry> - </row> - <row> <entry><structfield>wal_records</structfield></entry> <entry><type>bigint</type></entry> @@ -291,6 +282,15 @@ </entry> </row> + <row> + <entry><structfield>wal_bytes</structfield></entry> + <entry><type>numeric</type></entry> + <entry></entry> + <entry> + Total amount of WAL bytes generated by the statement + </entry> + </row> + </tbody> </tgroup> </table>