Re: Bug in ALTER COLUMN/TYPE

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Rod Taylor <rbt(at)sitesell(dot)com>
Cc: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Bug in ALTER COLUMN/TYPE
Date: 2004-08-06 15:24:08
Message-ID: 200408061524.i76FO8904636@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Rod Taylor wrote:
> On Tue, 2004-08-03 at 23:36, Christopher Kings-Lynne wrote:
> > I think we need to deny changing column types if a function is using the
> > table type as a return set.
> >
> > test=# create table test (a int4);
> > CREATE TABLE
> > test=# create function test () returns setof test as 'select 1' language
> > sql;
>
> What we really need is dependencies within the function body and the
> ability to clear the function cache (recompile).

I notice we didn't have this on the TODO --- added:

* Track dependencies in function bodies and recompile/invalidate

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Marc G. Fournier 2004-08-06 15:29:00 Re: Open items
Previous Message Bruce Momjian 2004-08-06 15:12:29 Re: Open items