2

I am new to Postgresql. I am using SQL shell(psql) for working. When I use any psql commands, it is not displaying any output. And I am using psql(13.3) version. When I use psql --help, as per documentation, it should display the available options. But I dint get any output dispalyed. Similarly when I use anyother commands starting with psql, it is not displaying any results.

Can anyone help me on this?

  • 1
    Did you use `--help` as option when you *called* `psql` in the (user) shell (from the OS) or did you try to use it as command *after* `psql` has *already started* in its own CLI? – sticky bit Aug 10 '21 at 05:26
  • 1
    If you already _started_ `psql` (and see the prompt) you need to enter `\?` or `help` to display the help. (which is what `psql` actually told you after it was started: "*Type "help" for help.*" –  Aug 10 '21 at 05:27
  • Sounds like a duplicate of https://stackoverflow.com/questions/12472026/in-psql-why-do-some-commands-have-no-effect?r=SearchResults&s=1|95.8217 –  Aug 10 '21 at 05:28
  • @stickybit I was using psql own CLI – Elanchezian R Aug 10 '21 at 05:31
  • @ElanchezianR: The `--help` is the wrong input at that stage. See @a_horse_with_no_name's comment(s) on what to use then. – sticky bit Aug 10 '21 at 05:57
  • See here: https://i.imgur.com/JP6c2nR.png –  Aug 10 '21 at 06:00

0 Answers0