From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Armand Pirvu (gmail)" <armand(dot)pirvu(at)gmail(dot)com> |
Cc: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: shared_preload_libraries and pg_stat_statements |
Date: | 2015-09-04 20:18:36 |
Message-ID: | 9501.1441397916@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
"Armand Pirvu (gmail)" <armand(dot)pirvu(at)gmail(dot)com> writes:
> In my postgresql.conf I have
> shared_preload_libraries = 'pg_stat_statements, pg_shard' # (change requires restart)
> pg_stat_statements.max = 10000
> pg_stat_statements.track = all
> The server restarts ok, created the extension fine, but
> postgres=# select * from pg_stat_statements;
> ERROR: pg_stat_statements must be loaded via shared_preload_libraries
> And more
> postgres=# SHOW shared_preload_libraries;
> shared_preload_libraries
> --------------------------
> pg_shard
> (1 row)
I'd say either you edited the wrong config file ("select * from
pg_settings where name = 'shared_preload_libraries'" might help
debug that), or you failed to restart the server (this change
requires an actual stop and restart, not just reload config).
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Armand Pirvu (gmail) | 2015-09-04 20:28:09 | Re: shared_preload_libraries and pg_stat_statements |
Previous Message | Armand Pirvu (gmail) | 2015-09-04 20:03:03 | shared_preload_libraries and pg_stat_statements |