pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: [HACKERS] SQL procedures
Date: Tue, 02 Jan 2018 11:47:45 -0500
Message-ID: <11024.1514911665@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoYjzskF6jFS2nWCW_nDJNnZzaf4S2KZmPD0=vUOz=Z=rw@mail.gmail.com>
References: <336f6926-8990-ff2d-4167-276ce417fc32@2ndquadrant.com>
	<9388.1509474184@sss.pgh.pa.us>
	<f2b2ac79-f7d0-e736-ac12-50a103d0dcbd@2ndquadrant.com>
	<CA+TgmoYjzskF6jFS2nWCW_nDJNnZzaf4S2KZmPD0=vUOz=Z=rw@mail.gmail.com>

Robert Haas <robertmhaas@gmail.com> writes:
> I agree that we need this, but using prorettype = InvalidOid to do it
> might not be the best way, because it only works for procedures that
> don't return anything.  If a procedure could return, say, an integer,

Good point, because that is possible in some other systems, and so
somebody is going to ask for it at some point.

> Anyway, I think it would be better to invent an explicit way to
> represent whether something is a procedure rather than relying on
> overloading prorettype to tell us.

+1 --- seems like a new bool column is the thing.  Or may we should merge
"proisprocedure" with proisagg and proiswindow into an enum prokind?
Although that would break some existing client-side code.

PS: I still strongly disagree with allowing prorettype to be zero.

			regards, tom lane




view thread (57+ messages)  latest in thread

Message-ID: <11024.1514911665@sss.pgh.pa.us>
Permalink:  ../11024.1514911665@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11024.1514911665@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 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-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, peter.eisentraut@2ndquadrant.com
  Subject: Re: [HACKERS] SQL procedures
  In-Reply-To: <11024.1514911665@sss.pgh.pa.us>
  References: <336f6926-8990-ff2d-4167-276ce417fc32@2ndquadrant.com> <9388.1509474184@sss.pgh.pa.us> <f2b2ac79-f7d0-e736-ac12-50a103d0dcbd@2ndquadrant.com> <CA+TgmoYjzskF6jFS2nWCW_nDJNnZzaf4S2KZmPD0=vUOz=Z=rw@mail.gmail.com> <11024.1514911665@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