<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ichikaway</author_name>
  <author_url>https://blog.hatena.ne.jp/ichikaway/</author_url>
  <blog_title>Code Day's Night</blog_title>
  <blog_url>https://blog.ichikaway.com/</blog_url>
  <categories>
  </categories>
  <description>今回はPostgreSQLにログインするために、psql -h localhost としてた時に最初のログインまでが時間がかかり、ログイン後は問題なくクエリのレスポンスが返ってきた。psql -h 127.0.0.1では発生せず。 結論 先に結論から。PostgreSQLに限らず発生する問題でした。 /etc/hostsに次の２行が書いてあった。localhost 127.0.0.1localhost ::1この場合、psql -h localhostだと::1のIPv6アドレスのlistenポートに接続しに行く。IPv6はnftables(firewall)で全拒否してたため、接続できずタイ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.ichikaway.com%2Fentry%2F2021%2F08%2F31%2F122958&quot; title=&quot;localhost指定の初期接続がすごく遅い（解決） - Code Day&amp;#39;s Night&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-08-31 12:29:58</published>
  <title>localhost指定の初期接続がすごく遅い（解決）</title>
  <type>rich</type>
  <url>https://blog.ichikaway.com/entry/2021/08/31/122958</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
