title: How can I list all postgres rules using SQL?
body: <p>I have a postgres DB with SQL-only access (I mean I can connect using <code>psql</code>). I need to disable some rules, do maintenance and then enable them back. I'd like to assure that after all those operations all the rules are enabled. How could I list them using an SQL query?</p>