<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Databases on Roman Dushko - Personal blog</title><link>https://www.rodush.com/tags/databases/</link><description>Recent content in Databases on Roman Dushko - Personal blog</description><image><title>Roman Dushko - Personal blog</title><url>https://www.rodush.com/images/rodush-og.png</url><link>https://www.rodush.com/images/rodush-og.png</link></image><generator>Hugo</generator><language>en</language><lastBuildDate>Fri, 16 May 2014 09:15:01 +0000</lastBuildDate><atom:link href="https://www.rodush.com/tags/databases/index.xml" rel="self" type="application/rss+xml"/><item><title>How to add role to the PostgreSQL</title><link>https://www.rodush.com/2014/05/how-to-add-role-to-the-postgresql/</link><pubDate>Fri, 16 May 2014 09:15:01 +0000</pubDate><guid>https://www.rodush.com/2014/05/how-to-add-role-to-the-postgresql/</guid><description>&lt;p&gt;If you need have superuser access to PostgreSQL via command line psql utility, create needed username first:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo -u postgres createuser NEEDED_USERNAME
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You will be asked whether role should be a superuser:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Shall the new role be a superuser? (y/n)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;answer &amp;ldquo;&lt;em&gt;Y&lt;/em&gt;&amp;rdquo; (yes) if so and hit &lt;code&gt;Enter&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Now you allowed the &lt;code&gt;NEEDED_USERNAME&lt;/code&gt; to access databases as a superuser via &lt;code&gt;psql&lt;/code&gt;.&lt;/p&gt;</description></item></channel></rss>