Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor doc updates, switched to 'stable' status.

  • Loading branch information...
commit 7b576c16fb2904a88fd0352b51863c26b71358f6 1 parent b35c636
@tvondra authored
Showing with 15 additions and 8 deletions.
  1. +1 −1  META.json
  2. +12 −5 README.md
  3. +2 −2 query_histogram.control
View
2  META.json
@@ -31,5 +31,5 @@
"version": "1.0.0",
"url": "http://pgxn.org/meta/spec.txt"
},
- "release_status" : "testing"
+ "release_status" : "stable"
}
View
17 README.md
@@ -19,8 +19,13 @@ memory management etc).
Install
-------
-Installing the extension is quite simple, especially if you're on 9.1.
-In that case all you need to do is this:
+Installing the extension is quite simple, especially if you're using
+pgxn client (which I recommend) - all you need to do is
+
+ $ pgxn install query_histogram
+ $ pgxn load -d mydb query_histogram
+
+but you may also do the installation manually like this:
$ make install
@@ -35,7 +40,7 @@ needed, replace `MODULE_PATHNAME` by $libdir.
Config
------
-No the functions are created, but you still need to load the shared
+Now the functions are created, but you still need to load the shared
module. This needs to be done from postgresql.conf, as the module
needs to allocate space in the shared memory segment. So add this to
the config file (or update the current values)
@@ -43,7 +48,7 @@ the config file (or update the current values)
# libraries to load
shared_preload_libraries = 'query_histogram'
- # known GUC prefixes
+ # known GUC prefixes (not needed since 9.2)
custom_variable_classes = 'query_histogram'
# config of the query histogram
@@ -52,6 +57,8 @@ the config file (or update the current values)
query_histogram.bin_count = 1000
query_histogram.dynamic = true
+And then restart the database to actually load the shared module.
+
The meaning of those config options is this:
* `query_histogram.sample_pct` - sampling rate, i.e. how many
@@ -123,4 +130,4 @@ The columns of the result are rather obvious:
The second function may be handy if you need to reset the histogram and
start collecting again (for example you may collect the stats regularly
-and reset it).
+and reset it).
View
4 query_histogram.control
@@ -1,6 +1,6 @@
# query histogram
-comment = 'Provides access to query histogram.'
+comment = 'Collects histogram of query runtimes.'
default_version = '1.1'
relocatable = true
-module_pathname = '$libdir/query_histogram'
+module_pathname = '$libdir/query_histogram'
Please sign in to comment.
Something went wrong with that request. Please try again.