Re: [HACKERS] TABLE tab completion

2011-10-24 Thread Magnus Hagander
On Mon, Sep 26, 2011 at 10:37, Magnus Hagander wrote: > On Sun, Sep 25, 2011 at 15:06, Dean Rasheed wrote: >> On 24 September 2011 11:59, Magnus Hagander wrote: >>> TABLE tab completion in psql only completes to tables, not views. but >>> the TABLE command works fine for both tables and views (a

Re: [HACKERS] TABLE tab completion

2011-09-26 Thread David Fetter
On Mon, Sep 26, 2011 at 10:37:50AM +0200, Magnus Hagander wrote: > On Sun, Sep 25, 2011 at 15:06, Dean Rasheed wrote: > > On 24 September 2011 11:59, Magnus Hagander wrote: > >> TABLE tab completion in psql only completes to tables, not views. but > >> the TABLE command works fine for both tables

Re: [HACKERS] TABLE tab completion

2011-09-26 Thread Magnus Hagander
On Sun, Sep 25, 2011 at 15:06, Dean Rasheed wrote: > On 24 September 2011 11:59, Magnus Hagander wrote: >> TABLE tab completion in psql only completes to tables, not views. but >> the TABLE command works fine for both tables and views (and also >> sequences). >> >> Seems we should just complete i

Re: [HACKERS] TABLE tab completion

2011-09-25 Thread Dean Rasheed
On 24 September 2011 11:59, Magnus Hagander wrote: > TABLE tab completion in psql only completes to tables, not views. but > the TABLE command works fine for both tables and views (and also > sequences). > > Seems we should just complete it to relations and not tables - or can > anyone see a parti

[HACKERS] TABLE tab completion

2011-09-24 Thread Magnus Hagander
TABLE tab completion in psql only completes to tables, not views. but the TABLE command works fine for both tables and views (and also sequences). Seems we should just complete it to relations and not tables - or can anyone see a particular reason why we shouldn't? Trivial patch attached. --  M