From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Durumdara <durumdara@gmail.com>
To: Postgres General <pgsql-general@postgresql.org>
Subject: Re: pg_dump - how to force to show timestamps in client log
Date: Fri, 20 Nov 2020 12:56:35 -0800
Message-ID: <c7df7ab3-aaa3-7b47-dc41-08a205f00785@aklaver.com> (raw)
In-Reply-To: <CAEcMXhkrsYX3W-Co1dGasVv-qoCcpJRJFE9Dx+ww4HmvrvZz_A@mail.gmail.com>
References: <CAEcMXhkrsYX3W-Co1dGasVv-qoCcpJRJFE9Dx+ww4HmvrvZz_A@mail.gmail.com>
On 11/20/20 10:01 AM, Durumdara wrote:
> Hello!
>
> We need to log the pg_dump's state.
> What objects are in copy, and what are the starting and ending times.
>
> But when I try to redirect the output, the result doesn't have timestamps.
>
> PG 11, on Windows.
>
> As I see the -v option isn't enough to see the starting times.
>
> For example:
>
> 2020-11-19 12:00:01.084 Dump table content table1
> 2020-11-19 12:03:12.932 Dump table content table2
> ...
> etc.
If you are redirecting to a file it have the creation time that you can
use. Internally times don't really matter for the objects as the dump is
based on a snapshot. Said snapshot is based on visible transactions not
time. So for practical purposes they all occur at the same 'time'.
>
>
> Thank you for any information you can provide!
>
> dd
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, durumdara@gmail.com
Subject: Re: pg_dump - how to force to show timestamps in client log
In-Reply-To: <c7df7ab3-aaa3-7b47-dc41-08a205f00785@aklaver.com>
References: <CAEcMXhkrsYX3W-Co1dGasVv-qoCcpJRJFE9Dx+ww4HmvrvZz_A@mail.gmail.com> <c7df7ab3-aaa3-7b47-dc41-08a205f00785@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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