
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.thelinuxwiki.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.thelinuxwiki.com/index.php?action=history&amp;feed=atom&amp;title=postgres</id>
		<title>postgres - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.thelinuxwiki.com/index.php?action=history&amp;feed=atom&amp;title=postgres"/>
		<link rel="alternate" type="text/html" href="http://www.thelinuxwiki.com/index.php?title=postgres&amp;action=history"/>
		<updated>2026-04-29T07:23:57Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21.5</generator>

	<entry>
		<id>http://www.thelinuxwiki.com/index.php?title=postgres&amp;diff=1415&amp;oldid=prev</id>
		<title>Nighthawk: Created page with &quot;==controlling access/authentication==  file: pg_hba.conf path: /etc/postgresql/&lt;version&gt;/main/  example of no auth from local any user  add line...  local all all trust  resta...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.thelinuxwiki.com/index.php?title=postgres&amp;diff=1415&amp;oldid=prev"/>
				<updated>2021-11-16T16:57:27Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;==controlling access/authentication==  file: pg_hba.conf path: /etc/postgresql/&amp;lt;version&amp;gt;/main/  example of no auth from local any user  add line...  local all all trust  resta...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==controlling access/authentication==&lt;br /&gt;
&lt;br /&gt;
file: pg_hba.conf&lt;br /&gt;
path: /etc/postgresql/&amp;lt;version&amp;gt;/main/&lt;br /&gt;
&lt;br /&gt;
example of no auth from local any user&lt;br /&gt;
&lt;br /&gt;
add line...&lt;br /&gt;
 local all all trust&lt;br /&gt;
&lt;br /&gt;
restart server?&lt;br /&gt;
&lt;br /&gt;
==basic commands via CLI==&lt;br /&gt;
&lt;br /&gt;
connect as user postgres&lt;br /&gt;
 psql -U postgres&lt;br /&gt;
 postgres-#&lt;br /&gt;
&lt;br /&gt;
list all databases&lt;br /&gt;
 postgres-# \l&lt;br /&gt;
                                    List of databases&lt;br /&gt;
   Name    |    Owner    | Encoding |   Collate   |    Ctype    |   Access privileges   &lt;br /&gt;
 -----------+-------------+----------+-------------+-------------+-----------------------&lt;br /&gt;
  postgres  | postgres    | UTF8     | en_US.UTF-8 | en_US.UTF-8 | &lt;br /&gt;
 template0 | postgres    | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +&lt;br /&gt;
           |             |          |             |             | postgres=CTc/postgres&lt;br /&gt;
 template1 | postgres    | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +&lt;br /&gt;
           |             |          |             |             | postgres=CTc/postgres&lt;br /&gt;
&lt;br /&gt;
quit&lt;br /&gt;
 \q&lt;/div&gt;</summary>
		<author><name>Nighthawk</name></author>	</entry>

	</feed>