Re: [Win2k - Version 8.0.2] - StartupMessage Format Question
От | Tom Pfeifer |
---|---|
Тема | Re: [Win2k - Version 8.0.2] - StartupMessage Format Question |
Дата | |
Msg-id | 20050515020340.M3348@tela.com обсуждение исходный текст |
Ответ на | Re: [Win2k - Version 8.0.2] - StartupMessage Format Question (John DeSoi <desoi@pgedit.com>) |
Ответы |
Re: [Win2k - Version 8.0.2] - StartupMessage Format Question
Fw: Re: [Win2k - Version 8.0.2] - StartupMessage Format Question |
Список | pgsql-novice |
OK, thanks for the info about the correct ASCII character. Now I am using ASCII 0 and it still doesn't work. $string = 'user' . chr(0) . 'postgres' . chr(0) . 'database' . chr(0) . 'maach' . chr(0) . chr(0); $version = pack('Nnna30', 34, 3, 0, $string); 00 00 00 22 00 03 00 00 75 73 65 72 00 70 6F 73 ..."....user.pos 74 67 72 65 73 00 64 61 74 61 62 61 73 65 00 6D tgres.database.m 61 61 63 68 00 00 aach.. 45 00 00 00 7E 53 46 41 54 41 4C 00 43 30 38 50 E...~SFATAL.C08P 30 31 00 4D 69 6E 76 61 6C 69 64 20 73 74 61 72 01.Minvalid star 74 75 70 20 70 61 63 6B 65 74 20 6C 61 79 6F 75 tup packet layou 74 3A 20 65 78 70 65 63 74 65 64 20 74 65 72 6D t: expected term 69 6E 61 74 6F 72 20 61 73 20 6C 61 73 74 20 62 inator as last b 79 74 65 00 46 70 6F 73 74 6D 61 73 74 65 72 2E yte.Fpostmaster. 63 00 4C 31 34 39 31 00 52 50 72 6F 63 65 73 73 c.L1491.RProcess 53 74 61 72 74 75 70 50 61 63 6B 65 74 00 00 StartupPacket.. I must be missing something else. Am I calculating the string length correctly? Is the length/version/revision/string being packed correctly? Maybe my pack statement is all wrong? Any help would be much appreciated. T Pfeifer
В списке pgsql-novice по дате отправления: