From: | "Marko Kreen" <markokr(at)gmail(dot)com> |
---|---|
To: | "Florian Pflug" <fgp(dot)phlo(dot)org(at)gmail(dot)com> |
Cc: | "Merlin Moncure" <mmoncure(at)gmail(dot)com>, "Martin Pihlak" <martin(dot)pihlak(at)gmail(dot)com>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com>, "Pg Hackers" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: plan invalidation vs stored procedures |
Date: | 2008-08-06 19:36:34 |
Message-ID: | e51f66da0808061236s51b33a6em60f046c3f76901a8@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 8/6/08, Florian Pflug <fgp(dot)phlo(dot)org(at)gmail(dot)com> wrote:
> Merlin Moncure wrote:
> > you missed the point...if your return type is a composite type that is
> > backed by the table (CREATE TABLE, not CREATE TYPE), then you can
> > 'alter' the type by altering the table. This can be done without full
> > drop recreate of the function.
>
> Which - at least IMHO - clearly shows that we ought to support
> ALTER TYPE for composite types ;-)
>
> Is there anything fundamental standing in the way of that, or is it just
> that nobody yet cared enough about this?
Yes, that would be really good idea. Although as I mentioned in previous
email, even for tables it works by accident, thus we need some invalidation
mechanism for both tables and types in PLs.
And then maybe even rettype (OUT param) change with CREATE OR REPLACE?
--
marko
From | Date | Subject | |
---|---|---|---|
Next Message | Dimitri Fontaine | 2008-08-06 19:52:26 | Re: plan invalidation vs stored procedures |
Previous Message | Florian Pflug | 2008-08-06 19:29:37 | Re: plan invalidation vs stored procedures |