Thread: Re: [HACKERS] Problem on AIX with current
> > Only problem on AIX is, that the argv[0] stuff does not work anymore > > (I think since we don't exec() anymore), which is rather annoying. > > Hmm, perhaps we are selecting the wrong PS_STRINGS method for AIX? > Please look at src/backend/utils/misc/ps_status.c and see if one of > the other methods will work on AIX. Yes, I see. Quite silly that I did not look earlier. The compiler does not define _AIX4 or _AIX3, no idea who thought that. It only defines _AIX, _AIX32, _AIX41 and _AIX43. I am quite sure that all AIX Versions accept the CLOBBER method, thus I ask you to apply the following patch, to make it work. Andreas
Attachment
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. > > > > Only problem on AIX is, that the argv[0] stuff does not work anymore > > > (I think since we don't exec() anymore), which is rather annoying. > > > > Hmm, perhaps we are selecting the wrong PS_STRINGS method for AIX? > > Please look at src/backend/utils/misc/ps_status.c and see if one of > > the other methods will work on AIX. > > Yes, I see. Quite silly that I did not look earlier. > The compiler does not define _AIX4 or _AIX3, no idea who thought that. > It only defines _AIX, _AIX32, _AIX41 and _AIX43. > > I am quite sure that all AIX Versions accept the CLOBBER method, > thus I ask you to apply the following patch, to make it work. > > Andreas Content-Description: ps_status.patch [ Attachment, skipping... ] > > ---------------------------(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, Pennsylvania 19026
> > > Only problem on AIX is, that the argv[0] stuff does not work anymore > > > (I think since we don't exec() anymore), which is rather annoying. > > > > Hmm, perhaps we are selecting the wrong PS_STRINGS method for AIX? > > Please look at src/backend/utils/misc/ps_status.c and see if one of > > the other methods will work on AIX. > > Yes, I see. Quite silly that I did not look earlier. > The compiler does not define _AIX4 or _AIX3, no idea who thought that. > It only defines _AIX, _AIX32, _AIX41 and _AIX43. > > I am quite sure that all AIX Versions accept the CLOBBER method, > thus I ask you to apply the following patch, to make it work. CLOBBER does not work with AIX5L, nor CHANGE_ARGV. (SETPROCTITLE, PSTAT and PS_STRINGS can not be used since AIX5L does not have appropreate header files). -- Tatsuo Ishii
Patch rejected, please resubmit: CLOBBER does not work with AIX5L, nor CHANGE_ARGV. (SETPROCTITLE, PSTAT and PS_STRINGS can not be used since AIX5L does not have appropreate header files). -- Tatsuo Ishii > > > > Only problem on AIX is, that the argv[0] stuff does not work anymore > > > (I think since we don't exec() anymore), which is rather annoying. > > > > Hmm, perhaps we are selecting the wrong PS_STRINGS method for AIX? > > Please look at src/backend/utils/misc/ps_status.c and see if one of > > the other methods will work on AIX. > > Yes, I see. Quite silly that I did not look earlier. > The compiler does not define _AIX4 or _AIX3, no idea who thought that. > It only defines _AIX, _AIX32, _AIX41 and _AIX43. > > I am quite sure that all AIX Versions accept the CLOBBER method, > thus I ask you to apply the following patch, to make it work. > > Andreas Content-Description: ps_status.patch [ Attachment, skipping... ] > > ---------------------------(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, Pennsylvania 19026