pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: german pulido <german_pulido@hotmail.com>
To: pgsql-sql@postgresql.org
Subject: plpgsql how to iterate through record values?
Date: Wed, 20 Mar 2002 11:26:30 -0400
Message-ID: <a7a9b8$q9e$1@jupiter.hub.org> (raw)

Im new to plpgsql...

Does someone knows how to iterate through the values of a record in plpgsql?

Im making a function that is dependent of the table configuration. I have
many tables in the DB and would like to make only one function for all the
triggers.

To make it shorter, I would like a trigger that concatenates all the values
of a new record when insert and update and stores it on a different table.
Right now I know how to make a trigger for each table.

Any help will be greatly appreciated.

Thanks.






Message-ID: <a7a9b8$q9e$1@jupiter.hub.org>
Permalink:  ../a7a9b8$q9e$1@jupiter.hub.org/
Also on:    postgresql.org/message-id/a7a9b8$q9e$1@jupiter.hub.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: german_pulido@hotmail.com
  Subject: Re: plpgsql how to iterate through record values?
  In-Reply-To: <a7a9b8$q9e$1@jupiter.hub.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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