heroku / heroku-pg-extras

A heroku plugin for awesome pg:* commands that are also great and fun and super.
MIT License
1.33k stars 102 forks source link

Outliers doesn't handle timing information #183

Open mble opened 3 years ago

mble commented 3 years ago

When we introduced handling of PG13s new field, we make an assertion about the array of results received: https://github.com/heroku/heroku-pg-extras/blob/6dded5b24375f14f6144165b88482ea9e79c11ef/lib/util.js#L34

This is non-deterministic because the output depends on what you've got in .psqlrc. For example, I have \timing in mine which extends the array to having 7 elements.

We should ignore .psqlrc for pg:* commands that are only invoking psql in order to get a connection to the database.