Re: SQL Diff ?

Поиск
Список
Период
Сортировка
Искать
От
brian
Тема
Re: SQL Diff ?
Дата
Msg-id
46D0FEEC.4030605@zijn-digital.com
Ответ на
SQL Diff ? (Kevin Kempter)
Список
Дерево обсуждения
SQL Diff ? Kevin Kempter <kevin@kevinkempterllc.com>
Re: SQL Diff ? Ron Johnson <ron.l.johnson@cox.net>
Re: SQL Diff ? Kevin Kempter <kevin@kevinkempterllc.com>
Re: SQL Diff ? Ron Johnson <ron.l.johnson@cox.net>
Re: SQL Diff ? Kevin Kempter <kevin@kevinkempterllc.com>
Re: SQL Diff ? "Dawid Kuroczko" <qnex42@gmail.com>
Re: SQL Diff ? Erik Jones <erik@myemma.com>
Re: SQL Diff ? brian <brian@zijn-digital.com>
Re: SQL Diff ? Alban Hertroys <alban@magproductions.nl>
Kevin Kempter wrote:
> Hi List;
> 
> I have a very large table (52million rows) - I'm creating a copy of it to rid 
> it of 35G worth of dead space, then I'll do a sync, drop the original table 
> and rename table2.
> 
> Once I have the table2 as a copy of table1 what's the best way to select all 
> rows that have been changed, modified in table1  since the initial laod from 
> table1 into table2?
> 
> Also I'll need to delete any rows in table2 that no longer remain in table1.
> 

Set log_statement to 'mod' (or 'ddl' if you expect any changes to the 
schema itself) in postgresql.conf. Then it's just a matter of parsing 
out the mods in the log.
В списке pgsql-general по дате отправления
От: Kevin Kempter
Дата:
Сообщение: Re: SQL Diff ?
От: Ron Johnson
Дата:
Сообщение: Re: SQL Diff ?
FAQ