I have installed postgresql 8.4.21 in my CentOS 5. But when I fire Select Query is it not showing me any completion if I press TAB key..

database=# select count

is it any configuration in postgreql.conf ?

  • Did you install PostgreSQL via yum or compile it from source? Auto-complete requires readline library to be installed. – Janne Pikkarainen Oct 20 '14 at 7:24
  • May be there was a problem in my installation. I have downloaded new source and installed from it. It works fine. thank you for your comment. – user95711 Oct 20 '14 at 8:05

Autocomplete on column names doesn't work in the SELECT clause, because PostgreSQL doesn't yet know what table you might be talking about.

It could offer all functions, aggregates, and all columns across all tables in all schemas, but that'd be pretty slow and not very helpful.

Part of the problem is that SQL's syntax is basically backwards. It should really be:

FROM table1 INNER JOIN table2 ON (...) SELECT ...

and that way, we could also autocomplete it usefully.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.