| From: | KaiGai Kohei <kaigai(at)kaigai(dot)gr(dot)jp> | 
|---|---|
| To: | Stephen Frost <sfrost(at)snowman(dot)net> | 
| Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, KaiGai Kohei <kaigai(at)ak(dot)jp(dot)nec(dot)com>, pgsql-hackers(at)postgresql(dot)org, Markus Wanner <markus(at)bluegap(dot)ch>, Alvaro Herrera <alvherre(at)commandprompt(dot)com> | 
| Subject: | Re: Column-Level Privileges | 
| Date: | 2009-01-21 13:29:40 | 
| Message-ID: | 49772344.1040706@kaigai.gr.jp | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-hackers | 
Stephen Frost wrote:
> * Tom Lane (tgl(at)sss(dot)pgh(dot)pa(dot)us) wrote:
>> On looking closer, though, it's *still* messy and unobvious :-(.
>> There is no single place in the parser where we have the complete
>> multi-level query tree available in a convenient form for this sort of
>> postprocessing.
> 
> That's unfortunate. :/
> 
>> I've thought of a less painful variant of my third option: instead of
>> making a permanent addition to RangeTblEntry, we can have a transient
>> data structure attached to ParseState that lets us find the JoinExpr
>> nodes for already-parsed joins.  I'm going to try that next.
> 
> Sounds reasonable.  I'd be happy to help if there's anything useful I
> can do at this point.
I also think it can be a reasonable approach.
However, as an aside, it will not be a help for SE-PostgreSQL, because
it checks Query tree *after* it passed through the rewriter stage, so
ParseState is already released. :-(
 QueryRewrite()
 -> pgacePostQueryRewrite()
    -> sepgsqlPostQueryRewrite()
      -> walkQueryHelper()
        -> walkVarHelper()
          -> wholeRefJoinWalker()
Yes, it is an optional facility and we assume performance is not first
priority for SE-PostgreSQL users. However, if its duration of life has
been expanded to the tail of rewriter, I would be also happy.
Thanks,
-- 
KaiGai Kohei <kaigai(at)kaigai(dot)gr(dot)jp>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Magnus Hagander | 2009-01-21 13:34:30 | Re: Re: [COMMITTERS] pgsql: Explicitly bind gettext() to the UTF8 locale when in use. | 
| Previous Message | Simon Riggs | 2009-01-21 13:25:42 | Re: rmgr hooks (v2) |