idDEPARTMENT
, name
, description
, id_parent_department
, path
, location
, eqtAvailableDefaultValue
, idORGANIZATION
FROM department
;2016-06-16T13:56:21.732000+02:00 DEBUG Finished processing READER for "department" 0.018000s
2016-06-16T13:56:21.732000+02:00 DEBUG Transformer 3 in action for department_restriction!
^C2016-06-16T14:16:27.047000+02:00 FATAL We have a situation here.
An unhandled error condition has been signalled:
Interactive interrupt at #x322AAE5197.
Date/time: 2016-06-16-14:16An unhandled error condition has been signalled:
Interactive interrupt at #x322AAE5197.
Backtrace for: #<SB-THREAD:THREAD "main thread" RUNNING {10071F67B3}>
0: ("bogus stack frame")
1: ((FLET #:WITHOUT-INTERRUPTS-BODY-646 :IN SB-THREAD::%CONDITION-WAIT))
2: (SB-THREAD:CONDITION-WAIT #<SB-THREAD:WAITQUEUE Anonymous condition variable {10140174E3}> #<SB-THREAD:MUTEX "Anonymous lock" (free)> :TIMEOUT NIL)
3: (LPARALLEL.CONS-QUEUE:POP-CONS-QUEUE/NO-LOCK #<unavailable lambda li
Anyways, I have a question. Im sucessfully porting over numerous sqlite dbs to postgres and pgloader is doing a great job! However, Im running into a couple of errors. One is that that some of my sqlite tables dont have a unique id which messes up the addition of foreign keys into the postgres db. The error:Database error 42830: there is no unique constraint matching given keys for referenced table "shop"
So I ran this in my load file:
AFTER LOAD DO
$$ ALTER TABLE shop$ ADD UNIQUE (id);$$