Re: Prelim specs for parser hooks for plpgsql - Mailing list pgsql-hackers

From Itagaki Takahiro
Subject Re: Prelim specs for parser hooks for plpgsql
Date
Msg-id 20091022104226.2F3E.52131E4D@oss.ntt.co.jp
Whole thread Raw
In response to Prelim specs for parser hooks for plpgsql  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Prelim specs for parser hooks for plpgsql  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> wrote:

> 3. The pre-transform hook would have a signature like
>     Node *hook(ParseState *pstate, ColumnRef *cref)
> 
> 4. The post-transform hook would have a signature like
>     Node *hook(ParseState *pstate, ColumnRef *cref, Node *var)

Are there any relationships between the hooks and
Function Call Hook/parser hook submitted by Pavel-san?
https://commitfest.postgresql.org/action/patch_view?id=160

If we can also use them in normal SQL parsing, they are very useful
to implement SYSDATE global variable for porting from Oracle.

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center




pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Controlling changes in plpgsql variable resolution
Next
From: Pavel Stehule
Date:
Subject: Re: Controlling changes in plpgsql variable resolution