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 3 years have passed since last update.

PostgreSQLに関するあれこれまとめ

Last updated at Posted at 2020-08-05

postgreSQLわかんないので奮闘記
随時更新するかも

・\zとか\duとかには;いらないけどCREATE ROLEとかの普通の構文にはいる
・ロールだけ見たいなら\zより\duかな
・ユーザーってロールのことなのか?そうっぽい
・MySQLではGRANTでユーザー作成できるけど、psqlではCREATE ROLE→GRANTじゃないとダメっぽ
・テーブルとかスキーマに関しては以下のサイトがわかりやすかった↓
https://www.dbonline.jp/postgresql/schema/index1.html
・スキーマは入れ子にできないディレクトリみたいなもん

・GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA schema_name TO 'role';
を実行したとき、
WARNING: no privileges were granted for "table_name"
がいっぱい出るぞ
解決法は模索中

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?