Attached is a patch to change the REST API method for getting SQL in grant wizard. It will accept POST instead of GET now so that data can be sent using "data" instead of URL args which was breaking for large dataset.
Also fixed a minor console error.
Kindly review.
--
Thanks and Regards,
Aditya Toshniwal
pgAdmin Hacker | Sr. Software Engineer | EnterpriseDB India | Pune