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 1iNvPT-000811-2y for pgsql-hackers@arkaria.postgresql.org; Fri, 25 Oct 2019 08:57:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iNvPR-00024c-8O for pgsql-hackers@arkaria.postgresql.org; Fri, 25 Oct 2019 08:57:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iNvPQ-00024V-So for pgsql-hackers@lists.postgresql.org; Fri, 25 Oct 2019 08:57:25 +0000 Received: from cyclops.postgrespro.ru ([93.174.131.138] helo=mail.postgrespro.ru) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iNvPN-0003ED-NU for pgsql-hackers@lists.postgresql.org; Fri, 25 Oct 2019 08:57:24 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id 67EA621C4BFA for ; Fri, 25 Oct 2019 11:57:19 +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 3E89221C4BF2 for ; Fri, 25 Oct 2019 11:57:19 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1571993839; bh=BykABYA3/ZNHt9Eo3sFgCjXv1PzUmi5cgO8Iy9ZIRj4=; h=Subject:To:References:From:Date:In-Reply-To; b=YMOA4jzjkIPZJ5uPcjRJsqzOFwObG+dJ5MQ1sDWc2SQENdLrYi8UhoP/mt+wXZ3AO nF6+ZBODdA8F+Ag8ddN6xB8gU1C1g6UJnRleXgxcsj0KVCqljlrgjPR+lb/xBBFEKj GTdYRYfYJDpHXVYZfuUHXwFcm0LHLZdBf605wriY= 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> <9dec5038-548e-91f9-df14-8825f7aa7c5c@postgrespro.ru> From: Victor Spirin Message-ID: Date: Fri, 25 Oct 2019 11:57:18 +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: <9dec5038-548e-91f9-df14-8825f7aa7c5c@postgrespro.ru> Content-Type: multipart/mixed; boundary="------------ACB4E453CE4E05E7B7CA2AA9" Content-Language: ru List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------ACB4E453CE4E05E7B7CA2AA9 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit This patch resolved one problem in the tab-complete.c on MSVC. The VA_ARGS_NARGS macros now work correctly on Windows. Victor Spirin Postgres Professional:http://www.postgrespro.com The Russian Postgres Company 25.10.2019 0:53, Victor Spirin пишет: > 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 >> >> > > --------------ACB4E453CE4E05E7B7CA2AA9 Content-Type: text/plain; charset=UTF-8; name="nargs.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="nargs.patch" ZGlmZiAtLWdpdCBhL3NyYy9pbmNsdWRlL2MuaCBiL3NyYy9pbmNsdWRlL2MuaAppbmRleCBl ZGM3ODIyYjBmLi5lZDcwOTkxNjRiIDEwMDY0NAotLS0gYS9zcmMvaW5jbHVkZS9jLmgKKysr IGIvc3JjL2luY2x1ZGUvYy5oCkBAIC0yMzgsNiArMjM4LDE5IEBACiAgKiB0aGUgY2FsbCBz byB0aGF0IHRoYXQgaXMgdGhlIGFwcHJvcHJpYXRlIG9uZSBvZiB0aGUgbGlzdCBvZiBjb25z dGFudHMuCiAgKiBUaGlzIGlkZWEgaXMgZHVlIHRvIExhdXJlbnQgRGVuaWF1LgogICovCisj aWZkZWYgX01TQ19WRVIKKyNkZWZpbmUgRVhQQU5EKGFyZ3MpIGFyZ3MKKyNkZWZpbmUgVkFf QVJHU19OQVJHUyguLi4pIFwKKwlWQV9BUkdTX05BUkdTXyBFWFBBTkQoKF9fVkFfQVJHU19f LCBcCisJCQkJICAgNjMsNjIsNjEsNjAsICAgICAgICAgICAgICAgICAgIFwKKwkJCQkgICA1 OSw1OCw1Nyw1Niw1NSw1NCw1Myw1Miw1MSw1MCwgXAorCQkJCSAgIDQ5LDQ4LDQ3LDQ2LDQ1 LDQ0LDQzLDQyLDQxLDQwLCBcCisJCQkJICAgMzksMzgsMzcsMzYsMzUsMzQsMzMsMzIsMzEs MzAsIFwKKwkJCQkgICAyOSwyOCwyNywyNiwyNSwyNCwyMywyMiwyMSwyMCwgXAorCQkJCSAg IDE5LDE4LDE3LDE2LDE1LDE0LDEzLDEyLDExLDEwLCBcCisJCQkJICAgOSwgOCwgNywgNiwg NSw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