Re: logging of Logical Decoding

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Andrey Lizenko <lizenko79(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: logging of Logical Decoding
Date: 2014-12-24 16:27:22
Message-ID: 549AE96A.6010804@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 12/24/2014 07:53 AM, Andrey Lizenko wrote:
> I've restarted server once again to be sure.
>
> For this commands:
>
> postgres(at)ubuntu12-vm:/mnt/data4$ psql
> psql (9.4.0)
> Type "help" for help.
> postgres=# show log_error_verbosity ;
> log_error_verbosity
> ---------------------
> terse
> (1 row)
> postgres=# SELECT * FROM
> pg_logical_slot_get_changes('regression_slot', NULL, NULL);
> location | xid | data
> ----------+-----+------
> (0 rows)
>
>
> I can see the following log:
>
> 2014-12-24 10:45:01 EST LOG: database system was shut down at
> 2014-12-24 10:44:52 EST
> 2014-12-24 10:45:01 EST LOG: database system is ready to accept
> connections
> 2014-12-24 10:45:01 EST LOG: autovacuum launcher started
> 2014-12-24 10:45:23 EST LOG: starting logical decoding for slot
> "regression_slot"
> 2014-12-24 10:45:23 EST STATEMENT: SELECT * FROM
> pg_logical_slot_get_changes('regression_slot', NULL, NULL);
> 2014-12-24 10:45:23 EST LOG: logical decoding found consistent
> point at A/75000100
> 2014-12-24 10:45:23 EST STATEMENT: SELECT * FROM
> pg_logical_slot_get_changes('regression_slot', NULL, NULL);
>
>
> So it seems terse verbosity doesn't help. Bug? Or something wrong in my
> config? As I said before, it is created from scratch and almost default,
> expect log_line_prefix

Well you wanted to reduce verbosity level which is what happens when you
set to terse.

What you are looking for is to eliminate logging the statement entirely?

I would have though having log_statement = none would prevent that.

Someone else will have to comment on why that is not so?

>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2014-12-24 16:50:26 Re: logging of Logical Decoding
Previous Message Andrey Lizenko 2014-12-24 15:53:49 Re: logging of Logical Decoding