<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://wiki.jordan-lenuff.com/index.php?action=history&amp;feed=atom&amp;title=Technique%2FPostgreSQL%2FAstuces</id>
	<title>Technique/PostgreSQL/Astuces - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.jordan-lenuff.com/index.php?action=history&amp;feed=atom&amp;title=Technique%2FPostgreSQL%2FAstuces"/>
	<link rel="alternate" type="text/html" href="https://wiki.jordan-lenuff.com/index.php?title=Technique/PostgreSQL/Astuces&amp;action=history"/>
	<updated>2026-06-16T08:21:57Z</updated>
	<subtitle>Historique des révisions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>https://wiki.jordan-lenuff.com/index.php?title=Technique/PostgreSQL/Astuces&amp;diff=868&amp;oldid=prev</id>
		<title>Jordan : Page créée avec « ==Présentation== Cette page a pour objet de regrouper différentes astuces liées à l'utilisation de PostgreSQL.  ==Connecteur JDBC et socket Unix== Pour se connecter à… »</title>
		<link rel="alternate" type="text/html" href="https://wiki.jordan-lenuff.com/index.php?title=Technique/PostgreSQL/Astuces&amp;diff=868&amp;oldid=prev"/>
		<updated>2021-03-19T15:03:54Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « ==Présentation== Cette page a pour objet de regrouper différentes astuces liées à l&amp;#039;utilisation de PostgreSQL.  ==Connecteur JDBC et socket Unix== Pour se connecter à… »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Présentation==&lt;br /&gt;
Cette page a pour objet de regrouper différentes astuces liées à l'utilisation de PostgreSQL.&lt;br /&gt;
&lt;br /&gt;
==Connecteur JDBC et socket Unix==&lt;br /&gt;
Pour se connecter à PostgreSQL via un socket Unix au travers d'un connecteur JDBC, suivre [https://jdbc.postgresql.org/documentation/head/connect.html#unix%20sockets la recommandation officielle de PostgreSQL dans sa documentation] :&lt;br /&gt;
&lt;br /&gt;
''Aleksander Blomskøld has forked junixsocket and added a Unix SocketFactory that works with the driver. His code can be found at https://github.com/fiken/junixsocket.''&lt;br /&gt;
&lt;br /&gt;
''Dependencies for junixsocket are :''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;dependency&amp;gt;&lt;br /&gt;
  &amp;lt;groupId&amp;gt;no.fiken.oss.junixsocket&amp;lt;/groupId&amp;gt;&lt;br /&gt;
  &amp;lt;artifactId&amp;gt;junixsocket-common&amp;lt;/artifactId&amp;gt;&lt;br /&gt;
  &amp;lt;version&amp;gt;1.0.2&amp;lt;/version&amp;gt;&lt;br /&gt;
&amp;lt;/dependency&amp;gt;&lt;br /&gt;
&amp;lt;dependency&amp;gt;&lt;br /&gt;
  &amp;lt;groupId&amp;gt;no.fiken.oss.junixsocket&amp;lt;/groupId&amp;gt;&lt;br /&gt;
  &amp;lt;artifactId&amp;gt;junixsocket-native-common&amp;lt;/artifactId&amp;gt;&lt;br /&gt;
  &amp;lt;version&amp;gt;1.0.2&amp;lt;/version&amp;gt;&lt;br /&gt;
&amp;lt;/dependency&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Simply add &amp;lt;code&amp;gt;?socketFactory=org.newsclub.net.unix.socketfactory.PostgresqlAFUNIXSocketFactory&amp;amp;socketFactoryArg=[path-to-the-unix-socket]&amp;lt;/code&amp;gt; to the connection URL.''&lt;br /&gt;
&lt;br /&gt;
''For many distros the default path is /var/run/postgresql/.s.PGSQL.5432''&amp;lt;ref&amp;gt;Extrait de la documenation officiel de PostgreSQL : https://jdbc.postgresql.org/documentation/head/connect.html#unix%20sockets&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Références==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jordan</name></author>
		
	</entry>
</feed>