Re: psql tab completion bug for ALL IN TABLESPACE

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, Stephen Frost <sfrost(at)snowman(dot)net>, PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: psql tab completion bug for ALL IN TABLESPACE
Date: 2015-12-14 12:29:14
Message-ID: CAB7nPqSPSWkgCZWgFxDmQUa5_SNGrkxKc=RKfy0Qx2s0zMhSSQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Dec 14, 2015 at 9:08 PM, Andres Freund <andres(at)anarazel(dot)de> wrote:
> ALTER TABLE ALL IN TABLESPACE pg_default OWNED BY andres SET TABLESPACE <tab>
> works, because of

Missed that.
- /* If we have TABLE <sth> SET TABLESPACE provide a list of
tablespaces */
- else if (pg_strcasecmp(prev4_wd, "TABLE") == 0 &&
- pg_strcasecmp(prev2_wd, "SET") == 0 &&
- pg_strcasecmp(prev_wd, "TABLESPACE") == 0)
- COMPLETE_WITH_QUERY(Query_for_list_of_tablespaces);
So you could get rid of that as well.
--
Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2015-12-14 13:38:10 Re: parallel joins, and better parallel explain
Previous Message Michael Paquier 2015-12-14 12:25:01 Re: extend pgbench expressions with functions