psql support for "DSNs" - Mailing list pgsql-hackers

From Chris Browne
Subject psql support for "DSNs"
Date
Msg-id 60acxsgk2h.fsf_-_@dev6.int.libertyrms.info
Whole thread Raw
List pgsql-hackers
I just had a thought; was looking at a script where I'd rather invoke
using psql than using a Perl module (since Pg/DBD that might very well
not be available on AIX, HP/UX, Solaris, or such).

What would be very nice would be for there to be a psql command option
that would accept a "DSN" as opposed to having to parse it all out
into pieces.

Thus: psql --dsn="host=george port=5434 dbname=testing"

That way, I can use the very same DSNs that I have already put
together for use for numerous other purposes...

I can certainly work around this for my current purpose, but I still
think it would be a slick option to have.  If I find Round Tuits, I'll
see about a patch...
-- 
output = reverse("moc.enworbbc" "@" "enworbbc")
http://cbbrowne.com/info/oses.html
"This must be Thursday.  I never could get the hang of Thursdays."
- Arthur Dent


pgsql-hackers by date:

Previous
From: Mark Kirkwood
Date:
Subject: Re: PITR COPY Failure (was Point in Time Recovery)
Next
From: Tom Lane
Date:
Subject: Re: PITR COPY Failure (was Point in Time Recovery)