Re: Table and Field namestyle best practices?

Поиск
Список
Период
Сортировка
От Ron Mayer
Тема Re: Table and Field namestyle best practices?
Дата
Msg-id 45523208.1060004@cheapcomplexdevices.com
обсуждение исходный текст
Ответ на Re: Table and Field namestyle best practices?  ("Merlin Moncure" <mmoncure@gmail.com>)
Список pgsql-general
Merlin Moncure wrote:
> looks much better than OrgID. I suggest not prefixing tables with
> 'tbl', but idx_ for indexes and fk_ for foreign keys is ok.

I've recently gotten into the habit of naming my indexes after
exactly what they index.   For example:
  create index "foo(x,y,z)" on foo(x,y,z);
and
  CREATE INDEX "tbl using gist(text_search_vec)" on tbl using gist(text_search_vec);

It's just as obvious as prefixing them with "idx_" and makes
EXPLAIN output a bit quicker for me to understand.

В списке pgsql-general по дате отправления:

Предыдущее
От: "Shoaib Mir"
Дата:
Сообщение: Re: 8.1.2 postmaster died
Следующее
От: Tom Lane
Дата:
Сообщение: Re: killing autovac