mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-04 10:31:02 +02:00
Fix #20 by skipping table and view missing from the catalogs.
This commit is contained in:
parent
4d6def8105
commit
56f3da28ed
@ -365,6 +365,11 @@
|
||||
|
||||
(loop
|
||||
for (table-name . columns) in (append all-columns view-columns)
|
||||
|
||||
unless columns
|
||||
do (log-message :error "Table ~s not found, skipping." table-name)
|
||||
|
||||
when columns
|
||||
do
|
||||
(let* ((encoding
|
||||
;; force the data encoding when asked to
|
||||
|
||||
@ -16,7 +16,7 @@ LOAD DATABASE
|
||||
|
||||
column enumerate.foo using empty-string-to-null
|
||||
|
||||
MATERIALIZE VIEWS
|
||||
MATERIALIZE VIEWS nonexisting,
|
||||
d as $$
|
||||
select cast(d as date) as d, count(*) as n
|
||||
from plop
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user