I have are large-ish database which consists of 100+ tables. A few of these tables are so big that running VACUUM on them takes a couple of hours, so I don't want to run it on these tables. Is there any way to run VACUUM with a dynamic list of tables, i.e. something like below?
VACUUM (SELECT table_name FROM information_schema.tables WHERE table_name not in ['list', 'of', 'big', 'tables'])
It would of course be possible to just list all the table names manually, but ideally I would like to have a way to do it dynamically.