pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: [HACKERS] SQL procedures
Date: Tue, 2 Jan 2018 14:35:19 -0500
Message-ID: <d35eb271-cd6d-c7ff-6139-830a8b1e680a@2ndQuadrant.com> (raw)
In-Reply-To: <CA+TgmoZDwHMAogmZwW4S+smDoYqq=wLRuw7sxdQr-BuJ5+VbgQ@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>
	<11024.1514911665@sss.pgh.pa.us>
	<CA+TgmoaFBWbV_ukwAokKaOUE_bk0f58sKKjd5gQ5SO4sgYjwVg@mail.gmail.com>
	<9a7b749f-6df1-0977-1bf2-0669770df7af@2ndQuadrant.com>
	<CA+TgmoZDwHMAogmZwW4S+smDoYqq=wLRuw7sxdQr-BuJ5+VbgQ@mail.gmail.com>



On 01/02/2018 02:14 PM, Robert Haas wrote:
> On Tue, Jan 2, 2018 at 1:57 PM, Andrew Dunstan
> <andrew.dunstan@2ndquadrant.com> wrote:
>> Yeah, but these things don't feel like they belong in the same category.
>> The fact that we have to ask this question is a symptom of that.
> Well, that's got to be asked about any representation we choose - that
> question is the motivation for not liking the use of prorettype for
> this purpose, so it's only fair to ask whether any alternative has the
> same problem.


I think there's broad agreement about not liking use of prorettype for
this purpose.


>
>> A
>> boolean feels more natural to me here, although I acknowledge it will
>> result in a tiny amount of catalog bloat. Tom's point about client-side
>> code is also valid. I don't feel very strongly about it, though.
> I think the catalog bloat is too minor to care about, but if these
> things really are mutually exclusive, it's more natural to have them
> use a single flag character rather than a series of Booleans.
> Otherwise, it may be unclear to the casual observer (or hacker) that
> at most one of the Booleans can be true, possibly leading to user
> confusion (or bugs).



Fair point. I don't recall if we discussed anything like this when
window functions were introduced.


>
> It's pretty well impossible to introduce new features without
> occasionally changing the catalog representation.  We had several
> people grumble when I replaced relistemp with relpersistence, and we
> (rightly, IMHO) told those people to suck it up and deal.  I don't
> think we should react any differently here.  I recognize that it's a
> pain, but it's not that much of a pain, and it may even be helpful to
> tool authors who actually need to handle procedures differently than
> functions, which is probably a lot of them.  pgAdmin for example seems
> like it will certainly need to care.



I agree.


cheers

andrew

-- 
Andrew Dunstan                https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services





view thread (57+ messages)  latest in thread

Message-ID: <d35eb271-cd6d-c7ff-6139-830a8b1e680a@2ndQuadrant.com>
Permalink:  ../d35eb271-cd6d-c7ff-6139-830a8b1e680a@2ndQuadrant.com/
Also on:    postgresql.org/message-id/d35eb271-cd6d-c7ff-6139-830a8b1e680a@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: andrew.dunstan@2ndquadrant.com, robertmhaas@gmail.com, tgl@sss.pgh.pa.us, peter.eisentraut@2ndquadrant.com
  Subject: Re: [HACKERS] SQL procedures
  In-Reply-To: <d35eb271-cd6d-c7ff-6139-830a8b1e680a@2ndQuadrant.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> <11024.1514911665@sss.pgh.pa.us> <CA+TgmoaFBWbV_ukwAokKaOUE_bk0f58sKKjd5gQ5SO4sgYjwVg@mail.gmail.com> <9a7b749f-6df1-0977-1bf2-0669770df7af@2ndQuadrant.com> <CA+TgmoZDwHMAogmZwW4S+smDoYqq=wLRuw7sxdQr-BuJ5+VbgQ@mail.gmail.com> <d35eb271-cd6d-c7ff-6139-830a8b1e680a@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