pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nalin Bakshi <nbakshi@bisil.com>
To: pgsql-sql@postgresql.org
Subject: Postgres for Dummies - a new request
Date: Sat, 11 Feb 2006 09:48:04 +0530
Message-ID: <000c01c62ec2$280e5980$1801a8c0@nalin> (raw)

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.

Message-ID: <000c01c62ec2$280e5980$1801a8c0@nalin>
Permalink:  ../000c01c62ec2$280e5980$1801a8c0@nalin/
Also on:    postgresql.org/message-id/000c01c62ec2$280e5980$1801a8c0@nalin

 · 

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: nbakshi@bisil.com
  Subject: Re: Postgres for Dummies - a new request
  In-Reply-To: <000c01c62ec2$280e5980$1801a8c0@nalin>

* 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