Re: Synchronizing a table that is in two different databases : Need to dump a table as inserts from db1 and change the insert statements into UPDATE statements

From: Rémi Cura <remi(dot)cura(at)gmail(dot)com>
To: Khangelani Gama <kgama(at)argility(dot)com>
Cc: chris(at)chriscurvey(dot)com, pgsql <pgsql-general(at)postgresql(dot)org>
Subject: Re: Synchronizing a table that is in two different databases : Need to dump a table as inserts from db1 and change the insert statements into UPDATE statements
Date: 2014-03-28 12:04:30
Message-ID: CAJvUf_upH0ek6aGTBeMCHJjzfqpOcLWN132d5p-ANKwKs3E7Rw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Not sure, but maybe

update foo

set br_desc = bar.br_desc

, br_active = bar.br_active

(rest of columns)

where br_cde = bar.br_cde;

Anyway it seem sto be terribly bad idea to give those kind of names !

Cheers,

Rémi-C

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Chris Curvey 2014-03-28 12:37:34 Re: Synchronizing a table that is in two different databases : Need to dump a table as inserts from db1 and change the insert statements into UPDATE statements
Previous Message Khangelani Gama 2014-03-28 11:59:03 Re: Synchronizing a table that is in two different databases : Need to dump a table as inserts from db1 and change the insert statements into UPDATE statements