From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Outstanding patches |
Date: | 2001-05-08 21:55:54 |
Message-ID: | 200105082155.f48LttZ06648@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-jdbc |
> I presume that Ian is not thinking about such a scenario, but only about
> using %type in a schema file that he will reload into a freshly created
> database each time he edits it. That avoids the issue of whether %type
> declarations can or should track changes on the fly, but I think he's
> still going to run into problems with function naming: do
> fooey(foo.bar%type) and fooey(foo.baz%type) conflict, or not? Maybe
> today the schema works and tomorrow you get an error.
>
> Basically I think that this feature does not coexist well with function
> overloading, and that it's likely to create as much or more grief as it
> avoids.
But don't we already have problems with changing functions that use
tables or does this open a new type of problem? Seems if you define a
function to be based on a column, and the column changes, the person
should expect errors.
If we define things as %TYPE in plpgsql, do we handle cases when the
column type changes?
--
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
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-05-08 22:08:07 | Re: Outstanding patches |
Previous Message | Tom Lane | 2001-05-08 21:49:16 | Re: Outstanding patches |
From | Date | Subject | |
---|---|---|---|
Next Message | Jeff Duffy | 2001-05-08 22:05:16 | Re: Why?? executeQuery() & exception: "No results were returnedby the query." |
Previous Message | Tom Lane | 2001-05-08 21:49:16 | Re: Outstanding patches |