Re: Can we add syntax for references auto create index or not.

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Can we add syntax for references auto create index or not.
Дата
Msg-id CAKFQuwatm5D-d2eo2ZkD49k2eg3bAnEs_C6vNuqmWnzfSOO5Qg@mail.gmail.com
обсуждение исходный текст
Ответ на Can we add syntax for references auto create index or not.  (digoal zhou <digoal.zhou@gmail.com>)
Ответы Re: Can we add syntax for references auto create index or not.  (digoal zhou <digoal.zhou@gmail.com>)
Список pgsql-hackers
On Tue, May 26, 2015 at 7:03 PM, digoal zhou <digoal.zhou@gmail.com> wrote:
When we create table, some column use foreign key references.
Now PostgreSQL don't create index for the FK, and there is no problem.
But when some body need the index to speed up the query within these APP, they need to add the index manual one-by-one when has many tables.
If we can add syntax for auto create index for FK by user's choose, and default not create?

​I presume you mean to modify the CREATE TABLE statement.​

​How does this help solve the problem "when some body need the index to speed up the query"?

My first impression is that I like the idea.  The fact that it is not supported by the SQL standard is a drawback  Do any other vendors do this?

David J.​

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

Предыдущее
От: digoal zhou
Дата:
Сообщение: Can we add syntax for references auto create index or not.
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_upgrade resets timeline to 1