Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZSGR3-0003ve-9D for pgsql-bugs@arkaria.postgresql.org; Thu, 20 Aug 2015 03:22:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZSGR2-0000p2-RI for pgsql-bugs@arkaria.postgresql.org; Thu, 20 Aug 2015 03:22:36 +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_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZSGR2-0000ow-Hp for pgsql-bugs@postgresql.org; Thu, 20 Aug 2015 03:22:36 +0000 Received: from mx-out.zmailcloud.com ([192.198.85.98] helo=mx-out-1.zmailcloud.com) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZSGQz-0000QS-Dz for pgsql-bugs@postgresql.org; Thu, 20 Aug 2015 03:22:35 +0000 Received: from smtp.01.com (smtp.01.com [10.10.0.43]) by mx-out-1.zmailcloud.com (Postfix) with ESMTP id 823C2565145; Wed, 19 Aug 2015 22:22:32 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id 6F088A03C8; Wed, 19 Aug 2015 22:22:32 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-1.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-1.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CE48-jpvtDWa; Wed, 19 Aug 2015 22:22:32 -0500 (CDT) Received: from smtp.01.com (localhost [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id 3AFCCA03C0; Wed, 19 Aug 2015 22:22:32 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id 101C7A03C8; Wed, 19 Aug 2015 22:22:32 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-1.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-1.01.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Efi_zU4lpAok; Wed, 19 Aug 2015 22:22:31 -0500 (CDT) Received: from [192.168.47.106] (50-1-62-61.dsl.dynamic.fusionbroadband.com [50.1.62.61]) by smtp-out-1.01.com (Postfix) with ESMTPSA id 87DB1A03C0; Wed, 19 Aug 2015 22:22:30 -0500 (CDT) Message-ID: <55D547F5.4050705@agliodbs.com> Date: Wed, 19 Aug 2015 20:22:29 -0700 From: Josh Berkus Organization: PostgreSQL Experts Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: Thomas Munro CC: PostgreSQL Bugs Subject: Re: GRANT USAGE ON SEQUENCE missing from psql command completion References: <55D54175.8000708@agliodbs.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 08/19/2015 08:10 PM, Thomas Munro wrote: > On Thu, Aug 20, 2015 at 2:54 PM, Josh Berkus wrote: >> Versions tested: 9.4.4, 9.5a2 >> >> Steps to reproduce: >> >> 1. psql to a database with sequences >> >> 2. type "grant usage on " and hit tab >> >> 3. "sequence" does not appear >> >> 4. type "grant usage on sequence " and hit tab >> >> 5. completes with word "to" which is incorrect. > > Here's a patch for that. > Passes my ad-hoc tests, including non-default schema. -- Josh Berkus PostgreSQL Experts Inc. http://pgexperts.com -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs