Re: Enable pg_stat_statements

Поиск
Список
Период
Сортировка
От Stelian Iancu
Тема Re: Enable pg_stat_statements
Дата
Msg-id ld06a6$ped$1@ger.gmane.org
обсуждение исходный текст
Ответ на Re: Enable pg_stat_statements  (bricklen <bricklen@gmail.com>)
Список 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.

В списке pgsql-admin по дате отправления:

Предыдущее
От: bricklen
Дата:
Сообщение: Re: Enable pg_stat_statements
Следующее
От: "Cassiano, Marco"
Дата:
Сообщение: Replica (v 9.3.2) crashed with "PANIC: WAL contains references to invalid pages"