pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
Cc: pgsql-hackers@postgresql.org
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Where are we on stored procedures?
Date: Thu, 24 Feb 2005 17:32:48 -0500
Message-ID: <28071.1109284368@sss.pgh.pa.us> (raw)
In-Reply-To: <20050224214935.57272.qmail@web60703.mail.yahoo.com>
References: <20050224214935.57272.qmail@web60703.mail.yahoo.com>

"Francisco Figueiredo Jr." <fxjrlists@yahoo.com.br> writes:
> Could I add another item?

> Could we have the row count of statements executed inside a
> procedure/function returned to client?

IMHO that request is completely bogus; if the procedure wants to tell
the client that, it's the procedure's responsibility to return the
number as a result.  Doing what you ask (a) would arguably be a security
violation, and (b) the info would be impossible for the client to
interpret in any but the most trivial cases anyway.  Consider for
instance a procedure that contains different queries in the THEN and
the ELSE arms of an IF, or contains loops executed a variable number
of times.  Without access to the results of the control flow tests, the
client could not know which number means what.

			regards, tom lane



view thread (15+ messages)  latest in thread

Message-ID: <28071.1109284368@sss.pgh.pa.us>
Permalink:  ../28071.1109284368@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28071.1109284368@sss.pgh.pa.us

 · 

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-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, fxjrlists@yahoo.com.br, pgsql-jdbc@postgresql.org
  Subject: Re: [JDBC] Where are we on stored procedures?
  In-Reply-To: <28071.1109284368@sss.pgh.pa.us>

* 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