Re: varattno remapping
От | Craig Ringer |
---|---|
Тема | Re: varattno remapping |
Дата | |
Msg-id | 52B92E1A.1070509@2ndquadrant.com обсуждение исходный текст |
Ответ на | Re: varattno remapping (Craig Ringer <craig@2ndquadrant.com>) |
Ответы |
Re: varattno remapping
|
Список | pgsql-hackers |
On 12/24/2013 02:35 PM, Craig Ringer wrote: > So the short version: Given the RTE for a simple view with only one base > rel and an attribute number for a col in that view, and assuming that > the view col is a simple reference to a col in the underlying base rel, > is there any sane way to get the attribute number for the corresponding > col on the base rel? So, of course, I find it as soon as I post. map_variable_attnos(...), also in src/backend/rewrite/rewriteManip.c . Just generate the mapping table and go. Sorry for the noise folks. -- Craig Ringer http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services
В списке pgsql-hackers по дате отправления: