X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 0F41AD1D15D for ; Wed, 20 Aug 2003 06:46:20 -0300 (ADT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 88843-09 for ; Wed, 20 Aug 2003 06:46:10 -0300 (ADT) Received: from param.aztec.soft.net (param.aztec.soft.net [164.164.151.8]) by svr1.postgresql.org (Postfix) with ESMTP id 5E6F4D1B8EF for ; Wed, 20 Aug 2003 06:46:02 -0300 (ADT) Received: from maya.aztec.soft.net (maya.aztec.soft.net [164.164.151.5]) by param.aztec.soft.net (8.11.2/8.11.2) with ESMTP id h7KAVWu21042 for ; Wed, 20 Aug 2003 16:01:33 +0530 Received: by maya.aztec.soft.net with Internet Mail Service (5.5.2653.19) id ; Wed, 20 Aug 2003 15:15:23 +0530 Message-ID: From: Jomon Skariah To: pgsql-sql@postgresql.org Subject: Porting from PL/SQL to PLPGSQL Date: Wed, 20 Aug 2003 15:15:23 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=1.0 tagged_above=0.0 required=5.0 tests=UPPERCASE_25_50 X-Spam-Level: * X-Archive-Number: 200308/238 X-Sequence-Number: 14854 Hi All, We are in the process of migrating of our application from Oracle to PostGreSQL. we are facing a few problems with PL/SQL Code.. 1) In Oracle sqlplus we can run sql script files as @script_name; How do we do the same in PostGres. Also is there any replacement for "&&" in PostGres ? Eg: CREATE USER CATALOG IDENTIFIED BY &ORA_PASSWORD DEFAULT TABLESPACE &DFLT_TABLESPACE TEMPORARY TABLESPACE &TEMP_TABLESPACE 2) In PostGres a function can not take more 16 arguments.We have some procedures which are taking more than 16 arguements.So how can we convert them into PostGres. Can anyone give some valuable suggestions.. Regards Joe.