Re: [HACKERS] Where are we on stored procedures? - Mailing list pgsql-jdbc

From Markus Schaber
Subject Re: [HACKERS] Where are we on stored procedures?
Date
Msg-id 421F69AD.1000803@logi-track.com
Whole thread Raw
In response to Re: [HACKERS] Where are we on stored procedures?  ("Francisco Figueiredo Jr." <fxjrlists@yahoo.com.br>)
Responses Re: [HACKERS] Where are we on stored procedures?  ("Francisco Figueiredo Jr." <fxjrlists@yahoo.com.br>)
List pgsql-jdbc
Hi, Francisco,

Francisco Figueiredo Jr. schrieb:

> In fact, I think people keep requesting me support on Npgsql for that
> because MS Sql server supports it and they are porting their code to use
> Postgresql and facing that difficult.
>
> Indeed, for (a) we could use an approach similar to Ms sql server. We
> could have a way of the procedure say if it wanted to send the rows
> affected information or not.
> And about (b) I think that it is only on trivial cases that people
> really want to use this feature :)

As you need to tweak the function/procedure source to implement (a), you
can also tweak the function/procedure to return the row cound and
whatever other diagnostics you need.

For newly implemented stored procedures, we could create a special
diagnostics result set that every procedure creates. This usually
contains some success/error information, but the procedure could add
additional rows to it.

Markus

--
markus schaber | dipl. informatiker
logi-track ag | rennweg 14-16 | ch 8001 zürich
phone +41-43-888 62 52 | fax +41-43-888 62 53
mailto:schabios@logi-track.com | www.logi-track.com


Attachment

pgsql-jdbc by date:

Previous
From: Dave Smith
Date:
Subject: Re: setFetchSize question
Next
From: Markus Schaber
Date:
Subject: Re: [HACKERS] Where are we on stored procedures?