pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Danny Tramnitzke <vadus@gmx.de>
To: postgres@yahoogroups.de
Subject: [postgres] Copy Timestamp NULL
Date: Thu, 09 Oct 2003 09:55:25 +0200
Message-ID: <oprwrmyng33tnzk7@smtp.gmx.de> (raw)
In-Reply-To: <2153510000.1061474229@gnarzelwicht.delirium-arts.de>
References: <oprt846vkx3tnzk7@smtp.gmx.de>
	<2153510000.1061474229@gnarzelwicht.delirium-arts.de>

Hi Leute,

Ich habe vor einiger Zeit eine spezielle Frage gestellt, die nicht ganz 
beantwortet wurde.

Also es geht darum, dass ich in eine Postgres Tabelle per Copy Daten laden 
möchte.
Bei einer Spalte handelt es sich um Timestamp NULL ... In der Source-Datei 
befinden sich in dieser Spalte ISO Timestamp Werte und NULL - Werte . 
(Nicht jede Zeile besitzt einen Timestamp-wert)

Die Source-Datei sieht prinzipiell so aus :

1|Hallo|17.0|1999-01-23 14:30:08.456234|usr01
2|Test|18.5||usr02

Die Spalte 4 ist somit vom Typ Timestamp.

Allerdings kann ich diese Source-Datei nicht in die Postgres Tabelle per 
Copy laden, da es an den NULL - Stellen zum Fehler kommt : Bad timestamp 
external representation ''

Wenn also eine "Lücke" gefunden wird, interpretiert Copy diese "Lücke" 
nicht als Null-Wert und beschwert sich über das fehlerhafte Timestamp 
Format.


Es geht ebenfalls nicht, wenn ich an der entsprechenden Stelle NULL 
schreibe.

Was muss ich also angeben, damit ich solch eine Datei laden kann ?

Viele Grüße,
Danny


-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

Wenn Sie Ihr Abonnement fuer diese Gruppe kuendigen moechten, senden 
Sie eine E-Mail an:
postgres-unsubscribe@egroups.de

 

Die Nutzung von Yahoo! Groups ist Bestandteil von http://de.docs.yahoo.com/info/utos.html 





view thread (2+ messages)  latest in thread

Message-ID: <oprwrmyng33tnzk7@smtp.gmx.de>
Permalink:  ../oprwrmyng33tnzk7@smtp.gmx.de/
Also on:    postgresql.org/message-id/oprwrmyng33tnzk7@smtp.gmx.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: vadus@gmx.de, postgres@yahoogroups.de
  Subject: Re: [postgres] Copy Timestamp NULL
  In-Reply-To: <oprwrmyng33tnzk7@smtp.gmx.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox