Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Which language is this supposed to be? Commented Oct 23, 2021 at 11:43
  • psql - querying postgres from the terminal Commented Oct 23, 2021 at 11:50
  • But you are trying to call psql from the (bash) shell? Commented Oct 23, 2021 at 11:51
  • 1
    "${psql_args[*]}" expands your array as a single string. You need to expand your array into individual arguments with "${psql_args[@]}" instead. Commented Oct 23, 2021 at 12:57