Re: [GENERAL] Rule appears not to fire on insert w/ "except"

2005-11-22 Thread A.j. Langereis
t; To: Cc: "A.j. Langereis" <[EMAIL PROTECTED]> Sent: Tuesday, November 22, 2005 2:54 PM Subject: Re: [GENERAL] Rule appears not to fire on insert w/ "except" > On Tuesday 22 November 2005 08:34 am, A.j. Langereis wrote: > > Dear Chris, > > > > What abou

Re: [GENERAL] Rule appears not to fire on insert w/ "except"

2005-11-22 Thread Chris Kratz
On Tuesday 22 November 2005 08:34 am, A.j. Langereis wrote: > Dear Chris, > > What about this: > > insert into test1 >     select id, data from test2 >     where id, data not in (select id, data from test1); > > of which one would expect the same results... > > Yours, > > Aarjan > > Ps. notice that

Re: [GENERAL] Rule appears not to fire on insert w/ "except"

2005-11-22 Thread A.j. Langereis
Message - From: "Chris Kratz" <[EMAIL PROTECTED]> To: Cc: "Jerry Sievers" <[EMAIL PROTECTED]> Sent: Tuesday, November 22, 2005 2:12 PM Subject: Re: [GENERAL] Rule appears not to fire on insert w/ "except" > On Monday 21 November 2005 08:05 pm,

Re: [GENERAL] Rule appears not to fire on insert w/ "except"

2005-11-22 Thread Chris Kratz
On Monday 21 November 2005 08:16 pm, David Fetter wrote: > On Mon, Nov 21, 2005 at 08:05:19PM -0500, Jerry Sievers wrote: > > Chris Kratz <[EMAIL PROTECTED]> writes: > > > Hello All, > > > > > > We have finally tracked down a bug in our application to a rewrite rule > > > on a table. In essence, t

Re: [GENERAL] Rule appears not to fire on insert w/ "except"

2005-11-22 Thread Chris Kratz
On Monday 21 November 2005 08:05 pm, Jerry Sievers wrote: > Chris Kratz <[EMAIL PROTECTED]> writes: > > Hello All, > > > > We have finally tracked down a bug in our application to a rewrite rule > > on a table. In essence, the rewrite rule in question logs any inserts to > > another table. This w

Re: [GENERAL] Rule appears not to fire on insert w/ "except"

2005-11-21 Thread David Fetter
On Mon, Nov 21, 2005 at 08:05:19PM -0500, Jerry Sievers wrote: > Chris Kratz <[EMAIL PROTECTED]> writes: > > > Hello All, > > > > We have finally tracked down a bug in our application to a rewrite rule on > > a > > table. In essence, the rewrite rule in question logs any inserts to > > anothe

Re: [GENERAL] Rule appears not to fire on insert w/ "except"

2005-11-21 Thread Jerry Sievers
Chris Kratz <[EMAIL PROTECTED]> writes: > Hello All, > > We have finally tracked down a bug in our application to a rewrite rule on a > table. In essence, the rewrite rule in question logs any inserts to another > table. This works correctly in all cases except where an "except" clause is >

[GENERAL] Rule appears not to fire on insert w/ "except"

2005-11-21 Thread Chris Kratz
Hello All, We have finally tracked down a bug in our application to a rewrite rule on a table. In essence, the rewrite rule in question logs any inserts to another table. This works correctly in all cases except where an "except" clause is used in the insert statement. In this case, the rows

Re: [GENERAL] Rule appears not to fire on insert w/ "except"

2005-11-21 Thread Chris Kratz
On Monday 21 November 2005 03:35 pm, you wrote: > Chris Kratz <[EMAIL PROTECTED]> writes: > > CREATE OR REPLACE RULE debug_rule AS > > ON INSERT TO test1 > >do INSERT INTO test_que (row_id) > > VALUES (new.id); > > You would be a whole lot better off doing this with a trigger. > > > inser

Re: [GENERAL] Rule appears not to fire on insert w/ "except"

2005-11-21 Thread Tom Lane
Chris Kratz <[EMAIL PROTECTED]> writes: > CREATE OR REPLACE RULE debug_rule AS > ON INSERT TO test1 >do INSERT INTO test_que (row_id) > VALUES (new.id); You would be a whole lot better off doing this with a trigger. > insert into test1 > select id,data from test2 > except select id,

[GENERAL] Rule appears not to fire on insert w/ "except"

2005-11-21 Thread Chris Kratz
First version of this I sent this morning did not appear to go through. Please disregard if you received the first one. -- Original Message -- Hello All, We have finally tracked down a bug in our application to a rewrite rule on a table. In essence, the rewrite rule in quest