Re: Imperfect solutions - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Imperfect solutions
Date
Msg-id 200106010445.f514jjb26575@candle.pha.pa.us
Whole thread Raw
In response to Re: Imperfect solutions  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> > I think there are a few rules we can use to decide how to deal with
> > imperfect solutions:
> 
> You forgot
> 
> * will the fix institutionalize user-visible behavior that will in the
>   long run be considered the wrong thing?
> 
> * will the fix contort new code that is written in the same vicinity,
>   thereby making it harder and harder to replace as time goes on?
> 
> The first of these is the core of my concern about %TYPE.

I was thinking about this.  Seems if we want to emulate Oracle, we have
to make %TYPE visible the way it is implemented in the patch.  We can
make it track table changes or not, but it doesn't seem we have much
latitude in how we make it visible to users.

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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: extra syntax on INSERT
Next
From: Pascal Scheffers
Date:
Subject: Re: Support for %TYPE in CREATE FUNCTION