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

Re: Notes on implementing URI syntax for libpq

From: Alexander Shulgin <ash(at)commandprompt(dot)com>
To: Alexey Klyukin <alexk(at)commandprompt(dot)com>
Cc: Martijn van Oosterhout <kleptog(at)svana(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Notes on implementing URI syntax for libpq
Date: 2011-11-24 14:40:00
Message-ID: 1322144233-sup-8547@moon (view raw or flat)
Thread:
Lists: pgsql-hackers
Excerpts from Alexey Klyukin's message of Thu Nov 24 10:22:21 +0200 2011:
> 
> Another idea is to use local:/dir/name for UNIX domain socket instead of hostname:port, like it's displayed in the psql prompt.

So the whole thing would look like this:

  postgresql://local:/dir/name/dbname?param1=val1&...

Where "/dir/name" is the absolute path to the directory containing the socket file.  If one wants to use the default directory the following syntax may serve the need:

   postgresql://local:/dbname

--
Alex

In response to

Responses

pgsql-hackers by date

Next:From: Alvaro HerreraDate: 2011-11-24 14:41:45
Subject: Re: Notes on implementing URI syntax for libpq
Previous:From: Florian PflugDate: 2011-11-24 14:39:48
Subject: Re: Wire protocol: type-specific opt-in to binary format

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