How to exit from PostgreSQL command line utility: psql

How to exit from PostgreSQL command line utility: psql

Asked on December 24, 2018 in PostgreSQL.
Add Comment


  • 3 Answer(s)

     PostgreSQL;

         The  \q and  press ENTER to quit psql.They keyword “quit” and “exit”  the Postgre SQL command-line interface have been included to easier to  command-line tool.

    Answered on December 24, 2018.
    Add Comment

    The sequence of usual key is:

    quit()
    quit
    exit()
    exit
    q
    q()
    !q
    ^C
    help
    Alt + Tab
    google.com
    Quit PSQL
    \q
    
    \q
    

    In veterans of the psql command line usually shorten so use the following:

      \q
    
    Answered on December 24, 2018.
    Add Comment

    Alternative solution:

    Using this Ctrl+D is use to exit the psql console.

    Answered on December 24, 2018.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.