dimitri / pgloader

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

MSSQL to PGSQL table and field names case insensitive #1597

Open Triskae opened 4 months ago

Triskae commented 4 months ago

Hello guys, I'm trying to migrate all data from MSSQL to PGSQL, everything works fine, the data is migrated.

The problem is I don't understand why the case is not respected, for example if I have a table named MailType in source database, I expected pgloader to create the table with same name. Instead, it creates indeed the table, but named "mailtype".

Anyone knows how to get over it ?

Thanks a lot

Nop, not tried, but does not seem to be a bug, I'm probably missing some config.

LOAD DATABASE
    FROM mssql://username:password@localhost/source-db-name
    INTO pgsql://username:passwordlocalhost/destination-db-name

I'm expecting to have in the destination database, the table created with the exact same name as in source database, in this case "MailType" instead of "mailtype"

Triskae commented 3 months ago

Up ? As anyone any info about this issue ?

delpine72 commented 1 week ago

hi Triskae, You can use this paremeter quote identifiers in the conf file. I mean: WITH include drop, create tables, no truncate, create indexes, reset sequences, foreign keys, schema only, quote identifiers