Re: [DOCS] Stats views and functions not in order?
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Smith <smithpb2250@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-11-06T18:50:32Z
Lists: pgsql-hackers
Peter Smith <smithpb2250@gmail.com> writes: > Sorry, I forgot the attachments in the previous post. PSA. I spent a bit of time looking at this. I agree that a lot of the current ordering choices here look like they were made with the advice of a dartboard, and there's a number of things that are pretty blatantly just sloppy merging (like the out-of-order wait-event items). However, I'm not a big fan of "alphabetical order at all costs", because that frequently leads to ordering decisions that are not a lot better than random from a semantic standpoint. For example, I resist the idea that it's sensible to put pg_stat_all_indexes before pg_stat_all_tables. I'm unconvinced that putting pg_stat_sys_tables and pg_stat_user_tables far away from pg_stat_all_tables is great, either. So ... how do we proceed? One thing I'm unhappy about that you didn't address is that the subsection ordering in "28.4. Progress Reporting" could hardly have been invented even with a dartboard. Perhaps it reflects development order, but that's a poor excuse. I'd be inclined to alphabetize by SQL command name, but maybe leave Base Backup to the end since it's not a SQL command. regards, tom lane
Commits
-
doc: Re-order Table 28.2 "Collected Statistics Views"
- 72e0ff2677c4 16.0 landed
-
doc: Re-order Table 28.35 "Per-Backend Statistics Functions"
- b1d0158060f3 16.0 landed
-
doc: Re-order Table 28.12 "Wait Events of type LWLock"
- 9c558b94f0ca 16.0 landed
-
doc: Re-order sections of "28.4. Progress Reporting"
- 6573643501e9 16.0 landed