| From: | Joao Afonso <joaoaafonso(at)gmail(dot)com> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Questions about Views, Rules and DBLink |
| Date: | 2005-08-01 10:24:44 |
| Message-ID: | ce04e69f0508010324196b2ef6@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Thanks for your help. But still, do you think there could be a way to
alter the dblink_current_query() function so that it could return the
right query? Or should I try to build the query in a function and send
it through dblink instead of dblink_current_query()?
I've also been told that oracle has an auditing service that records
every action the users make, including the queries issued. If pg has
something like that I could use it instead.
On 8/1/05, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Joao Afonso <joaoaafonso(at)gmail(dot)com> writes:
> > So (finally), my question is why does this happen? Using instead on
> > the users_util insert rule shouldn't discard the original query and
> > rewrite it according to the specified on the rule?? Is this a problem
> > of dblink?
>
> I hadn't noticed the dblink_current_query() function before, but now
> that I see it, I consider it a pretty bad idea. It certainly will not
> help you the way you are hoping, because what it returns is the text of
> the interactive command the backend is currently working on --- which
> could be indefinitely far removed from the operation your rule is firing
> for.
>
> regards, tom lane
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Robert Bernier | 2005-08-01 11:28:41 | Re: New MySQL to PostgreSQL Migration Guide |
| Previous Message | Christopher Kings-Lynne | 2005-08-01 05:59:55 | Re: New MySQL to PostgreSQL Migration Guide |