From: | <david(dot)sahagian(at)emc(dot)com> |
---|---|
To: | <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Change the default [tgenabled] for new "internal" triggers ? |
Date: | 2012-03-26 14:55:21 |
Message-ID: | F3CBFBA88397EA498B22A05FFA9EC49D697BB4E3@MX22A.corp.emc.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Scenario: (not slony, it is home-grown replication)
A change on the Primary db is Captured and then Propagated to the Secondary db.
Then the change is Applied to the Secondary db, with [session_replication_role] = 'replica'.
I agree that I don't want my "user triggers" to fire as part of the Apply.
But my email was about the "internally generated constraint triggers"
which implement checking for Foreign Key Constraint violations.
It is that checking that I want to be done on the Secondary.
Should I not want such checking to be done ?
Thanks,
-dvs-
-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: Friday, March 23, 2012 8:35 PM
To: Sahagian, David
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] Change the default [tgenabled] for new "internal" triggers ?
<david(dot)sahagian(at)emc(dot)com> writes:
> Is the a way to configure Postgres such that tgenabled = ' A' automatically when the FK constraint gets made ?
No. Why do you think that would be a good idea? ISTM it'd lead to the
action being taken twice on the slave.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2012-03-26 15:03:07 | Re: Change the default [tgenabled] for new "internal" triggers ? |
Previous Message | Gauthier, Dave | 2012-03-26 14:54:11 | Re: "OLD used in query that is not in a rule" |