Re: tab-complete COMPLETE_WITH_ATTR can become confused by table-lists.

2022-01-18 Thread Tom Lane
Peter Smith writes: > If there are spaces in the table-list like "t1, t2" then the word is > recognized as "t2" and it works as expected. > But, if there are no spaces in the table-list like "t1,t2" then the > word is recognized as "t1,t2", and since that is no such table name > the COMPLETE_WITH_

tab-complete COMPLETE_WITH_ATTR can become confused by table-lists.

2022-01-18 Thread Peter Smith
Hi. I stumbled onto a small quirk/bug in the tab-complete code. There are some places that suggest tab completions using the current table columns. These are coded like: COMPLETE_WITH_ATTR(prev2_wd, ""); The assumption is that the prev2_wd represents the table to select from. Normally, this wor