Re: Support for %TYPE in CREATE FUNCTION

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Ian Lance Taylor <ian(at)airs(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Support for %TYPE in CREATE FUNCTION
Date: 2001-05-30 17:14:58
Message-ID: 200105301714.f4UHEw115333@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

> Of course, this is made much easier if there is a pg_depends table
> which accurately records dependencies.

Yes, that was a nifty idea.

> I have a meta-point: the choices to be made here are not all that
> interesting. They do have to be defined. But almost any definition
> is OK. Users are not going to routinely redefine tables with attached
> functions; when they do, they must be prepared to consider the
> consequences. If anybody thinks that different choices should be made
> in this case, that is certainly fine with me.
>
> If you agree with me on the meta-point, then this is just a quibble
> about my original patch (which made choice 1 above). If you disagree
> with me, I'd like to understand why.

I agree that having problems when a table is defined is acceptable. It
is not like someone is _forced_ to use the feature.

So far that is three or four people who like the feature, and I have
only heard one opposed.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-05-30 17:25:16 Re: Support for %TYPE in CREATE FUNCTION
Previous Message Tom Lane 2001-05-30 17:14:48 Re: Proceeding with gettext

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2001-05-30 17:25:16 Re: Support for %TYPE in CREATE FUNCTION
Previous Message Ian Lance Taylor 2001-05-30 17:06:06 Re: Support for %TYPE in CREATE FUNCTION