Re: [HACKERS] libpq URL syntax vs SQLAlchemy

2012-05-28 Thread Alex
Peter Eisentraut writes: > On mån, 2012-05-14 at 18:16 +0300, Alex Shulgin wrote: >> Upon closer inspection of the issue I came to believe that the proper >> fix is to drop support for special treatment of "host part" starting >> with slash altogether. >> >> Attached is a patch to do that. > >

Re: [HACKERS] libpq URL syntax vs SQLAlchemy

2012-05-28 Thread Peter Eisentraut
On mån, 2012-05-14 at 18:16 +0300, Alex Shulgin wrote: > Upon closer inspection of the issue I came to believe that the proper > fix is to drop support for special treatment of "host part" starting > with slash altogether. > > Attached is a patch to do that. Committed. I also updated the docume

Re: [HACKERS] libpq URL syntax vs SQLAlchemy

2012-05-25 Thread Alex
Alex Shulgin writes: > > Upon closer inspection of the issue I came to believe that the proper > fix is to drop support for special treatment of "host part" starting > with slash altogether. > > Attached is a patch to do that. Well, I understand I might be asking for too much, but did anyone had

Re: [HACKERS] libpq URL syntax vs SQLAlchemy

2012-05-14 Thread Alex
karave...@mail.bg writes: > - Цитат от Alex Shulgin (a...@commandprompt.com), на 14.05.2012 в 18:16 > - > >> Alex writes: >> >> >> The host part in this case is empty (it is "hidden" between the "//" and >> the following "/",) thus local socket connection is employed for this >> type

Re: [HACKERS] libpq URL syntax vs SQLAlchemy

2012-05-14 Thread karavelov
- Цитат от Alex Shulgin (a...@commandprompt.com), на 14.05.2012 в 18:16 - > Alex writes: > > > The host part in this case is empty (it is "hidden" between the "//" and > the following "/",) thus local socket connection is employed for this > type of URIs. To specify non-standard path

Re: [HACKERS] libpq URL syntax vs SQLAlchemy

2012-05-14 Thread Alex Shulgin
Alex writes: > Peter Eisentraut writes: > >> I have been reviewing how our new libpq URL syntax compares against >> existing implementations of URL syntaxes in other drivers or >> higher-level access libraries. In the case of SQLAlchemy, there is an >> incompatibility regarding how Unix-domain

Re: [HACKERS] libpq URL syntax vs SQLAlchemy

2012-05-12 Thread Peter Eisentraut
On lör, 2012-05-12 at 10:32 +0100, Simon Riggs wrote: > On 9 May 2012 19:17, Peter Eisentraut wrote: > > > I have been reviewing how our new libpq URL syntax compares against > > existing implementations of URL syntaxes in other drivers or > > higher-level access libraries. In the case of SQLAlc

Re: [HACKERS] libpq URL syntax vs SQLAlchemy

2012-05-12 Thread Kevin Grittner
>>Simon Riggs wrote: >>On 9 May 2012 19:17, Peter Eisentraut wrote: >> >>> I have been reviewing how our new libpq URL syntax compares >>> against existing implementations of URL syntaxes in other drivers >>> or higher-level access libraries. In the case of SQLAlchemy, >>> there is an incompatibi

Re: [HACKERS] libpq URL syntax vs SQLAlchemy

2012-05-12 Thread Simon Riggs
On 9 May 2012 19:17, Peter Eisentraut wrote: > I have been reviewing how our new libpq URL syntax compares against > existing implementations of URL syntaxes in other drivers or > higher-level access libraries.  In the case of SQLAlchemy, there is an > incompatibility regarding how Unix-domain so

Re: [HACKERS] libpq URL syntax vs SQLAlchemy

2012-05-10 Thread Alex
Peter Eisentraut writes: > I have been reviewing how our new libpq URL syntax compares against > existing implementations of URL syntaxes in other drivers or > higher-level access libraries. In the case of SQLAlchemy, there is an > incompatibility regarding how Unix-domain sockets are specified

Re: [HACKERS] libpq URL syntax vs SQLAlchemy

2012-05-09 Thread Robert Haas
On Wed, May 9, 2012 at 2:17 PM, Peter Eisentraut wrote: >    postgresql://user:password@/dbname > > In libpq, this is parsed as host='/dbname', no database. That is flat wrong. > - Requiring percent escapes And this is, IMHO, the right fix. -- Robert Haas EnterpriseDB: http://www.enterprisedb

[HACKERS] libpq URL syntax vs SQLAlchemy

2012-05-09 Thread Peter Eisentraut
I have been reviewing how our new libpq URL syntax compares against existing implementations of URL syntaxes in other drivers or higher-level access libraries. In the case of SQLAlchemy, there is an incompatibility regarding how Unix-domain sockets are specified. First, here is the documentation