Christopher Browne cbbrowne at ca.afilias.info
Tue Jul 6 12:17:58 PDT 2010
Steve Singer <ssinger at ca.afilias.info> writes:
> Christopher Browne wrote:
>> Steve Singer <ssinger at ca.afilias.info> writes:
>>> Attached is a patch that fixes bug 118 by performing a TRUNCATE ONLY
>>> during the pre-subscription on 8.4 systems.
>> I have not tested the patch, but the approach certainly seems apropos
>> to me.
>> E.g...    - Fold out the TRUNCATE request to a separate function
>>   - Function for 8.4 does "TRUNCATE ONLY"
>>   - Function for pre-8.4 does "TRUNCATE"
>>
>
> I've applied this to 2.0
> I am working on preparing a patch for 1.2, I will post it before I
> commit it.
>
> However, my patch as posted/applied doesn't change the usage of
> 'truncate' in the add_empty_table_to_replication function that is
> called by the replicate_partition function in sllony1_funcs.sql.  I
> don't see that function used anywhere.   Chris, do you remember what
> that function is intended for?

That's documented as a way of cheaply adding empty inherited
partitions to an existing replication set.  You'd run it inside
EXECUTE SCRIPT.

http://www.slony.info/documentation/partitioning.html
-- 
output = ("cbbrowne" "@" "ca.afilias.info")
Christopher Browne
"Bother,"  said Pooh,  "Eeyore, ready  two photon  torpedoes  and lock
phasers on the Heffalump, Piglet, meet me in transporter room three"


More information about the Slony1-patches mailing list