Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id C810B6B2590 for ; Thu, 29 Dec 2011 17:01:54 -0400 (AST) Received: from lo.gmane.org ([80.91.229.12]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RgN6l-0003Sy-4I for pgsql-sql@postgresql.org; Thu, 29 Dec 2011 21:01:54 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RgN6Y-0006tQ-Eb for pgsql-sql@postgresql.org; Thu, 29 Dec 2011 22:01:38 +0100 Received: from ip-118-90-11-77.xdsl.xnet.co.nz ([118.90.11.77]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Dec 2011 22:01:37 +0100 Received: from jasen by ip-118-90-11-77.xdsl.xnet.co.nz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Dec 2011 22:01:37 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-sql@postgresql.org From: Jasen Betts Subject: Re: internal format of timstamp? Date: 29 Dec 2011 20:42:49 GMT Organization: Dis (not Dat) Organisation Lines: 19 Message-ID: References: <193A440A-E7E7-4772-9C28-684E7FD29511@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ip-118-90-11-77.xdsl.xnet.co.nz X-Face: ?)Aw4rXwN5u0~$nqKj`xPz>xHCwgi^q+^?Ri*+R(&uv2=E1Q0Zk(>h!~o2ID@6{uf8s; a +M[5[U[QT7xFN%^gR"=tuJw%TXXR'Fp~W; (T"1(739R%m0Yyyv*gkGoPA.$b,D.w:z+<'"=-lVT?6 {T?=R^:W5g|E2#EhjKCa+nt":4b}dU7GYB*HBxn&Td$@f%.kl^:7X8rQWd[NTc"P"u6nkisze/Q; 8 "9Z{peQF,w)7UjV$c|RO/mQW/NMgWfr5*$-Z%u46"/00mx-,\R'fLPe.)^ User-Agent: slrn/pre1.0.0-18 (Linux) X-Pg-Spam-Score: -5.5 (-----) X-Archive-Number: 201112/85 X-Sequence-Number: 36146 On 2011-12-29, 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 ? possibly that's a floating point timestamp try it as float8 instead of int8. -- ⚂⚃ 100% natural