Re: BUG #13655: Incorrect Syntax Error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Haribabu Kommi <kommi(dot)haribabu(at)gmail(dot)com>
Cc: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, "stormbyte(at)gmail(dot)com" <stormbyte(at)gmail(dot)com>, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #13655: Incorrect Syntax Error
Date: 2015-10-01 04:44:48
Message-ID: 13218.1443674688@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Haribabu Kommi <kommi(dot)haribabu(at)gmail(dot)com> writes:
> On Thu, Oct 1, 2015 at 11:56 AM, David G. Johnston
> <david(dot)g(dot)johnston(at)gmail(dot)com> wrote:
>> On Wednesday, September 30, 2015, Haribabu Kommi <kommi(dot)haribabu(at)gmail(dot)com>
>> wrote:
>>> As I feel this is not a bug. psql has the tab complete feature with
>>> the help of readline library.
>>> Means it tries fill the command if the user provides the tab key as input.

>> Tab-completion should not interfere with script code provided
>> non-interactively on standard input, or in a script file loaded using -f or
>> \i

> Tab-completion doesn't change <TAB> characters if the file passed
> using -f or \i.

Yeah. I could not reproduce the reported error when feeding the file
to psql using "-f file", "<file", or "\i file". It is possible to get
it by pasting the given text into a terminal window, so that readline
can't tell that you didn't manually type the TAB.

Worth noting here is you can turn off readline with the -n option
to psql. I've done that sometimes when there was a reason not to want
TAB to act as command-completion.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message David 2015-10-01 08:05:41 Re: BUG #13655: Incorrect Syntax Error
Previous Message Haribabu Kommi 2015-10-01 02:02:51 Re: BUG #13655: Incorrect Syntax Error