Re: [HACKERS] Effect of dropping a partitioned table's column over time

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема Re: [HACKERS] Effect of dropping a partitioned table's column over time
Дата
Msg-id CAEepm=3Hg3d7DNVZoo+KRf7V3ge3W1pWCLDdiG47Aum6+AkdzQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] Effect of dropping a partitioned table's column over time  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [HACKERS] Effect of dropping a partitioned table's column over time  (Craig Ringer <craig@2ndquadrant.com>)
Список pgsql-hackers
On Mon, Aug 7, 2017 at 2:20 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Thomas Munro <thomas.munro@enterprisedb.com> writes:
>> Since partitioned tables have no storage themselves, is there
>> any technical reason we couldn't remove a partitioned table's dropped
>> pg_attribute so that its TupleDesc matches partitions created later?
>
> You'd break views referring to the partitioned table, or at least to
> any columns after the dropped one.

I will put a huge sign up next to my desk: "What about the rules?"

> There's been talk of separating column identity (think OID) from column
> logical and physical positions.  If we did that, and had Vars using the
> column identity number while tupdescs were sorted according to physical
> position, then what you're thinking of could be made to work.  But a
> couple of people have attacked that problem and been unable to finish
> it :-(

Hmm, yeah I see.  I have seen that[1] and I hope it comes back.  It
seems like it might be a step on the path towards incremental
materialized views (at least in one proposal) which is why I asked
about it on this list recently[2].

[1] https://www.postgresql.org/message-id/flat/20141209174146.GP1768@alvh.no-ip.org
[2]
https://www.postgresql.org/message-id/flat/CAEepm%3D3ZHh%3Dp0nEEnVbs1Dig_UShPzHUcMNAqvDQUgYgcDo-pA%40mail.gmail.com

-- 
Thomas Munro
http://www.enterprisedb.com



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

Предыдущее
От: Amit Langote
Дата:
Сообщение: Re: [HACKERS] scan on inheritance parent with no children in currentsession
Следующее
От: Tom Lane
Дата:
Сообщение: [HACKERS] FYI: branch for v11 devel is planned for next week