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.
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
forpg:*
commands that are only invokingpsql
in order to get a connection to the database.