Re: pg_restore: warning: invalid creation date in header

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Wells Oliver <wells(dot)oliver(at)gmail(dot)com>
Cc: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: pg_restore: warning: invalid creation date in header
Date: 2021-06-13 15:13:29
Message-ID: 50545.1623597209@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Wells Oliver <wells(dot)oliver(at)gmail(dot)com> writes:
> These are the first lines when trying to restore a dump created on a
> machine in the PDT time zone, into a machine in UTC. Not sure if it
> matters, but I wanted to ask.

> pg_restore: warning: invalid creation date in header

Hmm. Looking at the code for that, it knows nothing of timezones.
It's complaining that mktime() failed, which perhaps is because of
bad data in the archive header ... but I'm betting it has something
to do with failing to initialize all the fields of the struct tm
it passes.

However, that code's been like that a long time and we've not heard
previous reports of this. Could you say exactly what the (receiving)
platform is? How was pg_restore built (any special switches, etc)?
The output of pg_config on that machine might be helpful.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Wells Oliver 2021-06-13 15:37:34 pg_restore & locks
Previous Message Nikhil Shetty 2021-06-13 15:11:21 Re: vacuumdb idle processes