Re: effective SELECT from child tables

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: effective SELECT from child tables
Дата
Msg-id 87ek73b1s0.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: effective SELECT from child tables  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> writes:

> Here's another interesting case to think about:
> 
>     ALTER TABLE ADD foo integer DEFAULT 1
>     ...
>     ALTER TABLE ALTER foo SET DEFAULT 2
> 
> You'll have to pay the table-traversal cost on one step or the other.

A good point.

I wonder if this could be solved by recording the xid of the ALTER transaction
along with the default value. I imagine that might get complicated quickly
though.

-- 
greg



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