pgsql: Use wildcard to match parens after CREATE STATISTICS

From: Tomas Vondra <tomas(dot)vondra(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use wildcard to match parens after CREATE STATISTICS
Date: 2018-11-28 00:00:54
Message-ID: E1gRnHi-0001It-HV@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Use wildcard to match parens after CREATE STATISTICS

CREATE STATISTICS completion was checking manually for the start and end
of the parenthesised list of types. That works, but we now have a better
way to do that as commit 121213d9d taught word_matches() to allow '*' in
the middle of an alternative. But it only applied that to tab completion
for EXPLAIN, ANALYZE and VACUUM. Use it for CREATE STATISTICS too.

Author: Dagfinn Ilmari Mannsåker
Discussion: https://www.postgresql.org/message-id/flat/d8jwooziy1s.fsf%40dalvik.ping.uio.no

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d1ce4ed2d56e42531581bb83e769a8840c591e15

Modified Files
--------------
src/bin/psql/tab-complete.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tomas Vondra 2018-11-28 01:00:58 pgsql: Do not decode TOAST data for table rewrites
Previous Message Thomas Munro 2018-11-27 23:01:29 pgsql: Don't count zero-filled buffers as 'read' in EXPLAIN.