pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
What is the C function to modify attribute
2+ messages / 2 participants
[nested] [flat]

* What is the C function to modify attribute
@ 2018-05-17 03:36 a <372660931@qq.com>
  2018-05-17 04:09 ` Re: What is the C function to modify attribute David Rowley <david.rowley@2ndquadrant.com>
  0 siblings, 1 reply; 2+ messages in thread

From: a @ 2018-05-17 03:36 UTC (permalink / raw)
  To: pgsql-general

Hi:


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!!


Shore

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: What is the C function to modify attribute
  2018-05-17 03:36 What is the C function to modify attribute a <372660931@qq.com>
@ 2018-05-17 04:09 ` David Rowley <david.rowley@2ndquadrant.com>
  0 siblings, 0 replies; 2+ messages in thread

From: David Rowley @ 2018-05-17 04:09 UTC (permalink / raw)
  To: a <372660931@qq.com>; +Cc: pgsql-general

On 17 May 2018 at 15:36, a <372660931@qq.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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-05-17 04:09 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-05-17 03:36 What is the C function to modify attribute a <372660931@qq.com>
2018-05-17 04:09 ` David Rowley <david.rowley@2ndquadrant.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox