Re: TOAST table created for partitioned tables - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: TOAST table created for partitioned tables
Date
Msg-id 20180117045106.GB2330@paquier.xyz
Whole thread Raw
In response to Re: TOAST table created for partitioned tables  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: TOAST table created for partitioned tables
List pgsql-hackers
On Tue, Jan 16, 2018 at 11:38:58PM -0500, Tom Lane wrote:
> Yeah, pg_upgrade already has to cope with cases where the newer version
> thinks a table needs a toast table when the older version didn't, or
> vice versa.  This looks like it ought to fall into that category.
> Not that testing it wouldn't be a good idea.

As far as I can see this statement is true. If you create a parent
partition table in a v10 cluster, and then upgrade to HEAD with this
patch applied, you'll be able to notice that the relation still has its
toast table present, while newly-created parent partitions would have
nothing. (Just tested, I didn't review the patch in details).
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: TOAST table created for partitioned tables
Next
From: Jeff Davis
Date:
Subject: Re: Rangejoin rebased