-- LIMIT $1 of a custom plan: the value is a constant of the plan -- shape: topn_param -- expect: agg -- key: - -- scenario: yes -- guc: plan_cache_mode = force_custom_plan -- prepare: (bigint) -- args: 10 SELECT id, tenant_id, total FROM orders ORDER BY total, id LIMIT $1