Re: What is the C function to modify attribute

From: David Rowley <david(dot)rowley(at)2ndquadrant(dot)com>
To: a <372660931(at)qq(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: What is the C function to modify attribute
Date: 2018-05-17 04:09:42
Message-ID: CAKJS1f9PtPKki+QvFTemmaTTofxJtXgyeftoCJyz3rivaS3Jmw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 17 May 2018 at 15:36, a <372660931(at)qq(dot)com> wrote:
> I am writing a trigger that will record all adjustment of the row into the
> last column of the row. I have done a iterator to produce text record and
> the last step would be add the text record into the last column (which
> designed as an array of user defined type, with the output function display
> the abstraction of update and a user defined function is used to retrieve
> detail update info).
>
> Now I would like to find a way that will allow me to update the last column
> in C efficiently.
>
> Can anyone help? Thank you so much!!

You might find https://www.postgresql.org/docs/10/static/triggers.html useful.

There's a complete example of a trigger function written in C there.

--
David Rowley http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Laurenz Albe 2018-05-17 04:32:15 Re: sql function with empty row
Previous Message a 2018-05-17 03:36:40 What is the C function to modify attribute