Add clarifying comment to RngVarCallbackForDropIdx

We don't need the PARTITION-related logic recently added in PostgreSQL.
release-7.0
Jason Petersen 2017-09-01 15:57:30 -06:00 committed by Burak Yucesoy
parent 44ddef6fe8
commit 0012d70b1b
1 changed files with 3 additions and 1 deletions

View File

@ -3111,7 +3111,9 @@ InterShardDDLTaskList(Oid leftRelationId, Oid rightRelationId,
*
* This code is heavily borrowed from RangeVarCallbackForDropRelation() in
* commands/tablecmds.c in Postgres source. We need this to ensure the right
* order of locking while dealing with DROP INDEX statments.
* order of locking while dealing with DROP INDEX statments. Because we are
* exclusively using this callback for INDEX processing, the PARTITION-related
* logic from PostgreSQL's similar callback has been omitted as unneeded.
*/
static void
RangeVarCallbackForDropIndex(const RangeVar *rel, Oid relOid, Oid oldRelOid, void *arg)