pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guyren Howe <guyren@gmail.com>
To: PG-General Mailing List <pgsql-general@postgresql.org>
Subject: Re: Immutable function WAY slower than Stable function?
Date: Tue, 7 Aug 2018 09:57:15 -0700
Message-ID: <455A4B55-84BC-46A4-B1B7-F2F4246329A0@gmail.com> (raw)
In-Reply-To: <24954.1533658221@sss.pgh.pa.us>
References: <CAD3a31Vh6f5eLhK0kQL6b5mxr2Fc0qda1yW8YqTvDQRxcpg9jg@mail.gmail.com>
	<03120a03-75d0-ad6c-691c-35ca7e7fccfa@aklaver.com>
	<CAD3a31X3u8A2aqnOHcQG-dE_vaeC=jm+O2uAw8+svp5B0MxC+w@mail.gmail.com>
	<27336.1533609731@sss.pgh.pa.us>
	<CAD3a31Xu+XHf70HnWeS+rXEvBypOBihDNU1N8DOEaXB36HSi6Q@mail.gmail.com>
	<24954.1533658221@sss.pgh.pa.us>

On Aug 7, 2018, at 9:10 , Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 
> I've had a to-do item to rewrite and improve the SQL function cache
> mechanism for a long time, but I hadn't thought it was high priority.
> Maybe it should be.

Personally, I would love this. Far too few developers dig into doing things in the database. Conceptually, doing all the data things in the database should be faster, more versatile, more secure etc.

Modern SQL has tools that can make its awfulness tolerable. CTEs and SQL functions spring immediately to mind. But both suffer from optimization fences and corner cases like this that arguably make it not worth the effort.

view thread (19+ messages)  latest in thread

Message-ID: <455A4B55-84BC-46A4-B1B7-F2F4246329A0@gmail.com>
Permalink:  ../455A4B55-84BC-46A4-B1B7-F2F4246329A0@gmail.com/
Also on:    postgresql.org/message-id/455A4B55-84BC-46A4-B1B7-F2F4246329A0@gmail.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-general@postgresql.org
  Cc: guyren@gmail.com
  Subject: Re: Immutable function WAY slower than Stable function?
  In-Reply-To: <455A4B55-84BC-46A4-B1B7-F2F4246329A0@gmail.com>
  References: <CAD3a31Vh6f5eLhK0kQL6b5mxr2Fc0qda1yW8YqTvDQRxcpg9jg@mail.gmail.com> <03120a03-75d0-ad6c-691c-35ca7e7fccfa@aklaver.com> <CAD3a31X3u8A2aqnOHcQG-dE_vaeC=jm+O2uAw8+svp5B0MxC+w@mail.gmail.com> <27336.1533609731@sss.pgh.pa.us> <CAD3a31Xu+XHf70HnWeS+rXEvBypOBihDNU1N8DOEaXB36HSi6Q@mail.gmail.com> <24954.1533658221@sss.pgh.pa.us> <455A4B55-84BC-46A4-B1B7-F2F4246329A0@gmail.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