mirror of https://github.com/citusdata/citus.git
Fix pg_depend entry to AMs after ALTER TABLE .. SET ACCESS METHOD
Relevant PG commit:
97d8910104
97d89101045fac8cb36f4ef6c08526ea0841a596
onder_pg16_outer_crash
parent
e71d642965
commit
7ed6a6fb13
|
@ -1022,13 +1022,14 @@ GetUndistributableDependency(const ObjectAddress *objectAddress)
|
||||||
if (!SupportedDependencyByCitus(dependency))
|
if (!SupportedDependencyByCitus(dependency))
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Skip roles and text search templates.
|
* Skip roles, access methods, and text search templates.
|
||||||
*
|
*
|
||||||
* Roles should be handled manually with Citus community whereas text search
|
* Roles and access methods should be handled manually with Citus community
|
||||||
* templates should be handled manually in both community and enterprise
|
* whereas text search templates should be handled manually in both community and enterprise
|
||||||
*/
|
*/
|
||||||
if (getObjectClass(dependency) != OCLASS_ROLE &&
|
if (getObjectClass(dependency) != OCLASS_ROLE &&
|
||||||
getObjectClass(dependency) != OCLASS_TSTEMPLATE)
|
getObjectClass(dependency) != OCLASS_TSTEMPLATE &&
|
||||||
|
getObjectClass(dependency) != OCLASS_AM)
|
||||||
{
|
{
|
||||||
return dependency;
|
return dependency;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue