Fix an edge case

We sometimes relied on certain deparsing problems for complex data types on local-only queries by skipping

the deparsing. Now, those local-only queries are not deferred unless we add this
remote_prepared_txes
Onder Kalaci 2022-11-17 14:09:52 +01:00
parent 8613ae173c
commit 3f2f37daba
1 changed files with 1 additions and 1 deletions

View File

@ -365,7 +365,7 @@ ConvertRteToSubqueryWithEmptyResult(RangeTblEntry *rte)
static bool
ShouldLazyDeparseQuery(Task *task)
{
return task->deferredPruning;
return task->deferredPruning || task->anchorShardId == INVALID_SHARD_ID;
}