pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brent Dombrowski <brent.dombrowski@gmail.com>
To: Lars Gustafsson <gumse@mac.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: internal format of timstamp?
Date: Thu, 29 Dec 2011 13:42:59 -0800
Message-ID: <4DA72F25-6139-41B4-AE30-93072A7B337C@gmail.com> (raw)
In-Reply-To: <193A440A-E7E7-4772-9C28-684E7FD29511@mac.com>
References: <193A440A-E7E7-4772-9C28-684E7FD29511@mac.com>

On Dec 29, 2011, at 7:08 AM, Lars Gustafsson wrote:

> Hi,
> 
> I am trying to recover a lot of deleted rows from a database  ( pg 8.2.3 ) , not my database, I promise…..
> 
> When using the tool pgfsck I get good results, but timestamp is not implemented.
> 
> When trying to export as int8  i get   fx.  4735129360236469258   representing   december 29, 2011, 16:30  
> 
> But how should I do the conversion from the numeric value to the actual timestamp ?
> 
> Regards,
> Lars.
> -- 
> Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-sql

I'm not sure what the internal timestamp representation is, but I thought it went down to fractions of a second.

http://www.postgresql.org/docs/8.2/interactive/datatype-datetime.html#DATATYPE-DATETIME-INTERNALS

Brent.




view thread (4+ messages)  latest in thread

Message-ID: <4DA72F25-6139-41B4-AE30-93072A7B337C@gmail.com>
Permalink:  ../4DA72F25-6139-41B4-AE30-93072A7B337C@gmail.com/
Also on:    postgresql.org/message-id/4DA72F25-6139-41B4-AE30-93072A7B337C@gmail.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: brent.dombrowski@gmail.com, gumse@mac.com
  Subject: Re: internal format of timstamp?
  In-Reply-To: <4DA72F25-6139-41B4-AE30-93072A7B337C@gmail.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