Re: PSQL/pgAdmin - Column Completion

From: Rob Sargent <robjsargent(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: PSQL/pgAdmin - Column Completion
Date: 2014-12-31 19:56:52
Message-ID: 54A45504.6050408@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 12/31/2014 12:51 PM, Tom Lane wrote:
> dvlsg <dave(at)clubspeed(dot)com> writes:
>> I have been having issues with autocomplete in pgAdmin. After some searching,
>> I found it was my mistake and that pgAdmin doesn't actually support column
>> autocompletion in select statements. I found that pgAdmin uses the
>> autocomplete code directly from psql's tab-complete.c, which contains these
>> comments in the current version starting on line 3387:
>> /* SELECT */
>> /* naah . . . */
>> Is there any talk of this functionality being added in the future?
> No. What would the autocompletion be based on? You don't know any
> referenced table names at that point, for instance.
>
>> I find it
>> a bit disappointing that other applications such as HeidiSQL can
>> autocomplete column names from tables/aliases/etc, but pgAdmin cannot.
> The only algorithm I can imagine using would be to autocomplete every
> column and function name existing in the database. While this might be
> helpful in toy databases, it's hard to imagine it being very convenient,
> or performant, in real-world situations.
>
> regards, tom lane
>
>
I think I see the autocompleters lining up now:
just "my" schemas
I'll type the from clause first
etc

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message dvlsg 2014-12-31 20:01:36 Re: PSQL/pgAdmin - Column Completion
Previous Message Tom Lane 2014-12-31 19:51:03 Re: PSQL/pgAdmin - Column Completion