Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zhfnu-0003Gn-Ru for pgsql-bugs@arkaria.postgresql.org; Thu, 01 Oct 2015 15:29:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zhfnu-0002Li-2O for pgsql-bugs@arkaria.postgresql.org; Thu, 01 Oct 2015 15:29:54 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZhYs4-0000jP-VU for pgsql-bugs@postgresql.org; Thu, 01 Oct 2015 08:05:45 +0000 Received: from mail-wi0-x22b.google.com ([2a00:1450:400c:c05::22b]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZhYs2-0002xi-9K for pgsql-bugs@postgresql.org; Thu, 01 Oct 2015 08:05:43 +0000 Received: by wiclk2 with SMTP id lk2so16197092wic.1 for ; Thu, 01 Oct 2015 01:05:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=/5vm69omY2kBObaZA2RnAV4ACWIc+alI3c/rBOAWsv4=; b=BnWcarplN6s6INjnMqaEd7ffWw3KzbMx2AMnkDdCE/FVksxkB/XdFSmViLMBgXOJDU apUK3mxPlObaOcYEl7tCsWAZPiROfM5Kgnwr3FRaNbcX23t7V2orjjxhBtWZKTYnS8eG elBHYczoHwt112GSHBvWuhtbg0IiSbl2eWeDp+tGxkwKDZctpuHcw6j1pNyA4mIBi1hB vn/c9RZg+K1j59N1PIoIZLFXBkm7NI7P55HRNy4LTl5dpVS9/uHaFy7YJr0D39cEXRRy SuzghpZxpRlIInj9Ov8kyG/Qvsr4DBLNV8WGNcya53Ux6QrxJGvBy1g3SgBcvPSC2PS/ HmhA== X-Received: by 10.180.91.225 with SMTP id ch1mr1917924wib.39.1443686740202; Thu, 01 Oct 2015 01:05:40 -0700 (PDT) Received: from Zero.StormByte.org (84.120.229.253.dyn.user.ono.com. [84.120.229.253]) by smtp.gmail.com with ESMTPSA id uq5sm4823265wjc.3.2015.10.01.01.05.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Oct 2015 01:05:39 -0700 (PDT) Date: Thu, 1 Oct 2015 10:05:41 +0200 From: David To: "pgsql-bugs@postgresql.org" Subject: Re: BUG #13655: Incorrect Syntax Error Message-ID: <20151001100541.29dfdb38@Zero.StormByte.org> In-Reply-To: <13218.1443674688@sss.pgh.pa.us> References: <20150930192526.359.78719@wrigleys.postgresql.org> <13218.1443674688@sss.pgh.pa.us> X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.28; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org El Thu, 01 Oct 2015 00:44:48 -0400 Tom Lane escribi=C3=B3: > Haribabu Kommi writes: > > On Thu, Oct 1, 2015 at 11:56 AM, David G. Johnston > > wrote: > >> On Wednesday, September 30, 2015, Haribabu Kommi > >> 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. >=20 > >> Tab-completion should not interfere with script code provided > >> non-interactively on standard input, or in a script file loaded > >> using -f or \i >=20 > > Tab-completion doesn't change characters if the file passed > > using -f or \i. >=20 > Yeah. I could not reproduce the reported error when feeding the file > to psql using "-f file", " it by pasting the given text into a terminal window, so that readline > can't tell that you didn't manually type the TAB. >=20 > 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. >=20 > regards, tom lane (resent to mailing list instead of simple reply) The real question here is: Since tab character triggers autocompletion (or hints), when copy/pasted it has no effect, but: Isn't it inconsistent that a thing like: "someField"SMALLINT works whether a thing like: "someField""SomeCustomType" is not working? Both forms have the exact same format: a field perfectly delimitated, and after a type for that field with no space nor separation, both seems legal to me, as parser knows exactly what is what (unlike the case below) (even if you write directly without spaces at all). I understand however, that using it without quoted (without delimitation), can cause a syntax error in case like: someFieldSMALLINT, but that's not the case. Anyway, everything has been said in this regard, just wanted to say this, as to my eyes, it's kind of inconsistent allow one case, but not allowing the other. David. --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs