2
Most likely you are not terminating your query with a semicolon
Note that by default the PostgreSQL prompt has three pieces:
[dbname][linestatus][is_superuser]
for example logged in as Postgres, new line, db is postgres:
postgres=#
Logged in to db test as non-superuser, new line:
test=>
Now that = is an important character. If you have an open paren, it will show:
test(>
If you are at the top level it will be
test->
Source:stackexchange.com