PG-285 Doc: Order of modules

Added a note about strict order of modules for PG 13 and earlier versions

modified:   README.md
pull/142/head
Anastasia Alexadrova 2021-11-24 12:43:24 +02:00
parent a1e9526b51
commit f7275071cd
1 changed files with 6 additions and 1 deletions

View File

@ -159,7 +159,11 @@ ALTER SYSTEM SET shared_preload_libraries = 'pg_stat_monitor';
ALTER SYSTEM ALTER SYSTEM
``` ```
**NOTE**: If youve added other values to the shared_preload_libraries parameter, list all of them separated by commas for the `ALTER SYSTEM` command. For example, `ALTER SYSTEM SET shared_preload_libraries = 'foo, bar, pg_stat_monitor'` > **NOTE**: If youve added other modules to the `shared_preload_libraries` parameter (for example, `pg_stat_statements`), list all of them separated by commas for the `ALTER SYSTEM` command.
>
>:warning: For PostgreSQL 13 and earlier versions,`pg_stat_monitor` **must** follow `pg_stat_statements`. For example, `ALTER SYSTEM SET shared_preload_libraries = 'foo, pg_stat_statements, pg_stat_monitor'`.
>
>In PostgreSQL 14, modules can be specified in any order.
Start or restart the `postgresql` instance to apply the changes. Start or restart the `postgresql` instance to apply the changes.
@ -187,6 +191,7 @@ CREATE EXTENSION
This allows you to see the stats collected by `pg_stat_monitor`. This allows you to see the stats collected by `pg_stat_monitor`.
By default, `pg_stat_monitor` is created for the `postgres` database. To access the statistics from other databases, you need to create the extension for every database.
``` ```
-- Select some of the query information, like client_ip, username and application_name etc. -- Select some of the query information, like client_ip, username and application_name etc.