Philip Warner pjw
Sat Sep 10 05:48:51 PDT 2005
Alan Hodgson wrote:

>SELECT CASE WHEN sl.log_cmdtype = 'I' THEN 'INSERT INTO ' || st.tab_nspname || '.' || st.tab_relname || ' ' || sl.log_cmddata  WHEN sl.log_cmdtype = 'U' THEN 'UPDATE ' || st.tab_nspname || '.' || st.tab_relname || ' SET ' || sl.log_cmddata WHEN sl.log_cmdtype = 'D' THEN 'DELETE FROM ' || st.tab_nspname || '.' || st.tab_relname || ' WHERE ' || sl.log_cmddata END || ';' FROM sl_log_1 sl JOIN sl_table st ON (sl.log_tableid=st.tab_id) ORDER BY sl.log_actionseq;
>
>  
>
Very simple; I'll try Jan's suggestion first and file this away for a
last ditch effort -- although this has the advantage of allowing me to
select specific tables. Then again, maybe I can just delete rows from
sl_log before following Jan's suggested approach.



More information about the Slony1-general mailing list