pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: IN/OUT parameters
Date: Tue, 24 May 2005 15:21:54 -0400
Message-ID: <42937ED2.1030902@fastcrypt.com> (raw)
In-Reply-To: <4829.1116961439@sss.pgh.pa.us>
References: <42936EF8.7000703@fastcrypt.com>
	<4829.1116961439@sss.pgh.pa.us>

At this point I'd just like the backend to ignore the OUT parameter if 
it were set that way, but allow
it to be sent.

If you consider that a function could have for arguments sake 10 
parameters, and they
can be ordered in any fashion; clients have to essentially parse out the 
OUT parameters and not send them.  So you have an incoming client call 
with 10 parameters but some number less than or equal to get sent to the 
backend.

At this point I'm leaning towards just using IN, or INOUT params, as 
jdbc has a register outparam, and this could be bound to null if were 
not explicitly set.

Dave



Tom Lane wrote:

>Dave Cramer <pg@fastcrypt.com> writes:
>  
>
>>create function foo( out p1 int, in p2 int,  out p3  int) ....
>>then a subsequent
>>    
>>
> 
>  
>
>>"{call = select foo(?,?,?)}
>>    
>>
>
>  
>
>>This would need to be currently transformed into select foo(?), with the 
>>other two being discarded.
>>    
>>
>
>  
>
>>It seems to me that the bind message needs to support the notion of 
>>direction in order for this to work cleanly.
>>    
>>
>
>How would it help for BIND to incorporate direction?  What would it even
>*mean* for BIND to incorporate direction --- it's a client-to-server
>message, and can hardly be expected to transmit data in the reverse
>direction.
>
>			regards, tom lane
>
>
>  
>

-- 
Dave Cramer
http://www.postgresintl.com
519 939 0336
ICQ#14675561




view thread (11+ messages)  latest in thread

Message-ID: <42937ED2.1030902@fastcrypt.com>
Permalink:  ../42937ED2.1030902@fastcrypt.com/
Also on:    postgresql.org/message-id/42937ED2.1030902@fastcrypt.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: pg@fastcrypt.com, tgl@sss.pgh.pa.us, pgsql-hackers@postgresql.org
  Subject: Re: IN/OUT parameters
  In-Reply-To: <42937ED2.1030902@fastcrypt.com>
  References: <42936EF8.7000703@fastcrypt.com> <4829.1116961439@sss.pgh.pa.us> <42937ED2.1030902@fastcrypt.com>

* 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