Return types of a function

From: "Nalin Bakshi" <nbakshi(at)bisil(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Return types of a function
Date: 2006-02-11 04:22:05
Message-ID: 000d01c62ec2$b7cf7f40$1801a8c0@nalin
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi!
I have postgres installed in my machine and have a simple task to do.
Step1) Fetch all the tables in the Database with name staerting with "AA"
Step2) On each table you get fire a simple SQL query:
select * from <tablename>;
Step3) Right these into a flat file.
I have to carry out all these steps using a prcedure/function.

The function would be called by a trigger. Now i need to know how to make a postgres function for that.

My problem: My experience with database is almost 5 days and I can't seem to understand the documentation, like how to catch the return value. How to run the procedure for testing without firing the trigger. So could anyone help me with that.

Regards,
Nalin.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2006-02-11 06:47:46 Re: Sequence skipping values
Previous Message Jean-Christophe Roux 2006-02-11 04:10:36 Re: Sequence skipping values