{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fk-koh.hatenablog.com%2Fentry%2F2020%2F03%2F26%2F134005\" title=\"PostgreSQL \u3067\u30e6\u30fc\u30b6\u30fc\u3092\u524a\u9664\u3059\u308b - Just do IT\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","author_name":"K_Koh","type":"rich","provider_url":"https://hatena.blog","blog_url":"https://k-koh.hatenablog.com/","image_url":null,"height":"190","published":"2020-03-26 13:40:05","author_url":"https://blog.hatena.ne.jp/K_Koh/","title":"PostgreSQL \u3067\u30e6\u30fc\u30b6\u30fc\u3092\u524a\u9664\u3059\u308b","url":"https://k-koh.hatenablog.com/entry/2020/03/26/134005","width":"100%","blog_title":"Just do IT","categories":["PostgreSQL"],"provider_name":"Hatena Blog","description":"# PostgreSQL\u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308b sudo su postgres # \u30e6\u30fc\u30b6\u30fc\u3092\u524a\u9664 dropuser \u30e6\u30fc\u30b6\u30fc\u540d \u5bfe\u8a71\u5f0f\u3067\u524a\u9664\u3059\u308b\u5834\u5408\u306f\u6587\u304c\u5909\u308f\u308b\u3002 # \u5bfe\u8a71\u5f0f\u3092\u7acb\u3061\u4e0a\u3052\u308b $ psql postgres postgres=# DROP USER \u30e6\u30fc\u30b6\u30fc\u30cd\u30fc\u30e0; DROP ROLE \u30e6\u30fc\u30b6\u30fc\u540d\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3053\u3061\u3089\u3002 $ sudo su postgres $ psql postgres=# \\du \\du\u3067\u3069\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u3069\u3093\u306a\u6a29\u9650\u304c\u3042\u308b\u304b\u3082\u78ba\u8a8d\u3067\u304d\u308b\u3002 \u53c2\u8003 PostgreSQL/PostgreSQL\u3067\u30e6\u30fc\u30b6\u3092\u524a\u9664\u3059\u308b\u65b9\u6cd5 - \u8abf\u3079\u308b.DB \"PG::InsufficientPriv\u2026"}