-
-
Save pleshevskiy/02d053c9286df96450b5b6f54298f0d3 to your computer and use it in GitHub Desktop.
Revisions
-
popravich revised this gist
Oct 15, 2015 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,4 +15,6 @@ Standard suffix for sequences is ``seq`` for all sequences Found `here`_ .. _here: http://stackoverflow.com/questions/4107915/postgresql-default-constraint-names/4108266#4108266 -
popravich revised this gist
Oct 15, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,4 +15,4 @@ Standard suffix for sequences is ``seq`` for all sequences Found `here<http://stackoverflow.com/questions/4107915/postgresql-default-constraint-names/4108266#4108266>`_ -
popravich revised this gist
Oct 15, 2015 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,5 +15,4 @@ Standard suffix for sequences is ``seq`` for all sequences Found here -- http://stackoverflow.com/questions/4107915/postgresql-default-constraint-names/4108266#4108266 -
popravich created this gist
Oct 15, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ 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; * ``fkey`` for a Foreign key; * ``check`` for a Check constraint; Standard suffix for sequences is ``seq`` for all sequences See http://stackoverflow.com/questions/4107915/postgresql-default-constraint-names/4108266#4108266 for naming convention.