From: | Steve Howe <howe(at)carcass(dot)dhs(dot)org> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Rule updates and PQcmdstatus() issue |
Date: | 2002-09-07 21:28:09 |
Message-ID: | 1425166579.20020907182809@carcass.dhs.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hello Tom,
Saturday, September 7, 2002, 5:42:33 PM, you wrote:
TL> Steve Howe <howe(at)carcass(dot)dhs(dot)org> writes:
>> BM> I suggest you read the TODO detail on the item and make a proposal on
>> BM> how it _should_ work and if you can get agreement from everyone, you may
>> BM> be able to nag someone into doing a patch.
>> I think it should return the number of rows modified in the context of
>> the view, and not exactly that of each of the tables affected.
TL> That's so vague as to be useless. What is "in the context of the view"?
TL> How does that notion help us resolve the uncertainties discussed in the
TL> TODO thread?
I just mean that PQcmdStatus() should not return a value for each
changed table but how many rows "viewable by the view" it could
change.
Again, I'm not that aware of the inners of PostgreSQL to feel
comfortable to do a better suggestion.
>> This was working on some previous build, wasn't it ? What was the
>> previous behavior ? Shouldn't the patch follow that way ?
TL> The old behavior was quite broken too, just not in a way that affected
TL> you. We will not be reverting the change that fatally broke it (namely
TL> altering the order of RULE applications for INSERTs) and so "go back
TL> to the old code" isn't a workable answer at all.
I didn't mean to revert the code but to make it work like the older
version did. I was unaware that it was broken too, but the removal now
broke the whole views/rules so I wonder what could be worst...
Also, it should have affected thousands of users, not just me. Unless
nobody uses views...
TL> I don't think fixing the code is the hard part; agreeing on what the
TL> behavior should be in complex cases is the hard part.
I understand your point and I'll try to give a proper solution but
since I'm not familiar with the PostgreSQL inners, I wonder how good
could it be...
Thanks :)
-------------
Best regards,
Steve Howe mailto:howe(at)carcass(dot)dhs(dot)org
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2002-09-07 22:09:34 | Testing for failures in configure.in |
Previous Message | Bruce Momjian | 2002-09-07 21:22:40 | Re: Rule updates and PQcmdstatus() issue |