yesodweb / yesod-scaffold

The Yesod scaffolding, with branches for different versions.
MIT License
76 stars 39 forks source link

Only fetch tables of type 'BASE TABLE' in tests #193

Closed jezen closed 5 years ago

jezen commented 5 years ago

If a user enables the pg_stat_statements Postgres extension, they will be met with the following error when they try to run their tests:

uncaught exception: SqlError SqlError {sqlState = "42809", sqlExecStatus
= FatalError, sqlErrorMsg = "\"pg_stat_statements\" is not a table",
sqlErrorDetail = "", sqlErrorHint = ""}

For the purposes of wiping the test database before each test run, I believe the user is only interested in the tables of type BASE TABLE.

snoyberg commented 5 years ago

Thanks!