Alternativ gibt es noch eine andere Tabelle mit einer "beg_timestamp" Spalte aber da komm ich auch nicht weiter.

Code: Alles auswählen
to_timestamp('Fri Oct 05 2018 19:52:14 GMT+0200 (CEST)', 'Dy Mon DD YYYY HH24:MI:SS Z')
Code: Alles auswählen
select to_date('Fri Oct 05 2018 19:52:14 GMT+0200 (CEST)', 'Dy Mon DD YYYY HH24:MI:SS Z')
Code: Alles auswählen
to_timestamp(1538761934::bigint)
Code: Alles auswählen
to_timestamp(1538761934::bigint)::date[/date]
Code: Alles auswählen
test=*# select regexp_replace(regexp_replace('Fri May 11 2018 20:01:41 GMT+0200 (CEST)','\(.*\)',''),'GMT+','')::timestamptz;
regexp_replace
------------------------
2018-05-11 20:01:41+02
(1 row)
--
--
--
test=*# SELECT TIMESTAMP WITH TIME ZONE 'epoch' + 1130317518.61997 * INTERVAL '1 second';
?column?
------------------------------
2005-10-26 11:05:18.61997+02
(1 row)
Code: Alles auswählen
test=*# create table bla (id serial primary key, val int);
CREATE TABLE
test=*# copy bla(val) from stdin;
Enter data to be copied followed by a newline.
End with a backslash and a period on a line by itself, or an EOF signal.
>> 10
>> 23
>> 23
>> 12
>> 22
>> \.
COPY 5
test=*# select * from bla;
id | val
----+-----
1 | 10
2 | 23
3 | 23
4 | 12
5 | 22
(5 rows)
test=*#