0:CREATERESOURCEQUEUErq_concurrency_testWITH(active_statements=1);0:CREATErolerole_concurrency_testRESOURCEQUEUErq_concurrency_test;1:SETrolerole_concurrency_test;1:BEGIN;1:DECLAREc1CURSORFORSELECT1;2:SETrolerole_concurrency_test;2:PREPAREfooplanASSELECT1;2&:EXECUTEfooplan;-- EXECUTE statement(cached plan) will be blocked when the concurrency limit of the resource queue is reached.0:SELECTrsqcountvalueFROMgp_toolkit.gp_resqueue_statusWHERErsqname='rq_concurrency_test';0:SELECTwaiting_reasonfrompg_stat_activitywherecurrent_query='EXECUTE fooplan;';1:END;2<:2:END;0:DROProlerole_concurrency_test;0:DROPRESOURCEQUEUErq_concurrency_test;