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?

【DB】【postgresql】index 確認、追加、削除(kosekiメモNO2)

Last updated at Posted at 2024-05-01

index確認

select
select indexname,indexdef from pg_indexes where schema.tablename = 'tablename'

index追加

select
create index testix01 on schema.tablename(col01,col02,col03)

index削除

select
drop index schema.testix01

参照リンク
※postgresqlの「pg_indexes」
https://www.postgresql.jp/docs/9.2/view-pg-indexes.html

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?