SunOS4 port - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject SunOS4 port
Date
Msg-id 20011205114916Z.t-ishii@sra.co.jp
Whole thread Raw
Responses Re: SunOS4 port  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: SunOS4 port  (Karel Zak <zakkr@zf.jcu.cz>)
List pgsql-hackers
So far I think I have done the SunOS4 port except the parallel
regression test. Unfortunately the machine is in production and I
could not increase the shmem parameters. Instead I have done the
serial test and got 4 errors (see attached regression.diffs). Also I
noticed that the test script uses diff -C3 which is not available on
all platforms.

BTW, this effort might be the last one since my company would give up
to maintain SunOS4 machines in the near future.

Karel, Could you check my modifications to formatting.c?

RCS file: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v
retrieving revision 1.45
diff -c -r1.45 formatting.c
*** formatting.c    2001/11/19 09:05:01    1.45
--- formatting.c    2001/12/05 02:04:25
***************
*** 4140,4146 ****                         Np->inout_p += strlen(Np->inout_p) - 1;                     }
    else
 
!                         Np->inout_p += sprintf(Np->inout_p, "%15s", Np->number_p) - 1;                     break;
            case NUM_rn:
 
--- 4140,4149 ----                         Np->inout_p += strlen(Np->inout_p) - 1;                     }
    else
 
!                     {
!                         sprintf(Np->inout_p, "%15s", Np->number_p);
!                         Np->inout_p += strlen(Np->inout_p) - 1;
!                     }                     break;                  case NUM_rn:
***************
*** 4150,4156 ****                         Np->inout_p += strlen(Np->inout_p) - 1;                     }
    else
 
!                         Np->inout_p += sprintf(Np->inout_p, "%15s", str_tolower(Np->number_p)) - 1;
 break;                  case NUM_th:
 
--- 4153,4162 ----                         Np->inout_p += strlen(Np->inout_p) - 1;                     }
    else
 
!                     {
!                         sprintf(Np->inout_p, "%15s", str_tolower(Np->number_p));
!                         Np->inout_p += strlen(Np->inout_p) - 1;
!                     }                     break;                  case NUM_th:
***************
*** 4664,4670 ****         }          orgnum = (char *) palloc(MAXFLOATWIDTH + 1);
!         len = sprintf(orgnum, "%.0f", fabs(val));         if (Num.pre > len)             plen = Num.pre - len;
if (len >= FLT_DIG)
 
--- 4670,4677 ----         }          orgnum = (char *) palloc(MAXFLOATWIDTH + 1);
!         sprintf(orgnum, "%.0f", fabs(val));
!         len = strlen(orgnum);         if (Num.pre > len)             plen = Num.pre - len;         if (len >=
FLT_DIG)

pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: Undocumented feature costs a lot of performance in
Next
From: Tom Lane
Date:
Subject: Re: SunOS4 port