Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > Re: why copy tu...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 9508 of 10965
Post > Topic >>

Re: why copy tuple in the end of trigger when nothing changed in NEW OLD record variable

by billywq@[EMAIL PROTECTED] ("billy") Jun 11, 2008 at 12:57 PM

Tom Lane,

	  er, your explanation is reasonable.

	  But at least the comment
	  if (newtuple !=3D tuple) /* modified by Trigger(s) */
	  {
		.....
	  is likely to misdirect us.

	  It took me a few hours to figure it out. :-(

=3D=3D=3D=3D=3D=3D=3D 2008-06-10 23:43:00 In your letter you
say:=3D=3D=3D=
=3D=3D=3D=3D

>"billy" <billywq@[EMAIL PROTECTED]
> writes:
>>     I think we can add some judgment conditions in function
plpgsql_exec=
_trigger() to avoid this problem.
>
>I don't especially see the point of adding extra complexity here.
>AFAICS you are talking about avoiding one or two palloc/pfree
>cycles, which is surely down in the noise compared to the cost of
>calling a plpgsql trigger.
>
>			regards, tom lane
>
>--
>Sent via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
>To make changes to your subscription:
>http://www.postgresql.org/mailpref/pgsql-hackers

=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1billy
=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1billywq@[EMAIL PROTECTED]
 via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
 




 1 Posts in Topic:
Re: why copy tuple in the end of trigger when nothing changed in
billywq@[EMAIL PROTECTED]  2008-06-11 12:57:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 9:21:57 CST 2008.