Re: Migrating money column from MS SQL Server to Postgres

From: Adam Brusselback <adambrusselback(at)gmail(dot)com>
To: Allan Kamau <kamauallan(at)gmail(dot)com>
Cc: "Igal (at) Lucee(dot)org" <igal(at)lucee(dot)org>, Postgres General Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Migrating money column from MS SQL Server to Postgres
Date: 2017-11-09 14:22:16
Message-ID: CAMjNa7czAXdToGnHqJRtDjCOFsFevxOCzA=Ypv0yAF7nh7iYfA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Since you are migrating data into a staging table in PostgreSQL, you may set
> the field data type as TEXT for each field where you have noticed or
> anticipate issues.
> Then after population perform the datatype transformation query on the given
> fields to determine the actual field value that could not be gracefully
> transformed.

This is the approach I have come to as the most successful for data migrations.

I will use tools like Kettle / Talend to get data into a staging table
with every column as text, then use SQL to migrate that to a properly
typed table. Works much better than trying to work within the
constraints of these tools.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Valdir Kageyama 2017-11-09 15:45:48 Migrating plattaform
Previous Message Felix Kunde 2017-11-09 12:16:58 Re: Oracle to PostgreSQL