Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iNl2b-0007Ty-SL for pgsql-hackers@arkaria.postgresql.org; Thu, 24 Oct 2019 21:53:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iNl2a-0001vf-KH for pgsql-hackers@arkaria.postgresql.org; Thu, 24 Oct 2019 21:53:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iNl2a-0001vY-47 for pgsql-hackers@lists.postgresql.org; Thu, 24 Oct 2019 21:53:08 +0000 Received: from cyclops.postgrespro.ru ([93.174.131.138] helo=mail.postgrespro.ru) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1iNl2W-00049v-WF for pgsql-hackers@lists.postgresql.org; Thu, 24 Oct 2019 21:53:06 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id 15D0921C4BCC for ; Fri, 25 Oct 2019 00:53:03 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=x tagged_above=-99 required=4 WHITELISTED tests=[] autolearn=unavailable Received: from [192.168.1.5] (vvs.order.hcn-strela.ru [91.192.68.203]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id E3A0D21C4BA2 for ; Fri, 25 Oct 2019 00:53:02 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1571953982; bh=vXWhbkEb32asKgDAnjYZDrGkWoDJqnPWCGjOsTw/ZbM=; h=Subject:To:References:From:Date:In-Reply-To; b=DIN40TLPV/tEUNLfqvlX6x6HKkmRx5d4HHQj2jwahok5CJTaiS1qdqo+L6h9IGA80 6uQiKvg1mNHfvaYmgwAXMlbe6FhNKZQi/3/YdNUF6A71ioKVdkXhGjvk006fYhXti7 nN1TU7En8t86Ze/Cqk8VsBPJiD8r+rpbPrimQbX4= Subject: Re: psql tab-complete To: pgsql-hackers@lists.postgresql.org References: <8d4e41ab-f001-fe9c-d796-a7b584a3c7f6@2ndQuadrant.com> <84e2eed6-63ec-b01e-2485-0f8e86da08df@postgrespro.ru> <11049.1571953711@sss.pgh.pa.us> From: Victor Spirin Message-ID: <9dec5038-548e-91f9-df14-8825f7aa7c5c@postgrespro.ru> Date: Fri, 25 Oct 2019 00:53:02 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <11049.1571953711@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: ru List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Yes, I found, that VA_ARGS_NARGS(__ VA_ARGS__) macros always return 1 on Windows. Victor Spirin Postgres Professional:http://www.postgrespro.com The Russian Postgres Company 25.10.2019 0:48, Tom Lane пишет: > Victor Spirin writes: >> I found some problem with tab-complete in the 12 version.  I checked >> this in the Windows. > This change seems to break the case intended by the comment, > ie given the context > > SELECT * FROM tablename WHERE > > we want to offer the columns of "tablename" as completions. > > I'd be the first to agree that that's completely lame, as there > are any number of related cases it fails to cover ... but this > patch isn't making it better. > > regards, tom lane > >