Bug in psql tab completion 
Author Message
 Bug in psql tab completion
Try this:

test=# create table test (a int4);
CREATE
test=# grant select, update on te

Stop there and press 'TAB' to complete the word 'test'.

Your command line then gets rewritten to :

grant select, update on SET

It seems that it occurs when you have commas in there...

Chris

---------------------------(end of broadcast)---------------------------



Sat, 10 Jan 2004 11:08:37 GMT
 Bug in psql tab completion

I just checked and putting any text in place of 'te' generates 'SET'.
This is becausee the tab completion code thinks 'UPDATE ON te' is an
update on table ON.  The tasble comletion stuff is pretty good, but not
perfect.

Quote:
> Try this:

> test=# create table test (a int4);
> CREATE
> test=# grant select, update on te

> Stop there and press 'TAB' to complete the word 'test'.

> Your command line then gets rewritten to :

> grant select, update on SET

> It seems that it occurs when you have commas in there...

> Chris

> ---------------------------(end of broadcast)---------------------------


--
  Bruce Momjian                        |  http://candle.pha.pa.us

  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate

message can get through to the mailing list cleanly



Mon, 12 Jan 2004 06:58:54 GMT
 
 [ 2 post ] 

 Relevant Pages 

1. Todo "claim": psql tab completion on schema names

2. psql tab completion patch

3. psql tab completion

4. reindex in tab completion

5. pgsql ALTER command tab completion

6. reindex in tab completion

7. pgsql-server/src/bin/psql tab-complete.c

8. pgsql-server/src/bin/psql tab-complete.c

9. pgsql-server/src/bin/psql tab-complete.c

10. pgsql-server/src/bin/psql tab-complete.c

11. pgsql/ oc/FAQ rc/bin/psql/tab-complete.c

12. pgsql/src/bin/psql tab-complete.c


 
Powered by phpBB® Forum Software