Re: Thanks and questions...
| От | Samuel Sieb |
|---|---|
| Тема | Re: Thanks and questions... |
| Дата | |
| Msg-id | 20000728185302.E1065@gw.sieb.net обсуждение исходный текст |
| Ответ на | Re: Thanks and questions... (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-general |
On Fri, Jul 28, 2000 at 06:53:41PM -0400, Tom Lane wrote: > George Robinson II <george.robinson@eurekabroadband.com> writes: > > What approach would be the most efficient way to accomplish this goal? > > With what language or tools would you recommend? If I were to leave the > > time as a int4, epoch time, what would the select look like to return > > other time formats? > > Presently the easiest way to get from Unix time to a stored timestamp > datum is to coerce to abstime first. > > regression=# insert into foo values(abstime(964824656)); > > I don't think this'd work in the context of a COPY command, > unfortunately, but it works fine in an INSERT. > > regards, tom lane Would it maybe be easier to store in the table as int4, then coerce on the way out. That way you could use copy.
В списке pgsql-general по дате отправления: