pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedinternal format of timstamp?
4+ messages / 4 participants
[nested] [flat]
* internal format of timstamp?
@ 2011-12-29 15:08 Lars Gustafsson <gumse@mac.com>
0 siblings, 2 replies; 4+ messages in thread
From: Lars Gustafsson @ 2011-12-29 15:08 UTC (permalink / raw)
To: pgsql-sql
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.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: internal format of timstamp?
@ 2011-12-29 20:42 Jasen Betts <jasen@xnet.co.nz>
parent: Lars Gustafsson <gumse@mac.com>
1 sibling, 1 reply; 4+ messages in thread
From: Jasen Betts @ 2011-12-29 20:42 UTC (permalink / raw)
To: pgsql-sql
On 2011-12-29, Lars Gustafsson <gumse@mac.com> 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 ?
possibly that's a floating point timestamp try it as float8 instead of
int8.
--
⚂⚃ 100% natural
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: internal format of timstamp?
@ 2011-12-29 21:42 Brent Dombrowski <brent.dombrowski@gmail.com>
parent: Lars Gustafsson <gumse@mac.com>
1 sibling, 0 replies; 4+ messages in thread
From: Brent Dombrowski @ 2011-12-29 21:42 UTC (permalink / raw)
To: Lars Gustafsson <gumse@mac.com>; +Cc: pgsql-sql
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.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: internal format of timstamp?
@ 2011-12-29 22:20 Steve Crawford <scrawford@pinpointresearch.com>
parent: Jasen Betts <jasen@xnet.co.nz>
0 siblings, 0 replies; 4+ messages in thread
From: Steve Crawford @ 2011-12-29 22:20 UTC (permalink / raw)
To: Jasen Betts <jasen@xnet.co.nz>; +Cc: pgsql-sql
On 12/29/2011 12:42 PM, Jasen Betts wrote:
> On 2011-12-29, Lars Gustafsson<gumse@mac.com> 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 ?
> possibly that's a floating point timestamp try it as float8 instead of
> int8.
>
>
>
I am not an internals person, but suspect that your first step should be
to check pg_config to see if the server from which you are attempting to
recover data was compiled with --enable-integer-datetimes.
Cheers,
Steve
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2011-12-29 22:20 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-12-29 15:08 internal format of timstamp? Lars Gustafsson <gumse@mac.com>
2011-12-29 20:42 ` Jasen Betts <jasen@xnet.co.nz>
2011-12-29 22:20 ` Steve Crawford <scrawford@pinpointresearch.com>
2011-12-29 21:42 ` Brent Dombrowski <brent.dombrowski@gmail.com>
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