Re: Trigger function, C, lookup of attribute type

From: Paul <Paul(at)abelian(dot)netcom(dot)co(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Trigger function, C, lookup of attribute type
Date: 2015-12-15 13:18:45
Message-ID: 56701335.60407@abelian.netcom.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


I found the solution: SPI_gettype() does the job fine.

I was led to that by rummaging through the slony source
code to see how they handle the triggers in C.

--
Paul Nicholson
--

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dmitry Savenko 2015-12-15 13:20:03 How to get the size of JSONB in bytes?
Previous Message Edson Richter 2015-12-15 10:59:51 Re: Overhead changing varchar(2000) to text