Re: Determining if a table really changed in a trigger - Mailing list pgsql-general

From Mitar
Subject Re: Determining if a table really changed in a trigger
Date
Msg-id CAKLmikMrQNnD7Ao9YdESdBdpTdMT_Rwk8VVwS8LRy=1rmcfg3w@mail.gmail.com
Whole thread Raw
In response to Determining if a table really changed in a trigger  (Mitar <mmitar@gmail.com>)
List pgsql-general
Hi!

Thank you everyone for your responses. I investigated them.

I have also found composite type operators [1]. There is no way to
tell the EXCEPT operator to use *= as its equality operator? *EXCEPT
would seem to be a useful operator to have. :-) I am not sure about
performance though. EXCEPT is generally fast, but probably because it
can use indices, not sure how fast *= is, given that it is comparing
binary representations. What is experience with this operator of
others?


Mitar

[1] https://www.postgresql.org/docs/current/functions-comparisons.html#COMPOSITE-TYPE-COMPARISON

-- 
http://mitar.tnode.com/
https://twitter.com/mitar_m



pgsql-general by date:

Previous
From: Rich Shepard
Date:
Subject: Re: Need help understanding error message [RESOLVED]
Next
From: Bruce Momjian
Date:
Subject: Re: [Major version upgrade] pg_upgrade fails despite passing check mode