Re: Multiple Return Values?

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Steve_Miller(at)sil(dot)org, pgsql-novice(at)postgresql(dot)org
Subject: Re: Multiple Return Values?
Date: 2003-02-18 00:00:29
Message-ID: 200302171600.29510.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Steve,

> We are in the process of converting a SQL Server database to PostgreSQL.
> SQL Server stored procedures can have output parameters, as well as a
> return value. Postgres, as far as I can tell, doesn't have output
> parameters. Anybody have a good workaround for returning multiple values
> out of Postgres?

Yes. If you're using 7.3, then you can return your output values as a faux
record, as many as you want.

If you're running 7.2, then you can return stuff as a string with delimiters,
and parse it on the client end.

--
-Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Josh Berkus 2003-02-18 00:06:32 Re: Re Dynamic IP - pg_hba
Previous Message Steve_Miller 2003-02-17 23:06:44 Multiple Return Values?