You can already download a complete Postgres database for your Discourse and analyze it using any tools that work on Postgres, via Admin > Backups.
If you are on the business hosting plan, you’ll also have access to the Data Explorer plugin, which allows you to run ad-hoc data queries in the browser against your live site data.