Search Postgresql Archives

Re: PostgreSQL URI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alvaro Herrera <alvherre@xxxxxxxxxxxxxx> writes:
> I wonder if we shouldn't instead try to break it up in parts that can be
> explained or described separately.  This many brackets makes it pretty
> hard to read.

> We could say something like

> postgresql://[userspec@][hostspec][/dbname][?paramspec]

> where
>   userspec is user[:password]
>   hostspec is [[host][:port]][,...]
>   paramspec is param1=value1&...

+1.  I think you could lose the outer brackets in hostspec in
this formulation, ie given that hostspec is already bracketed
above, it should be enough to write

    hostspec is [host][:port][,...]

Also, the paramspec is under-bracketed today.  Should be
more like

    paramspec is param=value[&...]

			regards, tom lane





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux