Re: PSQL/pgAdmin - Column Completion - Mailing list pgsql-general

From dvlsg
Subject Re: PSQL/pgAdmin - Column Completion
Date
Msg-id 1420065653492-5832597.post@n5.nabble.com
Whole thread Raw
In response to Re: PSQL/pgAdmin - Column Completion  (John R Pierce <pierce@hogranch.com>)
Responses Re: PSQL/pgAdmin - Column Completion  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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.


pgsql-general by date:

Previous
From: Rob Sargent
Date:
Subject: Re: PSQL/pgAdmin - Column Completion
Next
From: Tom Lane
Date:
Subject: Re: PSQL/pgAdmin - Column Completion