Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

It would appear that Apple have managed to get it utterly wrong with libedit again. The version shipped with Lion is apparently broken, and consequently tab completion doesn't work in psql (Discussion here). psql is one of the few tools that I tend to use directly from my macbook rather than on a vm and it would be lovely if it just worked. I've tried rlwrap and although it functions it doesn't support psql tab completion. I suppose I could install a new version of psql from source and link it directly against readline but I was wondering if:

  1. ...anyone had found a workaround of some sort
  2. was even vaguely credible to consider building an updated version of libedit and replacing the system version?
share|improve this question

migrated from Dec 27 '11 at 20:48

This question came from our site for system and network administrators.

Install macports, and then install the postgresql83 package.

sudo port install postgresql83

The macports psql works fine. Make sure you get it first on your path, e.g.:


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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