We have our long-used internal db naming conventions. For example: suffix for indexes is "_ix", for foreign key - "_fk".
These conventions are conflicting with default postgresql naming conventions: "_idx" for index and "_fkey" for foreign key.
For example. If i create index and don't define index name explicit like this CREATE INDEX ON a (id);
then i'll get such index name: a_id_idx. But according to our conventions, which are used not only for postgresql, there must be a_id_ix.
The best way would be to change autogenerated naming pattern to match our conventions. Seems it should be simple but i can't find how it can be done.
Any solutions?