Re: [HACKERS] psql: tab completions for 'WITH'

2012-04-18 Thread Peter Eisentraut
On tis, 2012-04-10 at 17:48 -0700, Josh Kupershmidt wrote: > > Hmm, but now you've set it up so that you can complete ALTER ROLE > foo > > WITH WITH. Were you aware of that? > > D'oh, I overlooked that. Attached is v2: the diff is a tad lengthier > now, but that should fix it. Committed. -- S

Re: [HACKERS] psql: tab completions for 'WITH'

2012-04-10 Thread Josh Kupershmidt
On Tue, Apr 10, 2012 at 10:38 AM, Peter Eisentraut wrote: > On tis, 2012-04-03 at 22:34 -0700, Josh Kupershmidt wrote: >> I noticed psql's tab-completion for 'WITH' is a bit overeager. If you >> try to tab-complete commands like: >>   ALTER ROLE jsmith WITH [TAB] >>   COPY tbl FROM 'filename' WITH

Re: [HACKERS] psql: tab completions for 'WITH'

2012-04-10 Thread Peter Eisentraut
On tis, 2012-04-03 at 22:34 -0700, Josh Kupershmidt wrote: > I noticed psql's tab-completion for 'WITH' is a bit overeager. If you > try to tab-complete commands like: > ALTER ROLE jsmith WITH [TAB] > COPY tbl FROM 'filename' WITH [TAB] > > you'll get 'RECURSIVE' unhelpfully filled in. I think

[HACKERS] psql: tab completions for 'WITH'

2012-04-03 Thread Josh Kupershmidt
Hi all, I noticed psql's tab-completion for 'WITH' is a bit overeager. If you try to tab-complete commands like: ALTER ROLE jsmith WITH [TAB] COPY tbl FROM 'filename' WITH [TAB] you'll get 'RECURSIVE' unhelpfully filled in. I think 'RECURSIVE' should only be suggested if 'WITH' is the first a