Re: PSQL/pgAdmin - Column Completion

From: dvlsg <dave(at)clubspeed(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: PSQL/pgAdmin - Column Completion
Date: 2014-12-31 22:40:53
Message-ID: 1420065653492-5832597.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

The majority of my query writing is done in pgAdmin, not psql. I do tend to
type out the from/where/join/whatever portion of the statement before
finishing the select portion of the statement (starting with a SELECT * and
replacing it once the rest of the query is in place). Fair enough, though --
I am probably in the minority there.

However, what about a statement like this?

SELECT *
FROM public.TableA a
WHERE a.Column1 > 50;

Simplified again, of course, but the autocomplete of a column would come
after a table/alias declaration. As to the joins, other applications I have
used are capable of autocompleting the columns in the ON portion in the
following query.

SELECT *
FROM public.table_a a
INNER JOIN public.table_b b
ON a.table_a_id = b.table_a_id

I'm not saying it's a deal breaker, or the end of the world, or anything
like that. It seems like that sort of query parsing is considerably outside
the functionality of the existing autocomplete code, and may not be worth
the extra work / overhaul. I will concede that it's a minor inconvenience
for only a portion of the userbase at worst. Just voicing a curiosity.

--
View this message in context: http://postgresql.nabble.com/PSQL-pgAdmin-Column-Completion-tp5832573p5832597.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2014-12-31 22:53:36 Re: PSQL/pgAdmin - Column Completion
Previous Message Rob Sargent 2014-12-31 21:00:44 Re: PSQL/pgAdmin - Column Completion