From: | Vlad <marchenko(at)gmail(dot)com> |
---|---|
To: | Neil Conway <neilc(at)samurai(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org, dbdpg-general(at)gborg(dot)postgresql(dot)org |
Subject: | Re: 'prepare' is not quite schema-safe |
Date: | 2005-05-02 04:51:19 |
Message-ID: | cd70c68105050121512f18fc6b@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
yeah, I agree.
perhaps a more correct solution would be to adjust DBD::Pg to detect
changes of active schema and store instances of server side prepared
queries tieing them up with query + current schema, not only a query
as it's now (as I understand)...
On 5/2/05, Neil Conway <neilc(at)samurai(dot)com> wrote:
> Tom Lane wrote:
> > That's what it is supposed to do. It would hardly be possible to
> > "prepare" a query at all if we had to wait till EXECUTE to find out
> > which tables it was supposed to use.
>
> An alternative would be to flush dependent plans when the schema search
> path is changed. In effect this would mean flushing *all* prepared plans
> whenever the search path changes: we could perhaps keep plans that only
> contain explicit namespace references, but that seems fragile.
>
> Flushing all plans might well be a cure that is worth than the disease,
> at least for a lot of users.
>
> -Neil
--
Vlad
From | Date | Subject | |
---|---|---|---|
Next Message | Vlad | 2005-05-02 05:05:45 | Re: 'prepare' is not quite schema-safe |
Previous Message | Tom Lane | 2005-05-02 04:49:47 | Re: 'prepare' is not quite schema-safe |