Re: logical column ordering
От | Andres Freund |
---|---|
Тема | Re: logical column ordering |
Дата | |
Msg-id | 20150312140751.GB20199@awork2.anarazel.de обсуждение исходный текст |
Ответ на | Re: logical column ordering (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: logical column ordering
|
Список | pgsql-hackers |
Hi, On 2015-03-11 22:16:52 -0400, Tom Lane wrote: > I agree though that it's worth considering defining pg_attribute.attnum as > the logical column position so as to minimize the effects on client-side > code. I actually wonder if it'd not make more sense to define it as the physical column number. That'd reduce the invasiveness and risk of the patch considerably. It means that most existing code doesn't have to be changed and can just continue to refer to attnum like today. There's much less risk of it being wrongly used to refer to the physical offset instead of creation order. Queries against attnum would still give a somewhat sane response. It would make some ALTER TABLE commands a bit more complex if we want to allow reordering the physical order. But that seems like a much more localized complexity than previous patches in this thread (although I've not looked at the last version). Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services
В списке pgsql-hackers по дате отправления: