pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Roberto Mello <rmello@cc.usu.edu>
To: Jomon Skariah <jomons@aztec.soft.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Porting from PL/SQL to PLPGSQL
Date: Wed, 20 Aug 2003 15:12:25 -0600
Message-ID: <20030820211225.GA26409@cc.usu.edu> (raw)
In-Reply-To: <F83B457BE363174B8233DE042A14457043A6C6@maya.aztec.soft.net>
References: <F83B457BE363174B8233DE042A14457043A6C6@maya.aztec.soft.net>

On Wed, Aug 20, 2003 at 03:15:23PM +0530, Jomon Skariah wrote:
> 
> 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.

psql takes \i. See psql's \?

See the "Porting From Oracle PL/SQL" document I wrote that is part of the
PL/pgSQL documentation.

> 	Also is there any replacement for "&&" in PostGres ?
> 
> 
> 	Eg:
> 		CREATE USER CATALOG
> 		IDENTIFIED BY &ORA_PASSWORD
> 		DEFAULT TABLESPACE &DFLT_TABLESPACE
> 		TEMPORARY TABLESPACE &TEMP_TABLESPACE

What does that do?
 
> 
> 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.

You can recompile to change the number of parameters.
PG 7.3 can have up to 32 arguments by default, IIRC.

-Roberto

-- 
+----|        Roberto Mello   -    http://www.brasileiro.net/  |------+
+       Computer Science Graduate Student, Utah State University      +
+       USU Free Software & GNU/Linux Club - http://fslc.usu.edu/     +
It's now the GNU Emacs of all terminal emulators.
	-- Linus Torvalds, regarding the fact that Linux started off as a terminal emulator



view thread (8+ messages)  latest in thread

Message-ID: <20030820211225.GA26409@cc.usu.edu>
Permalink:  ../20030820211225.GA26409@cc.usu.edu/
Also on:    postgresql.org/message-id/20030820211225.GA26409@cc.usu.edu

 · 

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: rmello@cc.usu.edu, jomons@aztec.soft.net
  Subject: Re: Porting from PL/SQL to PLPGSQL
  In-Reply-To: <20030820211225.GA26409@cc.usu.edu>

* 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