Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cibuX-0006mK-IE for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Feb 2017 07:09:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cibuW-0001Fu-J7 for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Feb 2017 07:09:24 +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_2) (envelope-from ) id 1cibt1-0006x8-9M for pgsql-hackers@postgresql.org; Tue, 28 Feb 2017 07:07:51 +0000 Received: from 173-164-140-181-sfba.hfc.comcastbusiness.net ([173.164.140.181] helo=fetter.org) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cibsy-0005Ml-D8 for pgsql-hackers@postgresql.org; Tue, 28 Feb 2017 07:07:50 +0000 Received: by fetter.org (Postfix, from userid 1000) id 0E27BE0766; Mon, 27 Feb 2017 23:07:46 -0800 (PST) Date: Mon, 27 Feb 2017 23:07:46 -0800 From: David Fetter To: Stephen Frost Cc: Kyotaro HORIGUCHI , michael.paquier@gmail.com, tgl@sss.pgh.pa.us, robertmhaas@gmail.com, pavel.stehule@gmail.com, pgsql-hackers@postgresql.org Subject: Re: IF (NOT) EXISTS in psql-completion Message-ID: <20170228070746.GA24888@fetter.org> References: <1603.1488158409@sss.pgh.pa.us> <20170227.133305.68651190.horiguchi.kyotaro@lab.ntt.co.jp> <20170228045317.GE9812@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170228045317.GE9812@tamriel.snowman.net> User-Agent: Mutt/1.7.1 (2016-10-04) X-Pg-Spam-Score: -0.9 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Mon, Feb 27, 2017 at 11:53:17PM -0500, Stephen Frost wrote: > * Kyotaro HORIGUCHI (horiguchi.kyotaro@lab.ntt.co.jp) wrote: > > I suppose it is for suggesting what kind of word should come > > there, or avoiding silence for a tab. Or for symmetry with other > > types of manipulation, like DROP. Another possibility is creating > > multiple objects with similar names, say CREATE TABLE employee_x1, > > CREATE TABLE employee_x2. Just trying to complete existing > > *schema* is one more another possible objective. > > I don't buy any of these arguments either. I *really* don't want us > going down some road where we try to make sure that hitting 'tab' > never fails... Wouldn't that just be a correct, grammar-aware implementation of tab completion? Why wouldn't you want that? Best, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers