Re: don't create storage when unnecessary - Mailing list pgsql-hackers

From Andres Freund
Subject Re: don't create storage when unnecessary
Date
Msg-id 20181206225115.cyp53konqyxgerly@alap3.anarazel.de
Whole thread Raw
In response to don't create storage when unnecessary  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-hackers
Hi,

On 2018-12-06 18:55:52 -0300, Alvaro Herrera wrote:
> Some time ago, after partitioned indexes had been pushed, I realized
> that even though I didn't want them to have relfilenodes, they did.  And
> looking closer I noticed that *a lot* of relation kinds that didn't need
> relfilenodes, had them anyway.
> 
> This patch fixes that; if no relfilenode is needed, it's not created.
> 
> I didn't verify pg_upgrade behavior across this commit.  Maybe something
> needs tweaking there.

Hm, that generally sounds like a good plan. Could we back this up with
tests in misc_sanity.sql or such?

- Andres


pgsql-hackers by date:

Previous
From: Elvis Pranskevichus
Date:
Subject: [PATCH] Allow anonymous rowtypes in function return column definition
Next
From: Michael Paquier
Date:
Subject: Re: Hint and detail punctuation