Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 164A7632A64 for ; Thu, 13 May 2010 18:47:32 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 15931-05 for ; Thu, 13 May 2010 21:47:24 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qy0-f196.google.com (mail-qy0-f196.google.com [209.85.221.196]) by mail.postgresql.org (Postfix) with ESMTP id BBD26632450 for ; Thu, 13 May 2010 18:47:24 -0300 (ADT) Received: by qyk34 with SMTP id 34so2253978qyk.10 for ; Thu, 13 May 2010 14:47:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=7/2p6GKcD0Tl/6fDORXCGDDjBm3o4zR9v5g38kyWNE0=; b=HVS1en427HWlC5dTlHDI6R0/WqrrE6KjnkB9oPijQ/rq0HwU+FzN3di3tqZW/YG1U3 EFLDXrcKdzC8/vdXMSCSvvK8DbVD26US/2Gu2+6ETJuNl7C2joEg/lROX4uB00EMBs6l OClXRDp5Azn8DdVGgGoKQIYSbW/7PCfdZWfqU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=U4A31bO0T45IYU63hZvJ78DtZ4aRHr/VaCWOJVOenMXhkvA3VuWkz65tQS4cKrTCld bgny3FZP8nOvinBNTcNfuIHWzo0kgKAC1PFgU5KUyhvB7I8QIC3MMmnzVeACDggQQWgS wudd0r46J4nfwMyagOWYPJv0xPMdc6IgcX7w8= MIME-Version: 1.0 Received: by 10.224.71.206 with SMTP id i14mr63210qaj.75.1273787241712; Thu, 13 May 2010 14:47:21 -0700 (PDT) Received: by 10.229.214.131 with HTTP; Thu, 13 May 2010 14:47:21 -0700 (PDT) In-Reply-To: References: <4AB948FE.9050903@nrc-cnrc.gc.ca> <11836.1253675229@sss.pgh.pa.us> <4ABA42FE.20100@nrc-cnrc.gc.ca> Date: Thu, 13 May 2010 17:47:21 -0400 Message-ID: Subject: Re: Slony-I - Update trigger on a replicated table From: chirag.dave@gmail.com To: "Plugge, Joe R." Cc: "pgsql-admin@postgresql.org" Content-Type: multipart/alternative; boundary=001636137b080fcc92048680b44d X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.42 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FS_REPLICA=3.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SARE_SPEC_REPLICA=0.72 X-Spam-Level: ** X-Archive-Number: 201005/142 X-Sequence-Number: 34615 --001636137b080fcc92048680b44d Content-Type: text/plain; charset=ISO-8859-1 On Thu, May 13, 2010 at 5:11 PM, Plugge, Joe R. wrote: > Nevermind ... I RTFM ... > > echo "alter table mytable ENABLE REPLICA TRIGGER check_lockout;" | psql > mydb > This is not good idea. Always run DDL script using Slony execute script. http://www.slony.info/documentation/ddlchanges.html > > -----Original Message----- > From: pgsql-admin-owner@postgresql.org [mailto: > pgsql-admin-owner@postgresql.org] On Behalf Of Plugge, Joe R. > Sent: Thursday, May 13, 2010 4:02 PM > To: pgsql-admin@postgresql.org > Subject: [ADMIN] Slony-I - Update trigger on a replicated table > > Anyone know if it is possible to create an update trigger on the > destination side of a replicated table in Slony-I and have the replication > itself cause the trigger to fire? I was able to add the trigger but when run > the test transaction through, it does not seem to be firing. It works on > the non-replicated version of the solution. > > Running postgres 8.4.1 and Slony-I 2.0.3 > > > -- > Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-admin > > -- > Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-admin > --001636137b080fcc92048680b44d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Thu, May 13, 2010 at 5:11 PM, Plugge,= Joe R. <JRPlugge= @west.com> wrote:
Nevermind ... I RTFM ...

echo "alter table mytable ENABLE REPLICA TRIGGER check_lockout;" = | psql mydb

This is not good idea. Always run DDL = script using Slony execute script.

http://www.slony.info/documentation/ddlchang= es.html

=A0

-----Original Message-----
From: pgsql-admin-owner= @postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Plugge, Joe R.
Sent: Thursday, May 13, 2010 4:02 PM
To: pgsql-admin@postgresql.or= g
Subject: [ADMIN] Slony-I - Update t= rigger on a replicated table

Anyone know if it is possible to create an update trigger on the destinatio= n side of a replicated table in Slony-I and have the replication itself cau= se the trigger to fire? I was able to add the trigger but when run the test= transaction through, it does not seem to be firing. =A0It works on the non= -replicated version of the solution.

Running postgres 8.4.1 and Slony-I 2.0.3


--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

--001636137b080fcc92048680b44d--