Throw an error if placements cannot be found in router executor

release-7.2 v7.2.2
Marco Slot 2018-05-06 17:36:40 +02:00 committed by velioglu
parent a5e9b29630
commit e8a8d300ec
1 changed files with 7 additions and 0 deletions

View File

@ -616,6 +616,13 @@ ExecuteSingleSelectTask(CitusScanState *scanState, Task *task)
placementAccessList = list_make1(placementAccess);
}
if (placementAccessList == NIL)
{
ereport(ERROR, (errcode(ERRCODE_T_R_SERIALIZATION_FAILURE),
errmsg("a placement was moved after the SELECT was "
"planned")));
}
connection = GetPlacementListConnection(connectionFlags, placementAccessList,
NULL);