pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedEnable pg_stat_statements
3+ messages / 2 participants
[nested] [flat]
* Enable pg_stat_statements
@ 2014-02-06 14:16 Stelian Iancu <stelian@iancu.ch>
2014-02-06 14:25 ` Re: Enable pg_stat_statements bricklen <bricklen@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Stelian Iancu @ 2014-02-06 14:16 UTC (permalink / raw)
To: pgsql-admin
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?
Thanks in advance!
S.
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Enable pg_stat_statements
2014-02-06 14:16 Enable pg_stat_statements Stelian Iancu <stelian@iancu.ch>
@ 2014-02-06 14:25 ` bricklen <bricklen@gmail.com>
2014-02-06 14:30 ` Re: Enable pg_stat_statements Stelian Iancu <stelian@iancu.ch>
0 siblings, 1 reply; 3+ messages in thread
From: bricklen @ 2014-02-06 14:25 UTC (permalink / raw)
To: Stelian Iancu <stelian@iancu.ch>; +Cc: pgsql-admin
On Thu, Feb 6, 2014 at 6:16 AM, Stelian Iancu <stelian@iancu.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.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Enable pg_stat_statements
2014-02-06 14:16 Enable pg_stat_statements Stelian Iancu <stelian@iancu.ch>
2014-02-06 14:25 ` Re: Enable pg_stat_statements bricklen <bricklen@gmail.com>
@ 2014-02-06 14:30 ` Stelian Iancu <stelian@iancu.ch>
0 siblings, 0 replies; 3+ messages in thread
From: Stelian Iancu @ 2014-02-06 14:30 UTC (permalink / raw)
To: pgsql-admin
On 06/02/14 15:25, bricklen wrote:
>
> On Thu, Feb 6, 2014 at 6:16 AM, Stelian Iancu <stelian@iancu.ch
> <mailto:stelian@iancu.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.
>
No, I haven't done that, didn't know I have to do it, thanks! I will do
like you suggested.
Thanks again!
S.
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2014-02-06 14:30 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-02-06 14:16 Enable pg_stat_statements Stelian Iancu <stelian@iancu.ch>
2014-02-06 14:25 ` bricklen <bricklen@gmail.com>
2014-02-06 14:30 ` Stelian Iancu <stelian@iancu.ch>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox