Re: Custom/Foreign-Join-APIs (Re: [v9.5] Custom Plan API)

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Kohei KaiGai <kaigai(at)kaigai(dot)gr(dot)jp>, Kouhei Kaigai <kaigai(at)ak(dot)jp(dot)nec(dot)com>, Thom Brown <thom(at)linux(dot)com>, Shigeru Hanada <shigeru(dot)hanada(at)gmail(dot)com>, "pgsql-hackers(at)postgreSQL(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Custom/Foreign-Join-APIs (Re: [v9.5] Custom Plan API)
Date: 2015-05-11 02:51:33
Message-ID: CA+TgmobBJ98mQpMRjKcnHD=fg9MiBD-23_-KTO+5SJ1jrf2+WA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, May 10, 2015 at 10:37 PM, Andres Freund <andres(at)anarazel(dot)de> wrote:
> On 2015-05-10 21:53:45 -0400, Robert Haas wrote:
>> Please name EVEN ONE instance in which core development has been
>> prevented for fear of changing a function API.
>
> Even *moving* function declarations to a different file has been laudly
> and repeatedly complained about...

Moving declarations is a lot more likely to break compiles than adding
declarations. But even the 9.3 header file reorganizations, which
broke enough compiles to be annoying, were only annoying, not a
serious problem for anyone. I doubted whether that stuff was worth
changing, but that's just because I don't really get excited about
partial recompiles.

> And there's definitely some things
> around that pretty much only still exist because changing them would
> break too much stuff.

Such as what?

> But.
>
> I don't think that's a reason to not expose more functions
> externally. Because the usual consequence of not exposing them is that
> either ugly workarounds will be found, or code will just copy pasted
> around. That's not in any way better, and much likely to be worse.

Yes.

> I'm not saying that we shouldn't use judgement, but I do think that the
> current approach ridicules our vaunted extensibility in many cases.

Double yes.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2015-05-11 03:07:45 Re: Custom/Foreign-Join-APIs (Re: [v9.5] Custom Plan API)
Previous Message Kyotaro HORIGUCHI 2015-05-11 02:37:19 Re: Async execution of postgres_fdw.