Re: SELECT triggers - Table Partitioning

Поиск
Список
Период
Сортировка
От Yogesh Sharma
Тема Re: SELECT triggers - Table Partitioning
Дата
Msg-id 4CCF9D04.1030600@catprosystems.com
обсуждение исходный текст
Ответ на SELECT triggers - Table Partitioning  (Majid Azimi <majid.merkava@gmail.com>)
Список pgsql-novice
On 11/01/2010 02:33 PM, Majid Azimi wrote:
> Hi guys.
>
> In the documentation for triggers there is a sentence that says "you
> can't create select triggers". could someone explain why?
> When we use Table Partitioning how can we redirect SELECT queries to
> specific tables. If we don't have SELECT triggers then it will
> search all tables inherited from main table thus there is no
> performance optimization in SELECT queries.
> Is there any solution?
>
Way partition works is that you add a constraint on table and insert
data directly or via a trigger redirect it inherited tables.

When you query you use proper where clause so that if will hit
minimum tables based on "constraint" that was added earlier. This is
done via constraint exclusion.

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

Предыдущее
От: Majid Azimi
Дата:
Сообщение: SELECT triggers - Table Partitioning
Следующее
От: Joe Carr
Дата:
Сообщение: How to mark a transaction as SERIALIZABLE?