![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Yesterday, our production database was crashed as soon as we added an invlid entry in the pg_hba.conf file. Immediately, after the SIGHUP it tried to read the pg_hba.conf file and it couldnt validate the IP address and restarted the postgres server, as soon as we change the pg_hba.conf with the right entry everything was back to normal. Attached you will see the postgres log file at the time of the crash. Postgres version we are using is 7.4.2. |
#2
| |||
| |||
|
|
pkalva (AT) deg (DOT) cc writes: Yesterday, our production database was crashed as soon as we added an invlid entry in the pg_hba.conf file. Immediately, after the SIGHUP it tried to read the pg_hba.conf file and it couldnt validate the IP address and restarted the postgres server, as soon as we change the pg_hba.conf with the right entry everything was back to normal. Attached you will see the postgres log file at the time of the crash. Postgres version we are using is 7.4.2. Works fine for me in 7.4.7 ... I get log entries like this: LOG: invalid IP address "1727.0.0.1" in pg_hba.conf file: Unknown server error LOG: invalid entry in pg_hba.conf file at line 56, token "1727.0.0.1" FATAL: missing or erroneous pg_hba.conf file HINT: See server log for details. and after I fix the pg_hba.conf file it lets me in again. I see no crash. regards, tom lane |
#3
| |||
| |||
|
|
do you think this problem is specific to the 7.4.2 version . |
#4
| |||
| |||
|
|
Pallav Kalva <pkalva (AT) deg (DOT) cc> writes: do you think this problem is specific to the 7.4.2 version . You didn't say what platform this is, but it might be related to this 7.4.3 fix: 2004-04-24 16:10 tgl * src/backend/libpq/ip.c (REL7_4_STABLE): Ensure getaddrinfo_all returns null result on failure. In any case, you should be on 7.4.7 on general principles. We don't put out dot-releases just for amusement. regards, tom lane |
#5
| |||
| |||
|
|
I am using 7.4.2 on Redhat 9 Linux 2.4. I know iam on old version, we are actually planning to move to 8.0.1 soon, I just wanted to know if this is bug if so if it is 7.4.2 related . |
![]() |
| Thread Tools | |
| Display Modes | |
| |