Re: is there a hook by which we can modify input query before postgresql builds raw parse tree

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Rajmohan C <csrajmohan(at)gmail(dot)com>
Cc: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: is there a hook by which we can modify input query before postgresql builds raw parse tree
Date: 2014-05-02 05:06:08
Message-ID: CAB7nPqRxcMDm8fQ6_xpYbqZ7vctiyVRGkjB5gfRyteqCVxdk9A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, May 2, 2014 at 1:37 PM, Rajmohan C <csrajmohan(at)gmail(dot)com> wrote:
> Hi,
>
> I want to know is there a way to use a hook to modify the input query
> before Postgresql parses and builds the parse tree for the query.
Not that I know of. I am not sure that enforcing query rewrite on the
server side is a good idea at this may trap your applications and have
them face unexpected behaviors.

FWIW, a presentation about hooks has been done at PGCon 2012, you can
refer to it as well for your future work:
http://wiki.postgresql.org/images/e/e3/Hooks_in_postgresql.pdf
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2014-05-02 05:16:23 Re: is there a hook by which we can modify input query before postgresql builds raw parse tree
Previous Message Atri Sharma 2014-05-02 04:39:26 Re: is there a hook by which we can modify input query before postgresql builds raw parse tree