Re: psql tab-complete

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Victor Spirin <v.spirin@postgrespro.ru>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2019-10-24T21:48:31Z
Lists: pgsql-hackers
Victor Spirin <v.spirin@postgrespro.ru> writes:
> I found some problem with tab-complete in the 12 version.  I checked 
> this in the Windows.

This change seems to break the case intended by the comment,
ie given the context

	SELECT * FROM tablename WHERE <tab>

we want to offer the columns of "tablename" as completions.

I'd be the first to agree that that's completely lame, as there
are any number of related cases it fails to cover ... but this
patch isn't making it better.

			regards, tom lane



Commits

  1. Add work-around for VA_ARGS_NARGS() on MSVC.