Re: Importing data w/ Unix timestamp - Mailing list pgsql-general

From Thomas Lockhart
Subject Re: Importing data w/ Unix timestamp
Date
Msg-id 395B8A68.CCEEE831@alumni.caltech.edu
Whole thread Raw
In response to Importing data w/ Unix timestamp  (brianb-pggeneral@edsamail.com)
Responses Re: Importing data w/ Unix timestamp  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
> insert into RealTable select uname, timestamp(abstime(timeinAsInt4)),
>                              duration, etc from TempTable;

Another side comment: afaik an explicit conversion to abstime is not
required to go from Unix time to timestamp. So

  insert into RealTable select uname, timestamp(timeinAsInt4),
                               duration, etc from TempTable;

should be equivalent.

                     - Thomas

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Comments with embedded single quotes
Next
From: Ed Loehr
Date:
Subject: Re: Importing data w/ Unix timestamp