Re: SQL Diff ?
| От | Alban Hertroys |
|---|---|
| Тема | Re: SQL Diff ? |
| Дата | |
| Msg-id | 46D2C804.8000201@magproductions.nl обсуждение исходный текст |
| Ответ на | SQL Diff ? (Kevin Kempter <kevin@kevinkempterllc.com>) |
| Список | pgsql-general |
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? I think you could get smart having a few rules for insert/update/delete on 'table' that "keep track" of what happens during your work on table2. -- Alban Hertroys alban@magproductions.nl magproductions b.v. T: ++31(0)534346874 F: ++31(0)534346876 M: I: www.magproductions.nl A: Postbus 416 7500 AK Enschede // Integrate Your World //
В списке pgsql-general по дате отправления: