<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>http://10.3.0.100/tutorials/index.php?action=history&amp;feed=atom&amp;title=PostgreSQL_Verbindungsparameter</id>
	<title>PostgreSQL Verbindungsparameter - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="http://10.3.0.100/tutorials/index.php?action=history&amp;feed=atom&amp;title=PostgreSQL_Verbindungsparameter"/>
	<link rel="alternate" type="text/html" href="http://10.3.0.100/tutorials/index.php?title=PostgreSQL_Verbindungsparameter&amp;action=history"/>
	<updated>2026-04-10T23:10:51Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Tutorials</subtitle>
	<generator>MediaWiki 1.39.1</generator>
	<entry>
		<id>http://10.3.0.100/tutorials/index.php?title=PostgreSQL_Verbindungsparameter&amp;diff=5928&amp;oldid=prev</id>
		<title>Martin Kirner: /* mittels alias */</title>
		<link rel="alternate" type="text/html" href="http://10.3.0.100/tutorials/index.php?title=PostgreSQL_Verbindungsparameter&amp;diff=5928&amp;oldid=prev"/>
		<updated>2019-06-20T11:33:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;mittels alias&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 20. Juni 2019, 11:33 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l37&quot;&gt;Zeile 37:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 37:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[https://www.postgresql.org/docs/current/libpq-envars.html https://www.postgresql.org/docs/current/libpq-envars.html]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[https://www.postgresql.org/docs/current/libpq-envars.html https://www.postgresql.org/docs/current/libpq-envars.html]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== mittels alias ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== mittels &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&lt;/ins&gt;alias&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039; &lt;/ins&gt;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Die Datei &amp;lt;code&amp;gt;~/.bashrc&amp;lt;/code&amp;gt; editieren  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Die Datei &amp;lt;code&amp;gt;~/.bashrc&amp;lt;/code&amp;gt; editieren  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l58&quot;&gt;Zeile 58:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 58:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Zurück zu [[PostgreSQL#Verbindungsparameter|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Verbindungsparameter&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Zurück zu [[PostgreSQL#Verbindungsparameter|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;PostgreSQL&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Martin Kirner</name></author>
	</entry>
	<entry>
		<id>http://10.3.0.100/tutorials/index.php?title=PostgreSQL_Verbindungsparameter&amp;diff=5926&amp;oldid=prev</id>
		<title>Martin Kirner: Die Seite wurde neu angelegt: „== Passwortdatei ==  &lt;pre&gt; vi ~/.pgpass &lt;/pre&gt;  &lt;pre&gt; YOUR_HOST:YOUR_PORT:DB_NAME:USER_NAME:PASSWORD &lt;/pre&gt;  &lt;pre&gt; chmod 600 ~/.pgpass &lt;/pre&gt;  &lt;pre&gt; vi ~/.bash…“</title>
		<link rel="alternate" type="text/html" href="http://10.3.0.100/tutorials/index.php?title=PostgreSQL_Verbindungsparameter&amp;diff=5926&amp;oldid=prev"/>
		<updated>2019-06-20T11:32:11Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „== Passwortdatei ==  &amp;lt;pre&amp;gt; vi ~/.pgpass &amp;lt;/pre&amp;gt;  &amp;lt;pre&amp;gt; YOUR_HOST:YOUR_PORT:DB_NAME:USER_NAME:PASSWORD &amp;lt;/pre&amp;gt;  &amp;lt;pre&amp;gt; chmod 600 ~/.pgpass &amp;lt;/pre&amp;gt;  &amp;lt;pre&amp;gt; vi ~/.bash…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Passwortdatei ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
vi ~/.pgpass&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
YOUR_HOST:YOUR_PORT:DB_NAME:USER_NAME:PASSWORD&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chmod 600 ~/.pgpass&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
vi ~/.bashrc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Links ===&lt;br /&gt;
&lt;br /&gt;
[https://www.postgresql.org/docs/current/libpq-pgpass.html https://www.postgresql.org/docs/current/libpq-pgpass.html]&lt;br /&gt;
&lt;br /&gt;
== Umgebungsvariablen ==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;ip address&amp;gt;=127.0.0.1 für localhost&lt;br /&gt;
* PGPASSFILE ist hier eigentlich nicht notwendig, da &amp;#039;/home/&amp;lt;username&amp;gt;/.pgpass&amp;#039; der Standardpfad ist&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export PGHOSTADDR=&amp;lt;ip address&amp;gt;&lt;br /&gt;
export PGUSER=&amp;lt;postgres user&amp;gt;&lt;br /&gt;
export PGDATABASE=&amp;lt;database name&amp;gt;&lt;br /&gt;
export PGPASSFILE=/home/&amp;lt;username&amp;gt;/.pgpass&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Links ===&lt;br /&gt;
&lt;br /&gt;
[https://www.postgresql.org/docs/current/libpq-envars.html https://www.postgresql.org/docs/current/libpq-envars.html]&lt;br /&gt;
&lt;br /&gt;
== mittels alias ==&lt;br /&gt;
&lt;br /&gt;
Die Datei &amp;lt;code&amp;gt;~/.bashrc&amp;lt;/code&amp;gt; editieren &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
vi ~/.bashrc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
und folgende Zeile hinzufügen &amp;#039;&amp;#039;(127.0.0.1 für localhost)&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
alias db=&amp;#039;psql -h &amp;lt;ip address&amp;gt; -U &amp;lt;postgres user&amp;gt; -d &amp;lt;database name&amp;gt;&amp;#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Danach die Datei mittels &amp;lt;code&amp;gt;source&amp;lt;/code&amp;gt; neu einlesen:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source ~/.bashrc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zurück zu [[PostgreSQL#Verbindungsparameter|Verbindungsparameter]]&lt;/div&gt;</summary>
		<author><name>Martin Kirner</name></author>
	</entry>
</feed>