mirror of https://github.com/citusdata/citus.git
CLUSTER ON deparser should consider schemas (#5122)
(cherry picked from commit 87a51ae552
)
pull/5152/head
parent
f571abcca6
commit
106d68fd61
|
@ -1025,12 +1025,13 @@ pg_get_indexclusterdef_string(Oid indexRelationId)
|
|||
/* check if the table is clustered on this index */
|
||||
if (indexForm->indisclustered)
|
||||
{
|
||||
char *tableName = generate_relation_name(tableRelationId, NIL);
|
||||
char *qualifiedRelationName =
|
||||
generate_qualified_relation_name(tableRelationId);
|
||||
char *indexName = get_rel_name(indexRelationId); /* needs to be quoted */
|
||||
|
||||
initStringInfo(&buffer);
|
||||
appendStringInfo(&buffer, "ALTER TABLE %s CLUSTER ON %s",
|
||||
tableName, quote_identifier(indexName));
|
||||
qualifiedRelationName, quote_identifier(indexName));
|
||||
}
|
||||
|
||||
ReleaseSysCache(indexTuple);
|
||||
|
|
Loading…
Reference in New Issue