postgres 9.0 crash when bringing up hot standby
am 06.08.2010 15:10:15 von Alanoly Andrews --_000_09B23E7BF70425478C1330D893A722C602FEC019BDMailSVRinve ra_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hello,
OS=20level ==20AIX=205.3=20ML-8
Postgres=20version ==209.0=20beta-4
I'm=20testing=20"hot=20standby"=20using=20"streaming=20WAL=2 0records".=20On=
=20trying=20to=20bring=20up=20the=20hot=20standby,=20I=20see =20the=20follow=
ing=20error=20in=20the=20log:
LOG: database=20system=20was=20interrupted;=20last=20kn own=20up=20at=
=202010-08-05=2014:46:36=20EDT
LOG: entering=20standby=20mode
LOG: restored=20log=20file=20"000000010000000000000007" =20from=20archi=
ve
LOG: redo=20starts=20at=200/7000020
LOG: consistent=20recovery=20state=20reached=20at=200/8 000000
LOG: database=20system=20is=20ready=20to=20accept=20rea d=20only=20conn=
ections
cp:=20/pgarclog/pg1/000000010000000000000008:=20A=20file=20o r=20directory=
=20in=20the=20path=20name=20does=20not=20exist.
LOG: WAL=20receiver=20process=20(PID=201073206)=20was=2 0terminated=20b=
y=20signal=2011
LOG: terminating=20any=20other=20active=20server=20proc esses
There=20is=20a=20core=20dump.=20The=20debugger=20indicates=2 0the=20crash=20=
sequence=20as=20follows:
(dbx)=20where
_alloc_initial_pthread(??)=20at=200x90000000049567c
__pth_init(??)=20at=200x900000000493ba4
uload(??,=20??,=20??,=20??,=20??,=20??,=20??,=20??)=20at=200 x9fffffff0001954
load_64.load(??,=20??,=20??)=20at=200x90000000004686c
loadAndInit()=20at=200x90000000047bd7c
dlopen(??,=20??)=20at=200x90000000011cc4c
internal_load_library(libname ==20"/apps/pg_9.0_b4/lib/p ostgresql/libpq=
walreceiver.so"),=20line=20234=20in=20"dfmgr.c"
load_file(filename ==20"libpqwalreceiver",=20restricted= 20= '\0'),=
=20line=20156=20in=20"dfmgr.c"
WalReceiverMain(),=20line=20248=20in=20"walreceiver.c"
AuxiliaryProcessMain(argc ==202,=20argv ==200x0fffff ffffffa8b8),=20=
line=20428=20in=20"bootstrap.c"
StartChildProcess(type ==20WalReceiverProcess),=20line=2 04405=20in=20"p=
ostmaster.c"
sigusr1_handler(postgres_signal_arg ==2030),=20line=2042 27=20in=20"post=
master.c"
__fd_select(??,=20??,=20??,=20??,=20??)=20at=200x90000000011 805c
postmaster.select(__fds ==205,=20__readlist ==200x0f ffffffffffd0a8,=
=20__writelist ==20(nil),=20__exceptlist ==20(nil),= 20__timeout=20=
= 0x0ffffffffffff0c0),=20line=20229=20in=20"time.h"
unnamed=20block=20in=20ServerLoop(),=20line=201391=20in=20"p ostmaster.c"
unnamed=20block=20in=20ServerLoop(),=20line=201391=20in=20"p ostmaster.c"
ServerLoop(),=20line=201391=20in=20"postmaster.c"
PostmasterMain(argc ==201,=20argv ==200x00000001102a a4b0),=20line=
=201092=20in=20"postmaster.c"
main(argc ==201,=20argv ==200x00000001102aa4b0),=20l ine=20188=20in=
=20"main.c"
Any=20pointers=20on=20how=20to=20resolve=20the=20issue=20wil l=20be=20much=
=20appreciated.
Thanks.
Alanoly=20Andrews=20(alanolya@invera.com
Senior=20Software=20Engineer
Invera=20Inc.
Montreal,=20QC
****************************************************
This=20e-mail=20may=20be=20privileged=20and/or=20confidentia l,=20and=20the=
=20sender=20does=20not=20waive=20any=20related=20rights=20an d=20obligations=
..=20Any=20distribution,=20use=20or=20copying=20of=20this=20 e-mail=20or=20th=
e=20information=20it=20contains=20by=20other=20than=20an=20i ntended=20recip=
ient=20is=20unauthorized.=20If=20you=20received=20this=20e-m ail=20in=20erro=
r,=20please=20advise=20me=20(by=20return=20e-mail=20or=20oth erwise)=20immed=
iately.
=20
Ce=20courriel=20est=20confidentiel=20et=20prot=E9g=E9.=20L'e xp=E9diteur=20n=
e=20renonce=20pas=20aux=20droits=20et=20obligations=20qui=20 s'y=20rapporten=
t. Toute=20diffusion,=20utilisation=20ou=20copie=20de=20 ce=20message=20=
ou=20des=20renseignements=20qu'il=20contient=20par=20une=20p ersonne=20autre=
=20que=20le=20(les)=20destinataire(s)=20d=E9sign=E9(s)=20est =20interdite.=
=20Si=20vous=20recevez=20ce=20courriel=20par=20erreur,=20veu illez=20m'en=20=
aviser=20imm=E9diatement,=20par=20retour=20de=20courriel=20o u=20par=20un=20=
autre=20moyen.
****************************************************
--_000_09B23E7BF70425478C1330D893A722C602FEC019BDMailSVRinve ra_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
word"=20xmlns:m=3D"http://schemas.microsoft.com/office/2004/ 12/omml"=20xmln=
s=3D"http://www.w3.org/TR/REC-html40">
ascii">
edium)">
font-family:
"Garamond","serif"'>Hello,
font-family:
"Garamond","serif";color:black'>
font-family:
"Garamond","serif"'>OS=20level ==20AIX=205.3=20ML-8
b>
font-family:
"Garamond","serif"'>Postgres=20version ==209.0=20beta-4
t-family:"Times=20New=20Roman","serif";
color:black'>
font-family:
"Garamond","serif"'>I’m=20testing=20“hot=20standby”=20usi=
ng=20“streaming=20WAL=20records”.=20On
trying=20to=20bring=20up=20the=20hot=20standb=
y,=20I=20see=20the
following=20error=20in=20the=20log:
font-family:
"Garamond","serif"'>
t-family:"Courier=20New"'>LOG:
database=20system=20was=20interrupted;=20last=20known=20up=2 0at=202010-08-0=
5=2014:46:36=20EDT
style=3D'color:black;background:black;mso-highlight:black'>
t-family:"Courier=20New"'>LOG:
entering=20standby=20mode
highlight:
black'>
t-family:"Courier=20New"'>LOG:
restored=20log=20file=20"000000010000000000000007"=20from=20archi=
ve
style=3D'color:black;background:black;mso-highlight:black'>
t-family:"Courier=20New"'>LOG:
redo=20starts=20at=200/7000020
;mso-highlight:
black'>
t-family:"Courier=20New"'>LOG:
consistent=20recovery=20state=20reached=20at=200/8000000
lor:black;
background:black;mso-highlight:black'>
t-family:"Courier=20New"'>LOG:
database=20system=20is=20ready=20to=20accept=20read=20only=2 0connections
black;background:black;mso-highlight:black'>
t-family:"Courier=20New"'>cp:
/pgarclog/pg1/000000010000000000000008:=20A=20file=20or=20di rectory=20in=20=
the=20path=20name
does=20not=20exist.
ght:black'>
t-family:"Courier=20New"'>LOG:
WAL=20receiver=20process=20(PID=201073206)=20was=20terminate d=20by=20signal=
=2011
style=3D'color:black;background:black;mso-highlight:black'>
t-family:"Courier=20New"'>LOG:
terminating=20any=20other=20active=20server=20processes
or:black;
background:black;mso-highlight:black'>
font-family:
"Garamond","serif"'>
font-family:
"Garamond","serif"'>There=20is=20a=20core=20dump.=20The=20de bugger=20indica=
tes=20the=20crash=20sequence
as=20follows:
font-family:
"Garamond","serif"'>
t-family:"Courier=20New"'>(dbx)
where
t-family:"Courier=20New"'>_alloc_initial_pthread(??)
at=200x90000000049567c
hlight:
black'>
t-family:"Courier=20New"'>__pth_init(??)
at=200x900000000493ba4
hlight:
black'>
t-family:"Courier=20New"'>uload(??,
??,=20??,=20??,=20??,=20??,=20??,=20??)=20at=200x9fffffff000 1954
le=3D'color:black;
background:black;mso-highlight:black'>
t-family:"Courier=20New"'>load_64.load(??,
??,=20??)=20at=200x90000000004686c
lack;
mso-highlight:black'>
t-family:"Courier=20New"'>loadAndInit()
at=200x90000000047bd7c
hlight:
black'>
t-family:"Courier=20New"'>dlopen(??,
??)=20at=200x90000000011cc4c
so-highlight:
black'>
t-family:"Courier=20New"'>internal_load_library(libname
= "/apps/pg_9.0_b4/lib/postgresql/libpqwalreceiver.so"),=20li=
ne=20234=20in
"dfmgr.c"
ght:
black'>
t-family:"Courier=20New"'>load_file(filename
= "libpqwalreceiver",=20restricted ==20'\0'),=20line=2015=
6=20in
"dfmgr.c"
ght:
black'>
t-family:"Courier=20New"'>WalReceiverMain(),
line=20248=20in=20"walreceiver.c"
kground:black;
mso-highlight:black'>
t-family:"Courier=20New"'>AuxiliaryProcessMain(argc
= 2,=20argv ==200x0fffffffffffa8b8),=20line=20428=20 in=20 "boot=
strap.c"
style=3D'color:black;background:black;mso-highlight:black'>
t-family:"Courier=20New"'>StartChildProcess(type
= WalReceiverProcess),=20line=204405=20in=20"postmaster.c "
style=3D'color:black;background:black;mso-highlight:black'>
t-family:"Courier=20New"'>sigusr1_handler(postgres_signal_ar g
= 30),=20line=204227=20in=20"postmaster.c"
lor:black;
background:black;mso-highlight:black'>
t-family:"Courier=20New"'>__fd_select(??,
??,=20??,=20??,=20??)=20at=200x90000000011805c
background:black;
mso-highlight:black'>
t-family:"Courier=20New"'>postmaster.select(__fds
= 5,=20__readlist ==200x0fffffffffffd0a8,=20__writel ist ==20(ni=
l),=20__exceptlist =
(nil),=20__timeout ==200x0ffffffffffff0c0),=20line=20229 =20in=20 "t=
ime.h"
style=3D'color:black;background:black;mso-highlight:black'>
t-family:"Courier=20New"'>unnamed
block=20in=20ServerLoop(),=20line=201391=20in=20"postmaster.c "
style=3D'color:black;background:black;mso-highlight:black'>
t-family:"Courier=20New"'>unnamed
block=20in=20ServerLoop(),=20line=201391=20in=20"postmaster.c "
style=3D'color:black;background:black;mso-highlight:black'>
t-family:"Courier=20New"'>ServerLoop(),
line=201391=20in=20"postmaster.c"
kground:black;
mso-highlight:black'>
t-family:"Courier=20New"'>PostmasterMain(argc
= 1,=20argv ==200x00000001102aa4b0),=20line=201092=2 0in=20 "pos=
tmaster.c"
style=3D'color:black;background:black;mso-highlight:black'>
t-family:"Courier=20New"'>main(argc
= 1,=20argv ==200x00000001102aa4b0),=20line=20188=20 in=20 "main=
..c"
style=3D'color:black;background:black;mso-highlight:black'>
font-family:
"Garamond","serif"'>
font-family:
"Garamond","serif"'>
font-family:
"Garamond","serif"'>Any=20pointers=20on=20how=20to=20resolve =20the=20issue=
=20will=20be=20much
appreciated.
font-family:
"Garamond","serif"'>
font-family:
"Garamond","serif"'>Thanks.
font-family:
"Garamond","serif"'>
font-family:
"Garamond","serif"'>Alanoly=20Andrews=20(
acom">alanolya@invera.com)
font-family:
"Garamond","serif"'>Senior=20Software=20Engineer
font-family:
"Garamond","serif"'>Invera=20Inc.
font-family:
"Garamond","serif"'>Montreal,=20QC
This=20e-mail=20may=20be=20privileged=20and/or=20confidentia l,=20and=20the=
=20sender=20does=20not=20waive=20any=20related=20rights=20an d=20obligations=
..=20Any=20distribution,=20use=20or=20copying=20of=20this=20 e-mail=20or=20th=
e=20information=20it=20contains=20by=20other=20than=20an=20i ntended=20recip=
ient=20is=20unauthorized.=20If=20you=20received=20this=20e-m ail=20in=20erro=
r,=20please=20advise=20me=20(by=20return=20e-mail=20or=20oth erwise)=20immed=
iately.
=20
Ce=20courriel=20est=20confidentiel=20et=20prot=E9g=E9.=20L'e xp=E9diteur=20n=
e=20renonce=20pas=20aux=20droits=20et=20obligations=20qui=20 s'y=20rapporten=
t. Toute=20diffusion,=20utilisation=20ou=20copie=20de=20 ce=20message=20=
ou=20des=20renseignements=20qu'il=20contient=20par=20une=20p ersonne=20autre=
=20que=20le=20(les)=20destinataire(s)=20d=E9sign=E9(s)=20est =20interdite.=
=20Si=20vous=20recevez=20ce=20courriel=20par=20erreur,=20veu illez=20m'en=20=
aviser=20imm=E9diatement,=20par=20retour=20de=20courriel=20o u=20par=20un=20=
autre=20moyen.
Mail=20sent=20via=20the=20Abaca=
=20EPG
--_000_09B23E7BF70425478C1330D893A722C602FEC019BDMailSVRinve ra_--