- Notifications
You must be signed in to change notification settings - Fork5
Commitf0d6f20
committed
Keep pg_stat_statements' query texts in a file, not in shared memory.
This change allows us to eliminate the previous limit on stored querylength, and it makes the shared-memory hash table very much smaller,allowing more statements to be tracked. (The default value ofpg_stat_statements.max is therefore increased from 1000 to 5000.)In typical scenarios, the hash table can be large enough to hold all thestatements commonly issued by an application, so that there is little"churn" in the set of tracked statements, and thus little need to do I/Oto the file.To further reduce the need for I/O to the query-texts file, add a wayto retrieve all the columns of the pg_stat_statements view except forthe query text column. This is probably not of much interest for humanuse but it could be exploited by programs, which will prefer using thequeryid anyway.Ordinarily, we'd need to bump the extension version number for the latterchange. But since we already advanced pg_stat_statements' version numberfrom 1.1 to 1.2 in the 9.4 development cycle, it seems all right to justredefine what 1.2 means.Peter Geoghegan, reviewed by Pavel Stehule1 parentea9df81 commitf0d6f20
File tree
4 files changed
+929
-191
lines changed- contrib/pg_stat_statements
- doc/src/sgml
4 files changed
+929
-191
lines changedLines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
| 15 | + | |
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
37 |
| - | |
38 |
| - | |
| 37 | + | |
| 38 | + | |
39 | 39 |
| |
40 | 40 |
| |
41 |
| - | |
| 41 | + | |
42 | 42 |
| |
43 | 43 |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
34 |
| - | |
35 |
| - | |
| 34 | + | |
| 35 | + | |
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
39 |
| - | |
| 39 | + | |
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
|
0 commit comments
Comments
(0)