When calling, from same script, PSQL function (instead of UDR): https://snipboard.io/Kg6w54.jpg. Stable memory consumption.
-- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel