[GENERAL] Matching statement and duration log lines - Mailing list pgsql-general

From Popov Aleksey
Subject [GENERAL] Matching statement and duration log lines
Date
Msg-id HE1PR0201MB205705C9E46632B735943D89B1460@HE1PR0201MB2057.eurprd02.prod.outlook.com
Whole thread Raw
Responses Re: [GENERAL] Matching statement and duration log lines
List pgsql-general

Hello!

I am sending PG logs to Elasticsearch and want to merge a line with statement and a line with duration into one document.
Having a statement line and a duration line, can I assume that if a session ids (%c) of these lines match,
and numbers of log lines (%l) are consecutive, then the duration line belongs to statement line?

pgsql-general by date:

Previous
From: Martin Moore
Date:
Subject: Re: [GENERAL] Postgres 9.6 fails to start on VMWare
Next
From: Önder Kalacı
Date:
Subject: Re: [GENERAL] A question on pg_stat_subscription view