Re: [HACKERS] Allowing extended stats on foreign and partitionedtables - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [HACKERS] Allowing extended stats on foreign and partitionedtables
Date
Msg-id f8f502d5-66a8-3fce-1fcf-187d6767c392@2ndquadrant.com
Whole thread Raw
In response to Re: [HACKERS] Allowing extended stats on foreign and partitioned tables  (Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>)
Responses Re: [HACKERS] Allowing extended stats on foreign and partitioned tables
List pgsql-hackers
On 4/10/17 06:18, Ashutosh Bapat wrote:
> This isn't exactly about this particular thread. But I noticed, that
> after we introduced RELKIND_PARTITIONED_TABLE, we required to change a
> number of conditions to include this relkind. We missed some places in
> initial commits and fixed those later. I am wondering whether we
> should creates macros clubbing relevant relkinds together based on the
> purpose of the tests e.g. IS_RELKIND_HAS_STORAGE(). When a new relkind
> is added, one can examine these macros to check whether the new
> relkind fits in the given macro. If all those macros are placed
> together, there is a high chance that we will not miss any place in
> the initial commit itself.

I think this is worth a try.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: [HACKERS] Shouldn't duplicate addition to publication be a no-op?
Next
From: Petr Jelinek
Date:
Subject: Re: [HACKERS] Different table schema in logical replication crashes