Through this question:
How to log PostgreSQL queries?
I know I can log PostgeSQL queries to a file, but what if I want to log those queries to a table rather than a file? I know that this is doable in Redshift and MySQL, but how do I achieve the same on PostgreSQL?