From: | bricklen <bricklen(at)gmail(dot)com> |
---|---|
To: | Stelian Iancu <stelian(at)iancu(dot)ch> |
Cc: | "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: Enable pg_stat_statements |
Date: | 2014-02-06 14:25:06 |
Message-ID: | CAGrpgQ9d_vi_K3jYAb9svSzYup0pD0PmYMRvRqBbm60OjiWWTQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Thu, Feb 6, 2014 at 6:16 AM, Stelian Iancu <stelian(at)iancu(dot)ch> wrote:
> Hi all,
>
> I have Postgres 9.3.2 running on Debian 7.
>
> I would like to enable the pg_stat_statements extension. In order to do
> this, I added the following line to postgresql.conf:
>
> shared_preload_libraries = 'pg_stat_statements'
>
> However after that the server fails to restart and I get the following
> error message:
>
> Restarting PostgreSQL 9.3 database server: mainThe PostgreSQL server
> failed to start. Please check the log output: 2014-02-06 15:12:34 CET
> FATAL: could not access file "pg_stat_statements": No such file or
> directory ... failed!
> failed!
>
> Any ideas why?
Have you also installed the postgresql-contrib-9.3 package (via apt-get
etc)? Once you do that, you'll likely need to create the extension in your
database, eg. "create extension pg_stat_statements;", then you you can set
the shared_preload_libraries value.
From | Date | Subject | |
---|---|---|---|
Next Message | Stelian Iancu | 2014-02-06 14:30:53 | Re: Enable pg_stat_statements |
Previous Message | Stelian Iancu | 2014-02-06 14:16:14 | Enable pg_stat_statements |