dimitri / pgloader

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

Issues with numeric datatype while dumping data from mssql to postgress #1619

Open fwt-parth-jariwala opened 3 weeks ago

fwt-parth-jariwala commented 3 weeks ago

Thanks for contributing to pgloader by reporting an issue! Reporting an issue is the only way we can solve problems, fix bugs, and improve both the software and its user experience in general.

The best bug reports follow those 3 simple steps:

  1. show what you did,
  2. show the result you got,
  3. explain how the result is not what you expected.

In the case of pgloader, here's the information I will need to read in your bug report. Having all of this is a big help, and often means the bug you reported can be fixed very efficiently as soon as I get to it.

Please provide the following information:

--
-- pgloader.conf
--

LOAD DATABASE
    FROM mssql://userName:password@mssqlHostName:1433/mssqlDBName
    INTO postgresql://userName:password@postgressHostName:5433/postgresDBName
ALTER SCHEMA 'dbo' RENAME TO 'public'
CAST
    type decimal to decimal using float-to-string,
    type numeric to numeric using float-to-string
SET work_mem to '16MB', maintenance_work_mem to '512MB';
PASTE HERE THE OUTPUT OF THE PGLOADER COMMAND
PASTE HERE THE DATA THAT HAS BEEN LOADED

image

postgress:

image

inoa-dmpassy commented 1 week ago

Basically the same as me: https://github.com/dimitri/pgloader/issues/1615