pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: [HACKERS] SQL procedures
Date: Tue, 14 Nov 2017 10:57:26 -0500
Message-ID: <32ceef13-595d-a698-128c-b90ab9494a52@2ndquadrant.com> (raw)
In-Reply-To: <17774.1510152857@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>
	<17774.1510152857@sss.pgh.pa.us>

On 11/8/17 09:54, Tom Lane wrote:
> Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
>> On 10/31/17 14:23, Tom Lane wrote:
>>> Why not use VOIDOID for the prorettype value?
> 
>> We need a way to distinguish functions that are callable by SELECT and
>> procedures that are callable by CALL.
> 
> Do procedures of this ilk belong in pg_proc at all?  It seems like a large
> fraction of the attributes tracked in pg_proc are senseless for this
> purpose.  A new catalog might be a better approach.

The common functionality between functions and procedures is like 98%
[citation needed], so they definitely belong there, even more so than
aggregates, for example.

> In any case, I buy none of your arguments that 0 is a better choice than a
> new pseudotype.

Well, I haven't heard any reasons for doing it differently, so I can't
judge the relative merits of either approach.  Ultimately, it would be a
minor detail as far as the code is concerned, I think.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (57+ messages)  latest in thread

Message-ID: <32ceef13-595d-a698-128c-b90ab9494a52@2ndquadrant.com>
Permalink:  ../32ceef13-595d-a698-128c-b90ab9494a52@2ndquadrant.com/
Also on:    postgresql.org/message-id/32ceef13-595d-a698-128c-b90ab9494a52@2ndquadrant.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-hackers@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, tgl@sss.pgh.pa.us
  Subject: Re: [HACKERS] SQL procedures
  In-Reply-To: <32ceef13-595d-a698-128c-b90ab9494a52@2ndquadrant.com>
  References: <336f6926-8990-ff2d-4167-276ce417fc32@2ndquadrant.com> <9388.1509474184@sss.pgh.pa.us> <f2b2ac79-f7d0-e736-ac12-50a103d0dcbd@2ndquadrant.com> <17774.1510152857@sss.pgh.pa.us> <32ceef13-595d-a698-128c-b90ab9494a52@2ndquadrant.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