From: | Raymond O'Donnell <rod(at)iol(dot)ie> |
---|---|
To: | abr_ora(at)yahoo(dot)com |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Replication with slony-I |
Date: | 2008-10-29 15:22:36 |
Message-ID: | 49087FBC.3010803@iol.ie |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 29/10/2008 12:55, Abdul Rahman wrote:
> 11. Got SUCCESS up to this point. Now I think this is *pgbench *which
> is responsible for replicating tables.
No - it's Slony which is responsible for the replication. pgbench is
just executing lots of SQL commands - SELECTs, UPDATEs, INSERTs, etc -
while Slony is replicating the changes from one set to the other.
> Now my question is that how to include the tables which are already
> present in an existing database
Just add more SET ADD TABLE commands to your slonik script. Use the
existing lines as a model, so you'll get something like:
set add table (set id=1, origin=1, id=4, fully qualified name =
'public.new_table', comment='Another table');
Make sure that the id is different for each table.
HTH,
Ray.
------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod(at)iol(dot)ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------
From | Date | Subject | |
---|---|---|---|
Next Message | 小波 顾 | 2008-10-29 15:26:28 | Re: Are there plans to add data compression feature to postgresql? |
Previous Message | Tomasz Myrta | 2008-10-29 15:08:08 | Re: How can I tell, in a trigger, if a value in a string is an integer. |