Re: SQL Diff ? - Mailing list pgsql-general

From Alban Hertroys
Subject Re: SQL Diff ?
Date
Msg-id 46D2C804.8000201@magproductions.nl
Whole thread Raw
In response to SQL Diff ?  (Kevin Kempter <kevin@kevinkempterllc.com>)
List 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 by date:

Previous
From: "Marcelo de Moraes Serpa"
Date:
Subject: [ERROR] syntax error at end of input
Next
From: "A. Kretschmer"
Date:
Subject: Re: [ERROR] syntax error at end of input