Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id A5FA89FB9B3; Tue, 3 Apr 2007 14:42:32 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 04273-01; Tue, 3 Apr 2007 14:42:23 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from BAY0-OMC3-S10.bay0.hotmail.com (bay0-omc3-s10.bay0.hotmail.com [65.54.246.210]) by postgresql.org (Postfix) with ESMTP id CAD599FBAB1; Tue, 3 Apr 2007 14:42:23 -0300 (ADT) Received: from BAY131-W7 ([65.55.136.42]) by BAY0-OMC3-S10.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Tue, 3 Apr 2007 10:42:22 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_bd515516-9c52-4d50-96b8-7382af19be82_" X-Originating-IP: [67.116.31.14] From: Karthikeyan Sundaram To: , Subject: plpgsql function question Date: Tue, 3 Apr 2007 10:42:22 -0700 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 03 Apr 2007 17:42:22.0721 (UTC) FILETIME=[6F505710:01C77617] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.564 tagged_above=0 required=5 tests=AWL=-0.738, BAYES_20=-0.74, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, HTML_50_60=0.134, HTML_MESSAGE=0.001, SPF_PASS=-0.001 X-Spam-Level: X-Archive-Number: 200704/24 X-Sequence-Number: 25088 --_bd515516-9c52-4d50-96b8-7382af19be82_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, =20 I am having a requirement here. =20 1) I need to write a plpgsql function where it takes the input parameter= of a structure of a table. 2) The table has 15 columns 3) It does lots of validation based on the parameter and finally returns= an integer as output parameters =20 Q) How will I passe the table structure as as parameter 2) Do I need to create a type? =20 Please help me. =20 Regards skarthi =20 =20 _________________________________________________________________ Take a break and play crossword puzzles - FREE! http://games.msn.com/en/flexicon/default.htm?icid=3Dflexicon_ wlmemailtagli= nemarch07= --_bd515516-9c52-4d50-96b8-7382af19be82_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
   I am having a requirement here.
 
   1) I need to write a plpgsql function where it takes the input= parameter of a structure of a table.
   2) The table has 15 columns
   3) It does lots of validation based on the parameter and final= ly returns an integer as output parameters
 
  Q) How will I passe the table structure as as parameter
      2) Do I need to create a type?
 
   Please help me.
 
Regards
skarthi
 
 


Take a break and play crossword puzzles = - FREE! Play Now! = --_bd515516-9c52-4d50-96b8-7382af19be82_--