Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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. ...it was even vaguely credible to consider building an updated version of libedit and replacing the system version?
share|improve this question
add comment

migrated from serverfault.com Dec 27 '11 at 20:48

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

1 Answer

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.:

PATH=/opt/local/lib/postgresql83/bin:$PATH

share|improve this answer
add comment

Your Answer

 
discard

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.