-- LIMIT $1 of a generic plan: the cap of the heap -- shape: topn_param -- expect: agg -- key: - -- scenario: yes -- guc: plan_cache_mode = force_generic_plan -- prepare: (bigint) -- args: 100000 SELECT id, tenant_id, total FROM orders ORDER BY total, id LIMIT $1