Rename An Index in Postgresql
Rename an Index
NOTE: This has similar syntax for renaming primary key. The only difference noted is that for primary key, the suffix is always _pkey
. In index, it's either idxNN
or idexNN
(where NN is a nunber, e.g. '01')