Thread: Patch for xlog.c

Patch for xlog.c

From
Ulrich Neumann
Date:
Hello everybody,

If possible please add the following patch to better support NetWare.

best regards

Ulrich Neumann
Novell Worldwide Developer Support

begin 666 xlog.patch
M+2TM(%QP9W-Q;#<R+F]R9UQS<F-<8F%C:V5N9%QA8V-E<W-<=')A;G-A;5QX
M;&]G+F,)36]N($IA;B`Q-"`Q-CHU-3HU."`R,#`R#0HK*RL@7'!G<W%L-S(N
M9&5V7'-R8UQB86-K96YD7&%C8V5S<UQT<F%N<V%M7'AL;V<N8PE-;VX@1F5B
M(#$Q(#`P.C0P.C$P(#(P,#(-"D!`("TQ-#DS+#<@*S$T.3,L-R!`0`T*(`D@
M*B!O=F5R=W)I=&4@86X@97AI<W1I;F<@;&]G9FEL92X@($AO=V5V97(L('1H
M97)E('-H;W5L9&XG="!B92!O;F4L('-O#0H@"2`J(')E;F%M92@I(&ES(&%N
M(&%C8V5P=&%B;&4@<W5B<W1I='5T92!E>&-E<'0@9F]R('1H92!T<G5L>2!P
M87)A;F]I9"X-"B`)("HO#0HM(VEF;F1E9B!?7T)%3U-?7PT**R-I9B`A9&5F
M:6YE9"A?7T)%3U-?7RD@)B8@(61E9FEN960H3E]03$%47TY,32D-"B`):68@
M*&QI;FLH=&UP<&%T:"P@<&%T:"D@/"`P*0T*(`D)96QO9RA35$]0+"`B;&EN
M:R!F<F]M("5S('1O("5S("AI;FET:6%L:7IA=&EO;B!O9B!L;V<@9FEL92`E
M=2P@<V5G;65N="`E=2D@9F%I;&5D.B`E;2(L#0H@"0D)('1M<'!A=&@L('!A
0=&@L(&QO9RP@<V5G*3L-"@``
`
end


Re: Patch for xlog.c

From
Bruce Momjian
Date:
Your patch has been added to the PostgreSQL unapplied patches list at:

    http://candle.pha.pa.us/cgi-bin/pgpatches

I will try to apply it within the next 48 hours.

---------------------------------------------------------------------------


Ulrich Neumann wrote:
> Hello everybody,
>
> If possible please add the following patch to better support NetWare.
>

--
  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, Pennsylvania 19026
--- \pgsql72.org\src\backend\access\transam\xlog.c    Mon Jan 14 16:55:58 2002
+++ \pgsql72.dev\src\backend\access\transam\xlog.c    Mon Feb 11 00:40:10 2002
@@ -1493,7 +1493,7 @@
      * overwrite an existing logfile.  However, there shouldn't be one, so
      * rename() is an acceptable substitute except for the truly paranoid.
      */
-#ifndef __BEOS__
+#if !defined(__BEOS__) && !defined(N_PLAT_NLM)
     if (link(tmppath, path) < 0)
         elog(STOP, "link from %s to %s (initialization of log file %u, segment %u) failed: %m",
              tmppath, path, log, seg);

Re: Patch for xlog.c

From
Bruce Momjian
Date:
Patch applied.  Thanks.

---------------------------------------------------------------------------


Ulrich Neumann wrote:
> Hello everybody,
> 
> If possible please add the following patch to better support NetWare.
> 
> best regards
> 
> Ulrich Neumann
> Novell Worldwide Developer Support
> 
> begin 666 xlog.patch
> M+2TM(%QP9W-Q;#<R+F]R9UQS<F-<8F%C:V5N9%QA8V-E<W-<=')A;G-A;5QX
> M;&]G+F,)36]N($IA;B`Q-"`Q-CHU-3HU."`R,#`R#0HK*RL@7'!G<W%L-S(N
> M9&5V7'-R8UQB86-K96YD7&%C8V5S<UQT<F%N<V%M7'AL;V<N8PE-;VX@1F5B
> M(#$Q(#`P.C0P.C$P(#(P,#(-"D!`("TQ-#DS+#<@*S$T.3,L-R!`0`T*(`D@
> M*B!O=F5R=W)I=&4@86X@97AI<W1I;F<@;&]G9FEL92X@($AO=V5V97(L('1H
> M97)E('-H;W5L9&XG="!B92!O;F4L('-O#0H@"2`J(')E;F%M92@I(&ES(&%N
> M(&%C8V5P=&%B;&4@<W5B<W1I='5T92!E>&-E<'0@9F]R('1H92!T<G5L>2!P
> M87)A;F]I9"X-"B`)("HO#0HM(VEF;F1E9B!?7T)%3U-?7PT**R-I9B`A9&5F
> M:6YE9"A?7T)%3U-?7RD@)B8@(61E9FEN960H3E]03$%47TY,32D-"B`):68@
> M*&QI;FLH=&UP<&%T:"P@<&%T:"D@/"`P*0T*(`D)96QO9RA35$]0+"`B;&EN
> M:R!F<F]M("5S('1O("5S("AI;FET:6%L:7IA=&EO;B!O9B!L;V<@9FEL92`E
> M=2P@<V5G;65N="`E=2D@9F%I;&5D.B`E;2(L#0H@"0D)('1M<'!A=&@L('!A
> 0=&@L(&QO9RP@<V5G*3L-"@``
> `
> end
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
> 

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