Re: Extension to rewrite queries before execution - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Extension to rewrite queries before execution
Date
Msg-id 55CE1306.6040905@aklaver.com
Whole thread Raw
In response to Re: Extension to rewrite queries before execution  (Jeff Janes <jeff.janes@gmail.com>)
List pgsql-general
On 08/14/2015 08:56 AM, Jeff Janes wrote:
> On Thu, Aug 13, 2015 at 2:02 PM, Adrian Klaver
> <adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>> wrote:
>
>     On 08/13/2015 12:49 PM, Jeff Janes wrote:
>
>         I am looking for an extension or a technique that will allow me to
>         intercept a query by the exact query text, and replace that
>         query with a
>         different one.
>
>
>     What is sending the query?
>
>     In other words what library is the app using to communicate with the
>     Postgres server?
>
>
> I believe it is some ancient version of Hibernate.
> Cheers,

So JDBC.

Don't know how much control you have over the setup, but this looks
interesting:

https://github.com/ttddyy/datasource-proxy

>
> Jeff


--
Adrian Klaver
adrian.klaver@aklaver.com


pgsql-general by date:

Previous
From: Jeff Janes
Date:
Subject: Re: Extension to rewrite queries before execution
Next
From: Melvin Davidson
Date:
Subject: Re: Extension to rewrite queries before execution