Hi Anil Raghavan •,
Welcome to Microsoft Q&A forum.
As I understand, you are getting Segmentation Fault on Azure Database for PostgreSQL Flexible Server.
Could you please try upgrading the server version and try if not already done?
Alternatively, you can try to create a new server and check with the same Stored Procedures if that works.
If this does not help, I would recommend you to raise support case for deeper investigation.
Thanks.