<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>int128</author_name>
  <author_url>https://blog.hatena.ne.jp/int128/</author_url>
  <blog_title>GeekFactory</blog_title>
  <blog_url>https://int128.hatenablog.com/</blog_url>
  <categories>
    <anon>gitlab</anon>
  </categories>
  <description>GitLabでRDS for PostgreSQLを使う場合にハマったのでメモです。 TL;DR GitLabを起動した際のマイグレーションスクリプトで CREATE EXTENSION pg_trgm; が実行されるが、一般ユーザは CREATE EXTENSION の権限を持っていないのでエラーが発生します。 あらかじめ、スーパーユーザで当該SQLを実行しておく必要があります。 具体的な事象と対策 まず、GitLabが使うデータベースとユーザを作成します。 # postgresデータベースに接続 psql -h $RDS_HOST -U $RDS_ADMIN postgres -- データ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fint128.hatenablog.com%2Fentry%2F2017%2F12%2F20%2F202236&quot; title=&quot;GitLabでRDS for PostgreSQLを使う - GeekFactory&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>2017-12-20 20:22:36</published>
  <title>GitLabでRDS for PostgreSQLを使う</title>
  <type>rich</type>
  <url>https://int128.hatenablog.com/entry/2017/12/20/202236</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
