Re: [HACKERS] regproc fix - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] regproc fix
Date
Msg-id 199810021500.LAA05915@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] regproc fix  ("Thomas G. Lockhart" <lockhart@alumni.caltech.edu>)
List pgsql-hackers
> > One remaining problem is that you have to supply the oid in quotes,
> > because regproc has to get a string, not an int.  Perhaps we need
> > another regprocin that allows int4 or char*, but I don't think you can
> > allow two input functions for a type.
> >
> > Perhaps we can just leave it.  We also output the proname, even if
> > they used the oid as input.
>
> The int4 vs. string issue would be easily solved by having a routine
> regproc(int4), which the new type coersion stuff would use
> automatically.

I started coding it, but realized that things like CREATE FUNCTION will
still be looking for a string for the input function, so we would have
to change those too.  Does not seem worth the confusion.

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


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] regproc fix
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] spinlock code for ns32k (again)