Re: psql tab completion bug for ALL IN TABLESPACE - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: psql tab completion bug for ALL IN TABLESPACE
Date
Msg-id CAB7nPqSP7Z1O2v-ERfGF40P711O9m4WiQwL2VhF9qv4Tpk__QQ@mail.gmail.com
Whole thread Raw
In response to Re: psql tab completion bug for ALL IN TABLESPACE  (Andres Freund <andres@anarazel.de>)
Responses Re: psql tab completion bug for ALL IN TABLESPACE  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Mon, Dec 14, 2015 at 8:49 PM, Andres Freund <andres@anarazel.de> wrote:
> On 2015-12-14 20:44:20 +0900, Michael Paquier wrote:
>> +     /*
>> +      * ALTER TABLE,INDEX,MATERIALIZED VIEW ALL IN TABLESPACE xxx OWNED BY xxx
>> +      * SET TABLESPACE.
>> +      */
>> +     else if (pg_strcasecmp(prev9_wd, "ALL") == 0 &&
>> +                      pg_strcasecmp(prev8_wd, "IN") == 0 &&
>> +                      pg_strcasecmp(prev7_wd, "TABLESPACE") == 0 &&
>> +                      pg_strcasecmp(prev5_wd, "OWNED") == 0 &&
>> +                      pg_strcasecmp(prev4_wd, "BY") == 0 &&
>> +                      pg_strcasecmp(prev2_wd, "SET") == 0 &&
>> +                      pg_strcasecmp(prev_wd, "TABLESPACE") == 0)
>> +     {
>> +             COMPLETE_WITH_QUERY(Query_for_list_of_tablespaces);
>> +     }
>
> Isn't that already handled by the normal SET TABLESPACE case?

No, There is no SET TABLESPACE case, there is a TABLE SET TABLESPACE
though. Just removing the TABLE seems to be fine..
-- 
Michael



pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Proposal: custom compression methods
Next
From: Andres Freund
Date:
Subject: Re: psql tab completion bug for ALL IN TABLESPACE