Skip to content

Instantly share code, notes, and snippets.

View rjyala-godaddy's full-sized avatar
🐢
Slow

Rahul Jyala rjyala-godaddy

🐢
Slow
View GitHub Profile
@rjyala-godaddy
rjyala-godaddy / PostgreSQL_index_naming.rst
Created December 26, 2022 07:35 — forked from popravich/PostgreSQL_index_naming.rst
PostgreSQL index naming convention to remember

The standard names for indexes in PostgreSQL are:

{tablename}_{columnname(s)}_{suffix}

where the suffix is one of the following:

  • pkey for a Primary Key constraint;
  • key for a Unique constraint;
  • excl for an Exclusion constraint;
  • idx for any other kind of index;