The AWS Schema Conversion Tool (SCT), or its cloud-based counterpart AWS DMS Schema Conversion, performs reasonably well in converting T-SQL to PostgreSQL. While it won't convert 100% of the code perfectly, it can significantly simplify the migration of straightforward stored procedures.