Re: psql auto-completion for multiple where clauses
От
Thom Brown
Тема
Re: psql auto-completion for multiple where clauses
Дата
Msg-id
AANLkTimfHiV9Wggteee9Ocsjqi_O55Upb-4Vaq6cqA6F@mail.gmail.com
Ответ на
Re: psql auto-completion for multiple where clauses (Greg Sabino Mullane)
Список
Дерево обсуждения
psql auto-completion for multiple where clauses Thom Brown <thombrown@gmail.com>
Re: psql auto-completion for multiple where clauses "Greg Sabino Mullane" <greg@turnstep.com>
Re: psql auto-completion for multiple where clauses Tom Lane <tgl@sss.pgh.pa.us>
Re: psql auto-completion for multiple where clauses Thom Brown <thombrown@gmail.com>
On 16 July 2010 16:04, Greg Sabino Mullane wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: RIPEMD160 > > >> Someone highlighed on IRC that after the first WHERE clause, >> autocomplete no longer works. > ... >> SELECT * FROM tab_completion WHERE id = 2 AND s > ... >> Is there any chance of improving this so it would work for more than 1 >> WHERE clause? I notice it also doesn't work for GROUP BY or HAVING at >> all, but seems to be fine for ORDER BY. > > No: there is only a small number of words that we go back through, > so the above will not work as we cannot get back to the name of the table > from the right side of the AND. The way to fix that is to redesign our > tab-completion system such that it knows about a greater number of words, > perhaps even the complete statement. > Yay for complete overhauls! Okay, fair enough. Bit unintuitive behaviour though. >> SELECT * FROM tab_completion WHERE id = 2 AND b >> >> Since there is no column beginning with "b", it might be an idea to >> get it to match "bark bark" instead. It might help alleviate what may >> be a gotcha for some. > > This one is more doable, assuming we are really talking about: > > SELECT * FROM tab_completion WHERE b > > Keep in mind it will show up in a list if you do the following: > > SELECT * FROM tab_completion WHERE > > Doesn't it do that already? Thom
В списке pgsql-hackers по дате отправления