Skip site navigation (1) Skip section navigation (2)

Re: Should psql support URI syntax?

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Should psql support URI syntax?
Date: 2011-03-31 23:34:43
Message-ID: 1301614483.24264.83.camel@jd-desktop (view raw or flat)
Thread:
Lists: pgsql-hackers
On Thu, 2011-03-31 at 19:32 -0400, Andrew Dunstan wrote:
> 
> On 03/31/2011 07:25 PM, Joshua D. Drake wrote:
> > Hello,
> >
> > Most database connectors/frameworks nowadays support a URI style
> > connection string. Something like:
> >
> > pgsql://user:pass(at)host/database
> >
> > Do we think psql should support this style of connection string?
> >
> >
> 
> Syntactic sugar aside, what is the advantage of that over a conninfo string?

I would think it would be purely syntatic sugar really, which does
incorporate a familiar interface for those who are working in different
worlds (.Net/Drupal/JAVA) etc...

Perhaps programability would also be useful from a shell/system script
perspective.

Sincerely,

Joshua D. Drake

-- 
PostgreSQL.org Major Contributor
Command Prompt, Inc: http://www.commandprompt.com/ - 509.416.6579
Consulting, Training, Support, Custom Development, Engineering
http://twitter.com/cmdpromptinc | http://identi.ca/commandprompt


In response to

Responses

pgsql-hackers by date

Next:From: Greg SmithDate: 2011-03-31 23:41:25
Subject: Re: 2nd Level Buffer Cache
Previous:From: Andrew DunstanDate: 2011-03-31 23:32:32
Subject: Re: Should psql support URI syntax?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group