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 1gRnIE-0004t1-Cc for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Nov 2018 00:01:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gRnID-0006Gh-4C for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Nov 2018 00:01: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 1gRnIC-0006Ga-Pn for pgsql-hackers@lists.postgresql.org; Wed, 28 Nov 2018 00:01:24 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gRnI9-0005Bi-Qk for pgsql-hackers@postgresql.org; Wed, 28 Nov 2018 00:01:24 +0000 Received: by mail-wm1-x342.google.com with SMTP id 125so777090wmh.0 for ; Tue, 27 Nov 2018 16:01:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:from:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=AirAaSuFSgnOXF/rcKbetD5mTP2DoQJaqbXpvbyxpZA=; b=2LemeUv6szhRTzKqYKmMv8TEqSxdvF22wT/iA4ymBtbl7gA/e2cqGGZtZ7AkZqWQ5A jh0twJ+FaIajVjzWcIEsgIZ/m6ftD+9zJh9Cs1gWtmXagNsuzWm5s4VBa0gDq5Axqun3 2KNQskGL51NakDNnaaNQGgyxq1TkDaG1skSSLgZhW3wYgSK90rPmgTTRgDOQZupVvGe7 R2Hx2WInkO6HYUbFBgi/KGHyW7OL1TFdWfeG5ihC/4SZzT0yPIrRXvXSnfOGUYt2wj6D PLG27E4X8kzflA7vmHosTQzcjCbda0FaE3my5lUEJONJmqIgfGttxdSD6QCf2dCVM9kk gdwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=AirAaSuFSgnOXF/rcKbetD5mTP2DoQJaqbXpvbyxpZA=; b=NlIMkkkwJ+l3YFah2Y0lPcA8XcEfcpoZBrhfwpNpsPdpujO49FH+1GWrUdOSedlVMs OmRSSn19HrN4mTS6dbqcNaLTWZiQ67gYCo7+Pr5Y4dS3rrZ7wZqrI/e6knqI+hOqKDNS uFbnDluf36n51eXAPqXlnP+VJF/oBK7jKTCjaGgDuOEzPdOUmP1xUkymYolmevM3utZc iu5C49I8N/qasn+G+Kb19iO1I9Tb8wuxgWikvzmicHcZKJgOfp1o2asZ5G2Cnn86Dk6j m2hrzCHxKnHWdlQsDDT1krPemdN+nNgNm4sHE5NzbRfuxpBx6LoU3YV9yj1cRBuSSrul n3zQ== X-Gm-Message-State: AA+aEWZb7oIx9i4Abbug6uPcLGSICIDJ0DkX3ivdhvbNZMRUYmfPzFAy YoTOSQAGzME6xxAZHQFDZW8uOQ3/7zvuDfvgnwcDwtME4G8u1Rzm4jtExlqqMfhr8u34SoAowC8 zpq5Y2eERpvaq3KXlPrWQFosEku2BOQV3740bNEy5ynlYYd0CQDgLaT51D3aAY2RhONBZUKPFcx 2Yg0IVH3HC4eOFWw== X-Google-Smtp-Source: AFSGD/XdQlyrpqq4bOyi0tcP/JqdNNFlWWuJslx+sT/BWPqtIqJPwDwjrg2lGE5gfg97t1eAPkD/Ng== X-Received: by 2002:a1c:702:: with SMTP id 2-v6mr733572wmh.113.1543363280076; Tue, 27 Nov 2018 16:01:20 -0800 (PST) Received: from [10.137.2.19] (ip-86-49-251-50.net.upcbroadband.cz. [86.49.251.50]) by smtp.gmail.com with ESMTPSA id r76-v6sm662082wmb.21.2018.11.27.16.01.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Nov 2018 16:01:19 -0800 (PST) Subject: Re: [PATCH] Tiny CREATE STATISTICS tab-completion cleanup From: Tomas Vondra To: =?UTF-8?Q?Dagfinn_Ilmari_Manns=c3=a5ker?= , pgsql-hackers@postgresql.org References: <65551c69-46d4-305e-25fb-2e093454d660@2ndquadrant.com> Message-ID: <2adf03cf-9a76-311a-2cc0-d0af6aa4bbaa@2ndquadrant.com> Date: Wed, 28 Nov 2018 01:01:15 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <65551c69-46d4-305e-25fb-2e093454d660@2ndquadrant.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 11/27/18 12:55 AM, Tomas Vondra wrote: > Hi, > > On 11/26/18 5:49 PM, Dagfinn Ilmari Mannsåker wrote: >> Hi Hackers, >> >> As I was hacking on the CREATE TABLE tab completions, I noticed that the >> CREATE STATISTICS completion was checking manually for the start and end >> of the parenthesised list instead of using the "(*)" wildcard (because >> it predates that functionality). Attached is a patch that updates it to >> use the modern syntax. >> > > Makes sense. At first I was wondering why it was not modified by the > patch introducing the "(*)" wildcard, but I see 121213d9 only cared > about VACUUM, EXPLAIN and ANALYZE. > > The patch seems fine to me, I'll get it committed. > Pushed. Thanks for the patch. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services