Hello and welcome to our community! Is this your first visit?
Register

Results 1 to 2 of 2
  1. #1
    WTF Groupie Array
    Join Date
    Sep 2007
    Posts
    117
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Is there any way to turn off tab completion in psql?

    Is there any way to turn off tab completion in psql? I'm trying to paste in a view definition that has tabs in it, but they are being intercepted

  2. #2
    Junior Member Array
    Join Date
    Feb 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts


    I'm not really familiar with psql that's why I did a little research on your question:

    psql supports the Readline library for convenient line editing and retrieval. The command history is automatically saved when psql exits and is reloaded when psql starts up. Tab-completion is also supported, although the completion logic makes no claim to be an SQL parser. If for some reason you do not like the tab completion, you can turn it off by putting this in a file named .inputrc in your home directory:

    $if psql
    set disable-completion on
    $endif

    (This is not a psql but a Readline feature. Read its documentation for further details.)

    source:www[dot]postgresql[dot]org/docs/8.3/static/app-psql.html


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •