how to covert a column?

Поиск
Список
Период
Сортировка
От Dimitrius Weddington
Тема how to covert a column?
Дата
Msg-id AB9FA2A1B69C9740B198A7369F4D1AA10699BDF2@SC-EXCH01.marvell.com
обсуждение исходный текст
Список pgsql-general

HI All,

 

I have a dataset (90GBs worth) that contains 3 columns of unix timestamps in seconds. Ideally, I want to use copy to load the data into the DB (the disk i/o of trying to process this volume of data vi perl takes a couple of days). I was hoping to convert the unix timestamps inside the DB to pg timestamp creating a view or create table as… however no success so far. The “to_timestamp()” function works fine to convert the data but for some reason I can’t get it to work in creating a view with the fields that are timestamps instead of INT.

 

Thoughts?

 

Thx!

-dimitrius

 


"Without passion ... what's the point?"

 

В списке pgsql-general по дате отправления:

Предыдущее
От: Charles Pare
Дата:
Сообщение: Stored Procedure: COPY table FROM (where path is a text variable)
Следующее
От: Gabriele
Дата:
Сообщение: Design Tool