Convert dynamic T-SQL to dynamic PostgreSQL PL/SQL
I wrote the SQL Server stored procedure usp_getrowcounts, shown below, that dynamically gets a row count from each table, as tables come and go, and need the equivalent dynamically generated and executed PL/SQL to work in PostgreSQL. However, working with…