Determining the type of an obkect in plperl

From: stan <stanb(at)panix(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Determining the type of an obkect in plperl
Date: 2020-03-04 23:21:35
Message-ID: 20200304232135.GA16468@panix.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Probably a bit off topic, but I suspect someone on this list knows how to do
this.

I am in the process of writing a plperl function. In this function I need
to compare the data in the NEW versus OLD structures. I am writing this as a
generic subroutine, so I am looping through and comparing the 2 to see what
is different. Problem is, that I need to know whether to us n != or a ne
comparison.

how can I determine what the data type of the value element is?

--
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
-- Benjamin Franklin

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2020-03-04 23:26:02 Re: Advice request : simultaneous function/data updates on many databases
Previous Message David G. Johnston 2020-03-04 22:58:01 Re: Advice request : simultaneous function/data updates on many databases