pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alexander Korotkov <aekorotkov@gmail.com>
Cc: Jonathan S. Katz <jkatz@postgresql.org>
Cc: Justin Pryzby <pryzby@telsasoft.com>
Cc: Zhihong Yu <zyu@yugabyte.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: unnesting multirange data types
Date: Tue, 15 Jun 2021 13:28:27 -0400
Message-ID: <202106151728.5kbtjl7or3g2@alvherre.pgsql> (raw)
In-Reply-To: <427913.1623777486@sss.pgh.pa.us>

On 2021-Jun-15, Tom Lane wrote:

> It looks to me like the proximate problem is that you should
> have taught pg_dump to skip these new auto-generated functions.
> However, I fail to see why we need auto-generated functions
> for this at all.  Couldn't we have done it with one polymorphic
> function?

I think such a function would need to take anycompatiblerangearray,
which is not something we currently have.

> I think this ought to be reverted and reviewed more carefully.

It seems to me that removing the cast-to-range[] is a sufficient fix,
and that we can do with only the unnest part for pg14; the casts can be
added in 15 (if at all).  That would mean reverting only half the patch.

-- 
Álvaro Herrera                            39°49'30"S 73°17'W





view thread (66+ messages)  latest in thread

Message-ID: <202106151728.5kbtjl7or3g2@alvherre.pgsql>
Permalink:  ../202106151728.5kbtjl7or3g2@alvherre.pgsql/
Also on:    postgresql.org/message-id/202106151728.5kbtjl7or3g2@alvherre.pgsql

 · 

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: alvherre@alvh.no-ip.org, tgl@sss.pgh.pa.us, aekorotkov@gmail.com, jkatz@postgresql.org, pryzby@telsasoft.com, zyu@yugabyte.com
  Subject: Re: unnesting multirange data types
  In-Reply-To: <202106151728.5kbtjl7or3g2@alvherre.pgsql>
  References: <427913.1623777486@sss.pgh.pa.us> <202106151728.5kbtjl7or3g2@alvherre.pgsql>

* 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