![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I appreciate very much the readline functionality on the psql client. However, I'd like to ask if it is possible for the readline functionality to gobble up even table names and field names: For example, if have tables `table1' with 3 fields `field1', 'field2', and `field3' and `table2' with 3 fields `field1', 'field2', and `field3', Is it possible to do select <tab> # then, after tabbing I select `table1' then select table1.<tab> # then, after tabbing I select field2 Thus, I would have the complete statment `select table1.field2 from table1' Well, the above statement is equivalent to `select field1 from table1' |
#3
| |||
| |||
|
|
but I was wondering how the name globbing scenario I presented is possible? If it is not possible to do it with any configuration files, could anyone point out at source code level what can be done since I'd like to try playing around with this feature. |
#4
| |||
| |||
|
|
Hi Carlo, On Oct 20, 2004, at 9:47 PM, Carlo Florendo wrote: but I was wondering how the name globbing scenario I presented is possible? If it is not possible to do it with any configuration files, could anyone point out at source code level what can be done since I'd like to try playing around with this feature. I can't help you with a way to do this, but the source code for the tab completion is at this path: src/bin/psql/tab-complete.c Great! I'll be looking at it. Thanks for the pointer. |
![]() |
| Thread Tools | |
| Display Modes | |
| |