dimitri / pgloader

Migrate to PostgreSQL in a single command!
http://pgloader.io
Other
5.45k stars 548 forks source link

pgloader mssql to postgres creates other tables with view filter #1603

Open bheemvennapureddy opened 3 months ago

bheemvennapureddy commented 3 months ago
LOAD DATABASE
     FROM mssql://blah/dev
     INTO postgresql://blah/archive

MATERIALIZE VIEWS
       history AS $$ select * from Receipt where RECEIPT_KEY in ( 1010 ); $$
set work_mem to '32MB', maintenance_work_mem to '512 MB'
alter schema 'dbo' rename to 'arch'
ALTER TABLE NAMES MATCHING 'Receipt' IN SCHEMA 'dbo' RENAME TO 'receipt';

log.txt