pull/3456/head
Marco Slot 2020-02-03 11:59:55 +01:00
parent a6bd6c657e
commit be77d3304f
1 changed files with 4 additions and 3 deletions

View File

@ -593,11 +593,12 @@ FindPlacementListConnection(int flags, List *placementAccessList, const char *us
} }
} }
else if (accessType == PLACEMENT_ACCESS_SELECT && else if (accessType == PLACEMENT_ACCESS_SELECT &&
placementEntry->hasSecondaryConnections) placementEntry->hasSecondaryConnections &&
!placementConnection->hadDDL && !placementConnection->hadDML)
{ {
/* /*
* Two separate connections have already selected from this placements. * Two separate connections have already selected from this placement
* There is no benefit to using this connection. * and it was not modified. There is no benefit to using this connection.
*/ */
} }
else if (CanUseExistingConnection(flags, userName, placementConnection)) else if (CanUseExistingConnection(flags, userName, placementConnection))