Re: Some RELKIND macro refactoring - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Some RELKIND macro refactoring
Date
Msg-id 202111231519.kf27gjzikeko@alvherre.pgsql
Whole thread Raw
In response to Re: Some RELKIND macro refactoring  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Responses Re: Some RELKIND macro refactoring
List pgsql-hackers
On 2021-Nov-22, Peter Eisentraut wrote:

> Maybe
> 
>     else
>     {
>         Assert(RELKIND_HAS_STORAGE(rel->rd_rel->relkind);
>         RelationCreateStorage(rel->rd_node, relpersistence);
>     }
> 
> create_storage is set earlier based on RELKIND_HAS_STORAGE(), so this would
> be consistent.

Hmm, right ... but I think we can make this a little simpler.  How about
the attached?

-- 
Álvaro Herrera              Valdivia, Chile  —  https://www.EnterpriseDB.com/

Attachment

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Some RELKIND macro refactoring
Next
From: "Drouvot, Bertrand"
Date:
Subject: Re: Patch to avoid orphaned dependencies