Re: Outstanding patches

From: Alessio Bragadini <alessio(at)albourne(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Outstanding patches
Date: 2001-05-09 07:18:12
Message-ID: 3AF8EF34.F810203B@albourne.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-jdbc

Tom Lane wrote:

> But it's not really tracking the variable; with Ian's proposed
> implementation, after
>
> create table foo(bar int4);
>
> create function fooey(foo.bar%type) ...;
>
> drop table foo;
>
> create table foo(bar int8);
>
> you would still have fooey declared as taking int4 not int8, because
> the type meant by %type is resolved and frozen immediately upon being
> seen.

Ok, this is a more general point: in Oracle (which, as Ian points out,
uses this feature extensively) if you recreate table foo, function fooey
is tagged as 'dirty' and recompiled on the spot next time is used. This
is also true for VIEWs and other objects, so you don't have the problem
we have when a view breaks because you've updated the underlining table.

--
Alessio F. Bragadini alessio(at)albourne(dot)com
APL Financial Services http://village.albourne.com
Nicosia, Cyprus phone: +357-2-755750

"It is more complicated than you think"
-- The Eighth Networking Truth from RFC 1925

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Zeugswetter Andreas SB 2001-05-09 07:20:28 AW: NOCREATETABLE patch (was: Re: Please, help!(about P ostgres))
Previous Message Christopher Kings-Lynne 2001-05-09 07:00:08 Patch to ALTER TABLE docs

Browse pgsql-jdbc by date

  From Date Subject
Next Message Mark Rosa 2001-05-09 08:56:52 Re: JDBC Download.
Previous Message Bruce Momjian 2001-05-09 03:20:21 Re: AGAIN: still no answer ... peter, or anybody knowledgeable, please ....