Re: SunOS patch for memcmp()

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Cc: lockhart(at)fourpalms(dot)org, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>, peter_e(at)gmx(dot)net
Subject: Re: SunOS patch for memcmp()
Date: 2001-12-20 21:31:45
Message-ID: 200112202131.fBKLVjW22925@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

> > > > > OK, what do people want with the memcmp() fix? Tatsuo and I say apply,
> > > > > Tom is yes, or was,
> > > > Still is. I don't want to gin up a strtol fix from scratch at this
> > > > late date in our cycle, but I think that the memcmp fix is safe.
> > > OK, good. I will put the strtol on my list for 7.3. The memcmp is much
> > > more significant. Overflow is minor for most uses.
> >
> > Right. I'll plop SunOS back into the list of supported platforms for
> > this release. Thanks for the work Tatsuo and Bruce!
>
> OK, I have four votes for the patch, and one against. I will apply it
> now. We can consider SunOS supported. There is the the problem that
> overflow is not detected by strtol but that is not a critical feature:
>
> INSERT INTO INT4_TBL(f1) VALUES ('1000000000000');
> - ERROR: pg_atoi: error reading "1000000000000": Numerical result out of range
>
> I will try to get that fixed for 7.3.

Actually, here is a fix for that too. Patch attached but not applied.
I merely enabled our existing strtol.c for SunOS. Peter, if you would
prefer memcmp.c to be handled the same way, I can do that too, with no
configure test at all, merely forcing use on SunOS.

--
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

Attachment Content-Type Size
unknown_filename text/plain 509 bytes

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2001-12-20 21:35:42 Re: SunOS patch for memcmp()
Previous Message Bruce Momjian 2001-12-20 21:21:25 Re: SunOS patch for memcmp()