0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

postgresのテーブルアクセスが拒否される時

Posted at

テーブルのアクセスが拒否される時はこれを確認しよう

  • 前提知識
    テーブルの保存は、データベースといわれる箱があり、その中にスキーマと呼ばれるグループがある。
    更にスキーマの中にテーブルが保存される。

  • 確認内容

    • テーブルが存在しているか
      \dt
    • テーブルにアクセス権限があるか
      \dp
    • テーブルがあるスキーマがユーザの検索対象か
      SHOW search_path;
      (データベース接続後にコマンド実施)
  • 補足のコマンド

    • テーブル一覧の表示
      \dt
    • データベース一覧の表示
      \l
    • スキーマ一覧の表示
      \dn

この記事の経緯

postgresのテーブルにアクセス出来ず、解決に時間がかかったため、原因を探すヒントを備忘録として書いてます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?