Re: Timestamp in pg_dump output, was Re: How I can know a back up database is up to date

From: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
To: rod(at)iol(dot)ie, pgsql-general(at)postgresql(dot)org
Subject: Re: Timestamp in pg_dump output, was Re: How I can know a back up database is up to date
Date: 2007-08-10 17:40:04
Message-ID: 716063.2044.qm@web31810.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


--- Raymond O'Donnell <rod(at)iol(dot)ie> wrote:
> On 09/08/2007 23:40, son(at)raider(dot)co(dot)nz wrote:
>
> > My database is restored from a dump file every day. How I know that this
> > database is up to date (as it has no timestamp in any table).
> >
> > If I create a file, I can know when I created it by seeing its property.
> > How I can do the same thing with a back up database.
>
> Actually, it *would* be really handy if pg_dump included a timestamp in
> the plain-text output. The version I use regularly (Windows)
> doesn't...it simply says "PostgreSQL database dump" which is only
> helpful to a point. :-)

If you need to, you can append your own timestamp to the dump file if you need it.

I rolled this functionality into a .bat file.

Regards,
Richard Broersma Jr.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mary Ellen Fitzpatrick 2007-08-10 17:56:58 PITR for postgresql-7.3
Previous Message Dmitry Koterov 2007-08-10 17:38:36 Deadlocks caused by a foreign key constraint