Sat Sep 10 05:48:51 PDT 2005
- Previous message: [Slony1-general] Need to recover DB with partial data...into a master DB...
- Next message: [Slony1-general] Need to recover DB with partial data...into a master DB...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: [Slony1-general] Need to recover DB with partial data...into a master DB...
- Next message: [Slony1-general] Need to recover DB with partial data...into a master DB...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-general mailing list