<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Control WebPanel Wiki &#187; PgSQL</title>
	<atom:link href="https://wiki.centos-webpanel.com/tag/pgsql/feed" rel="self" type="application/rss+xml" />
	<link>https://wiki.centos-webpanel.com</link>
	<description>CentOS WebPanel Wiki</description>
	<lastBuildDate>Wed, 12 Feb 2025 20:38:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<item>
		<title>PostgreSQL Usage (basic)</title>
		<link>https://wiki.centos-webpanel.com/postgresql-usage-basic</link>
		<comments>https://wiki.centos-webpanel.com/postgresql-usage-basic#comments</comments>
		<pubDate>Wed, 01 Jul 2015 18:27:00 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[Other Databases]]></category>
		<category><![CDATA[PgSQL]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=331</guid>
		<description><![CDATA[Installation of PostgreSQL can be done with a single click in the CWP GUI. Video instructions PostgreSQL Usage (command line) Login to postgresql prompt su - postgres psql set postgres password postgres=# \password postgres Enter new password: Enter it again: postgres=# \q To install PostgreSQL Adminpack, enter the command in postgresql prompt postgres=# CREATE EXTENSION [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><strong>Installation of PostgreSQL can be done with a single click in the CWP GUI.</strong></p>
<p><strong>Video instructions</strong></p>
<p><object width="700" height="425"><param name="movie" value="https://www.youtube.com/v/-B-HBGYkYjE?version=3&amp;showinfo=0&amp;theme=light&amp;fs=1&amp;rel=0&amp;iv_load_policy=3&amp;modestbranding=1"></param><param name="allowScriptAccess" value="always"></param><param name="allowFullScreen" value="true"></param><embed src="https://www.youtube.com/v/-B-HBGYkYjE?version=3&amp;showinfo=0&amp;theme=light&amp;fs=1&amp;rel=0&amp;iv_load_policy=3&amp;modestbranding=1" type="application/x-shockwave-flash" allowScriptAccess="always" allowfullscreen="true" width="700" height="425"></embed></object></p>
<p>		<b>PostgreSQL Usage</b> (command line)</p>
<p>		Login to postgresql prompt </p>
<pre>su - postgres
psql
		</pre>
<p>		set postgres password</p>
<pre>postgres=# \password postgres 
Enter new password: 
Enter it again: 
postgres=# \q</pre>
<p>	To install PostgreSQL Adminpack, enter the command in postgresql prompt</p>
<pre>postgres=# CREATE EXTENSION adminpack
CREATE EXTENSION</pre>
<p>	Create User and Database</p>
<pre>postgres=# createuser USERNAME
postgres=# createdb DATABASENAME</pre>
<p>	Set User Password</p>
<pre>postgres=# alter user USERNAME with encrypted password 'NEW-PASSWORD'
ALTER ROLE</pre>
<p>	Add Privileges on database to User</p>
<pre>postgres=# grant all privileges on database DATABASENAME to USERNAME
GRANT</pre>
<p>	Delete Database</p>
<pre>postgres=# dropdb DATABASENAME</pre>
<p>	Delete User</p>
<pre>postgres=# dropuser USERNAME</pre>
]]></content:encoded>
			<wfw:commentRss>https://wiki.centos-webpanel.com/postgresql-usage-basic/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
