pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alexander Pyhalov <a.pyhalov@postgrespro.ru>
Cc: Amit Langote <amitlangote09@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: join pushdown and issue with foreign update
Date: Tue, 01 Jun 2021 16:01:34 -0400
Message-ID: <2850299.1622577694@sss.pgh.pa.us> (raw)
In-Reply-To: <e55f17943f708a265bad9d0015165bb2@postgrespro.ru>
References: <7817fb9ebd6661cdf9b67dec6e129a78@postgrespro.ru>
	<ae6d414df6165d50ec9db4265f999c14@postgrespro.ru>
	<CA+HiwqHnLESTUQUQ3-MBxOatPK4P4uu2Br3+6KRxFfbBO=HgFw@mail.gmail.com>
	<050b90460c024dd21af53dbaaf8fd510@postgrespro.ru>
	<2845636.1622571541@sss.pgh.pa.us>
	<e55f17943f708a265bad9d0015165bb2@postgrespro.ru>

Alexander Pyhalov <a.pyhalov@postgrespro.ru> writes:
> Tom Lane писал 2021-06-01 21:19:
>> ISTM that using a specific rowtype rather than RECORD would be
>> quite disastrous from the standpoint of bloating the number of
>> distinct resjunk columns we need for a partition tree with a
>> lot of children.  Maybe we'll have to go that way, but it seems
>> like an absolute last resort.

> Why do you think they are distinct?
> In suggested patch all of them will have type of the common ancestor 
> (root of the partition tree).

Seems moderately unlikely that that will work in cases where the
partition children have rowtypes different from the ancestor
(different column order etc).  It'll also cause the problem we
originally sought to avoid for selects across traditional inheritance
trees, where there isn't a common partition ancestor.

			regards, tom lane





view thread (13+ messages)  latest in thread

Message-ID: <2850299.1622577694@sss.pgh.pa.us>
Permalink:  ../2850299.1622577694@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2850299.1622577694@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, a.pyhalov@postgrespro.ru, amitlangote09@gmail.com
  Subject: Re: join pushdown and issue with foreign update
  In-Reply-To: <2850299.1622577694@sss.pgh.pa.us>
  References: <7817fb9ebd6661cdf9b67dec6e129a78@postgrespro.ru> <ae6d414df6165d50ec9db4265f999c14@postgrespro.ru> <CA+HiwqHnLESTUQUQ3-MBxOatPK4P4uu2Br3+6KRxFfbBO=HgFw@mail.gmail.com> <050b90460c024dd21af53dbaaf8fd510@postgrespro.ru> <2845636.1622571541@sss.pgh.pa.us> <e55f17943f708a265bad9d0015165bb2@postgrespro.ru> <2850299.1622577694@sss.pgh.pa.us>

* 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