--select gg.d from rlarp.get_guidance('DIAM0004','DIAM0004','AMK06000G18B054',5000,2024) gg(d);
SELECT gg.d doc FROM rlarp.get_guidance($1,$2, $3, $4,2024) gg(d);