Is there a way to have a stored procedure using a variable table name in a select
(ie)
IN TableName char(20)
select * from :TableName
Not using PSQL v8 (or v9, I think). In v10, you can use the Exec command (See docs here).