<?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>Pg_dump on Kenno&#39;s Open Note</title>
    <link>https://blog.khmersite.net/tags/pg_dump/</link>
    <description>Recent content in Pg_dump on Kenno&#39;s Open Note</description>
    <image>
      <title>Kenno&#39;s Open Note</title>
      <url>https://blog.khmersite.net/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</url>
      <link>https://blog.khmersite.net/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</link>
    </image>
    <generator>Hugo -- 0.154.0</generator>
    <language>en</language>
    <lastBuildDate>Fri, 21 Jun 2024 14:43:35 +1000</lastBuildDate>
    <atom:link href="https://blog.khmersite.net/tags/pg_dump/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>PostgreSQL FATAL: Peer Authentication Failed for User Postgres</title>
      <link>https://blog.khmersite.net/p/postgresql-fatal-peer-authentication-failed-for-user-postgres/</link>
      <pubDate>Fri, 21 Jun 2024 14:43:35 +1000</pubDate>
      <guid>https://blog.khmersite.net/p/postgresql-fatal-peer-authentication-failed-for-user-postgres/</guid>
      <description>&lt;p&gt;Recently, I upgraded a server running Ubuntu 22.04 to 24.04, that also comes with PostgreSQL 16.
For some odd reasons, the Postgres server was not managed by Ansible, and changes previously
made to Postgres 15 was not recorded.&lt;/p&gt;
&lt;p&gt;I noticed that the backup database (pg_dump) was not working properly, the backup database size
was just a few kilobytes. Let&amp;rsquo;s investigate, shall we?&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;root@toto:/etc/cron.daily# ./postgresql-backup
pg_dump: error: connection to server on socket &amp;#34;/var/run/postgresql/.s.PGSQL.5432&amp;#34; failed: FATAL:  Peer authentication failed for user &amp;#34;postgres&amp;#34;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You might be wondering, what&amp;rsquo;s in &lt;code&gt;postgresql-backup&lt;/code&gt;? Well, nothing fancy.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
