Re: Timestamps in outputs

From: Scott Ribe <scott_ribe(at)elevated-dev(dot)com>
To: Murthy Nunna <mnunna(at)fnal(dot)gov>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Timestamps in outputs
Date: 2023-12-24 16:27:28
Message-ID: 6B9627D8-576A-4960-B4F7-5C24C41182CE@elevated-dev.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> On Dec 24, 2023, at 8:36 AM, Murthy Nunna <mnunna(at)fnal(dot)gov> wrote:
>
> <your-script-or-command> | awk '{ print strftime("[%Y-%m-%d %H:%M:%S]"), $0; fflush() }' > t.txt &

Ooooh, awesome! I'm going to save that for reference.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Murthy Nunna 2023-12-24 17:00:20 RE: Query Performance after pg_restore
Previous Message Tom Lane 2023-12-24 16:12:15 Re: Query Performance after pg_restore