pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: CREATE STATISTICS documentation bug
Date: Sun, 16 Jun 2019 01:22:19 +0200
Message-ID: <20190615232219.qpr52d6kunqavgyx@development> (raw)
In-Reply-To: <CA+TgmoZZEMAqWMAfvLHZnK57SoxOutgvE-ALO94WsRA7zZ7wyQ@mail.gmail.com>
References: <CA+TgmoZZEMAqWMAfvLHZnK57SoxOutgvE-ALO94WsRA7zZ7wyQ@mail.gmail.com>

On Fri, Jun 14, 2019 at 03:23:29PM -0400, Robert Haas wrote:
>https://www.postgresql.org/docs/12/sql-createstatistics.html contains
>this example command:
>
>CREATE STATISTICS s2 (mcv) ON (a, b) FROM t2;
>
>But that produces:
>
>psql: ERROR:  only simple column references are allowed in CREATE STATISTICS
>
>I think the parentheses around (a, b) just need to be removed.
>
>P.S. I think the fact that we print "psql: " before the ERROR here is
>useless clutter.  We didn't do that in v11 and prior and I think we
>should kill it with fire.
>

I've pushed a fix for the docs issue.

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services 





view thread (8+ messages)  latest in thread

Message-ID: <20190615232219.qpr52d6kunqavgyx@development>
Permalink:  ../20190615232219.qpr52d6kunqavgyx@development/
Also on:    postgresql.org/message-id/20190615232219.qpr52d6kunqavgyx@development

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tomas.vondra@2ndquadrant.com, robertmhaas@gmail.com, pgsql-hackers@lists.postgresql.org
  Subject: Re: CREATE STATISTICS documentation bug
  In-Reply-To: <20190615232219.qpr52d6kunqavgyx@development>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox