[Patch] - Fix for bug #2558, InitDB failed to run on windows 2003

Started by drorover 19 years ago12 messages
#1dror
dror_b@hotmail.com
1 attachment(s)

Hi All,

As some of you already noticed and as mentioned in pgsql-hackers before,
the initDB process failed to run on some windows 2003 machines.

Although this issue was already discussed by James Hughes,Martijn,Jim Nasby and others I didn't no patch was created and
no fix was committed to the CVS.

Description:

On some windows 2003 machine there is no access to the nul device for non administrator's users.
The initDB.c redirect the output to > DEVNUL which on windows defined has "nul".

There were two options to solve this issue:

Create a new file , grant a write permission for the Postgres user and redirect the output to that file. (EnterpriseDB use this method)
Canceling the redirection at all.

I choose the second option and omit the redirection in any case that it windows machine and the redirection was sent to DEVNULL.

The only files that I changed are: initDB.c, exec.c and pg_ctl.c

I think postgres must solve this issue, as more and more windows 2003 machine will be discovered with this limitation which prevent from the users to install (actually to initialize ) the DB.

One more comment:
As today we have and MSI installer which redirect the initDB output to a log file by default (and we can also run it in the background) there is no point to use redirection at all.

The fixed files are attached.

Regards
Dror Bar-Gil

_________________________________________________________________
Try Live.com: where your online world comes together - with news, sports, weather, and much more.
http://www.live.com/getstarted

Attachments:

initDb patch.zipapplication/x-zip-compressedDownload
PK|5�[l&w47initDb patch/exec.c�[ks���LV�����I��{om��)E�lnd�+�����5�$���df(��������y���Tm����G�������������^���h���W�v���Da��Q��&��p��p����L��>i�2�����@�B�(}��}������j�Mu��w�l�����i6K��?��� {�:�w:���3�.�������R�z�����*�k�)4w:IM���c�	�C�l�Oz���i��h��8��*�����*���{i���XxO��S�W�u;���;8�;<T������Wj-~3^�z_b�7Y��"������1�p������|�;?AC���V;�p�v�;�ot��-}���n���^�~�����RC��T�u��f^�����m�����G�g}�xtq~�Ki�24i&�sd�`���4��������Z�:�|�Y��hL�X+*O��7�		�L3�.f����I��*����{�����w�;��{w�=��%�|��U�B�4�j������m./���-����W�\�\��5W��J�e�Uk��{���d	c�)���D��M�V�b�O�"�O����������c�b�f*N�;����,�_2�SN"��g���R#�$Q�@OK1�q�8�x�R�V����lL�����P��B������	w��4+"z@]������4�o+�aS�w:;^&	\��I��E��������.Y��!��f]���h�p_������^6ov�ca�Qp�G�z��6mlh�L�G	a���������U�Kj�[�@gG����j��x	,������G�n3��2��WF<-�)�>l�
a����U�>��bz��`�T��MM�lx���kO"��B���'��^H��~��D��>>�������x�����:�E���r@�?�5(���M�i�^ut���LFY����n>|FqK���ES���j�+j�#��L�+�	�7j�k�F��j���������>
����5�6v:��i��:��u
���D�
_����ur�W&|u���bCV�r:5_�
`��&I���	B�,$����������`|6B����_�<�/Ol���R��3���� ~���Nd�l���;��x�7������@��z
���e��B8�\�X�RVeC�(�i���T
O��:Z��w�1n�D�:T��^�4Q;�QtR��5o�b�n�J[`B:	����� Je�\�v�-���T���jb��//l���f�E���"���!K�~^��m��"���P����e6�(���!,{����@���dLV�
�|R7&3Y��vDa��]���V�7�J1�[w:��}-�v�<��`b?����wi���1�y�b�j4E`�?U�*��5��R�-��h���56�&wxB$�_V�������I�0�?�,�����<�l1^���f����lN��N���7�n��~�F��.��$�5��Yx�Z����j/_���}��U�T@�;!�3���m���^�:;�X��Da��d����	d����\��g�0h�d^SK�\a��-���|�*l�h�0D��A��U�����)vNE�3��������O+j���g��?���z��7�
x���V��Y�v8�����!F�V�G�~�=��3G4������7��1�Ep��
$���%��}�P��X�(V������h� gE����M�igD�8�����7�@�U��4����1b�X�5dp��X����_E��J#|'���K������m%�2��"%j�C�`�}��������������"��Cm��w�:
��E�C
)yj��g��(hbQ��D�����(�����Xt��p��������	�E�y����<��R����4g�Er�{�-�0/M��k����e��K2�|$i:�r�s�D��GH��]����lnU���QY��?���_kvjU�E
��DgB�Fa[��%F#
/H�3N����eP�T�/����T`/���#��30�D����[��2
S�q������ iJ��r��i�R�x����{��L�q��Z��|��Z}�6�o'0)��w5���X��-���������2iJA�EG*��+/%�!��Q��$�4���L�Y�+.,��9+e9����Yr~xkE�R�
���H������%�QHE�b*Uh�$��������N�9���������Io#5����	m�E��V7;��7;���)��@6�E<���+>�L�_�qS8�4����X�W��i|]���	}�������N!����'-A������k�.�S�(dZ���Wz�3�^����+�,�g��?�V�����4)/s�-+gn��|IF��4���z���F>�I��
�74KLNA��V�l���^*�5�/�����
S����R4X��,�<�t3���>��1V�mag��jY056�j��zP�N��VS��Y$����V/�4��O��Z[,�}���k�)�'�� j)�
Z��]��.��j�5�^
A��C�O���B��5�p�s����/����-u�u��4��[������PN�41��K������5J7��� ��r]Z��9�sJe�p�6�<���7�+����W�Ur���/J��mRy��-�*
�\j`B?/�!s��pY�tS
��SZn
��{e��+ ��	l��)�/�K)�I>;N���'&������So&x��1��+_A�,*�ti��*o/���J0Rm���fv�Q-|�D�d�����{#��8�����~h�T���h�"�#|MM)���5�(?�C�1|��A�s�O�G�([+b)�I1��Q�pp	�,/U�-�YA}�!{&�&����(�%������;2W�r��:�����$�������cJY�4
�hE���D����]�75��-��$E�V��3������������lN��T��6�5���
�"�������*��8����
#��#�E�S�$
g�Ay�94|��PU�	y��tV���9$N��H�:3�6��Q�����8������Z��i���!�C�Vm��;�_������k&R�NA�hV$���s'N[�ay%����{����6�F������mn[��^��R)��f�qb�Xa�$(�~�Z�.�2�]������h�������xC6�����C�	G�9����p
�\�2U�V�A��;y?����(�*YR!=fF�W��(w�����I�.���(M�I.�F����K����j���"t�y�	�J��-D������o5���p�)�ML����(l���<n��&��K��q2��*���/�S)�I�!p�xr�T�H�[
{��y���������DP��H��^��Wx�vRj�����a��-]��~����l����������L*��C��n��D��Y@������P��1�����H�_l��E�������^D+��1ef\:-�N��`�
����_dz�`�������$�v��Ma,H��T��������7��)y0ip��3�g�i4:���G�����q����u|�M����V�;����5�_���7��v'����$����������(��n67���=/�`��Bi7�t�}�(��
\g��#w	uCE����������+2���#��	H-�L��Q��c@9�"	��D�T}���f�l�`�<�R��w &�����{�(��,=��|�������0��,�'��H4����.�mm��B������
�-�oN�g=)��p*����2����s�n����b�x.�N��f6�9
�y�����w��!>7fv'����������k���V{�ft�Vy&E�XB�����x��.k"�t3>�"�������$�M�d�\e$QJ4��?]��������������J�,�dk���O lx_LDP��z��i�l4%���`������8�����?8�B�c0<�~�H�0�n)��pO��3�	�t8�����-|��d��B�M��\^~���A<���{}�S?11ziA����L��6�W���W���3����v
L�dI5P�~�c��I�#�o���E�h}l�����{��_�Gg�^�u�������Gz��c:$���I�,���������1j���$�����ylr�Fs����M�75\�Z�q�:
�Y�V����Ao0<]��� ���j�FUvQt_�/y��Jw�������H���A�&o���XQ`���q�+�R��c�	HN�o��)L~�����\KZ�'�Q�T��n#���������V����-'.H���3�P�"�D�������TA��_�����g���=K���L&rly�,���r���z/�6��g['W�'H���N����17g������I���
�F�10������N��&���?]�����H��l�)+�
0M�"s/�;����F��XX�:>��K������K[1�J��E����g KvrhI,���
�/���z����-���Y����.N�[%�5O���;�-,R��
��:40-y�X�����
�'��V�f��b��sg�WO�����*,��)O����%���`���[��];��V_���TE�Q�TE�M�&�-����3�d7�M���W�8��	;�G[\5b�fg�c�6WL(��rWw�K
����1����I�;z�V���y0�q��`-]z&���DJX��Y�&��R#��O)��7sOW
��g\<d�z��0+��
U����}�I�;2!7u[�9�T�d�+5���gBn�7�������$�]�{��{���\��Sm�������r�bIOG��&0���3H�;j���9��JL��!Z"��X��	=���[�MW�T��2���=��T�w�&����C7v��� F���pMP���s����X�A`_�,�_a�[)������SC�1���#P���D��c�~*%�P�&��������]o���}p������?��L~�C1����J�7��[-�n��.�-�OI�U�-r�D���b2���)����tE6d�8DRRMc�����������o��_{%�a������>��s�Lp�Lq�N���<2����s/B^�O{��a���<�j����h$�8�o�8�o'E���h?
*t����w�Ggimz� �n^&�bS3�rje�a���o[��[[����,����`�����lA.S�PK�X4�9�G��initDb patch/initdb.c�[kw�F��L��6�X�EQ�2�n�8��$;�8�F��w�h����h%����U��ZNN6s2������[U���g[�����SA��D��?n������,���������n�yG�Y^��\g�_M������7���,���gA��Bt#O�j9�;�FJ<$d���^���)*�����0T7rg�W�{������V	/\�62���bx�*O���A
�qJ$��D��5!b����L���y��6��*0C��T�T/U�1)SO�����@>Tn�W�S]���i"��E��J!=�6�1���NOH���S�sUd:%*�.z��8��J�Z���Vq����v-�`G�TDWY��	���s7���ls�7r
�5g�������re�u}_��m������n��`~�b�H���qh���$����M�Vj���0@��3�o��^+�`�����J{A�=�sRaN��K�?��$��,O���{:�F�Y{N��$5vN�:2�Li�f�
������p}��
g&�X�}�*1[v��b�O���X��?q�[�v��X�Z�Z�`H5��I ��i/�F��@��$%_!�=����\5���~���,�N����r1���x	���8]�!�!��>6�q�![EV��D���c�;	j$B�D��h���E�C�����kwH�72U������e���Et+@��.X�R2/
�\6�1�:�s���l� �_��P��[���g�6r���|��nD�F{�T����C�[-4�")�'�wA\��\��pp�L�9,A����M�N������p�M6f���=��<��F�h#�G}�$�����L���:������p�Q
��
����_~Ac#=�t^_�G����T��g�"�N�]km�OG�V?�!B��aRH���7P;�|����x���>��`��,���z��E�qB�=��R��(��Y�P{�
:5�y	�qyde��iO%���p;K��Im��?#ox�vF�|3��*����������x���W{����%W�����4������v��Y�i�Zlq�z4��z��X���w���>��h+�E8��m���`���)�S}��c��������g����)A4�y0�!���n%?o'?[��Z�b����%�R������
���8�����`����^9g�W���W]�N���`(L���d��g�}PI����'HV��cJ�	>��w������������Ee���i�z�a�w����@@�;7,L�O�,ct$^�Y	������d>D=��z��_����:�~�z_�"��@�xB9��������*-h�C�s���7�tL �������x���������BKN���;�"�?�����Z�H��Y[7en��:�3T�!d(��n�������d�����
��[h�zR���(�@����tlX)G���i)!<!mX�[�I�5�X�����v8���f_g^[�|��5>\��N���
�J��d�\/Z�M�������H���@/W�Y���9�f�df6G�!�1"���E��uC�Ij�ng<��I�s�8G`��W\�I�!�k��83B�ic�X ���ug���hI5H{bg���� 7����J(l�qSN���D	�8�H����,X\_}uq}y��9�8=9}�n����!���{���4��\s�q��$7�<E�t�[���1^f@V��F�f�i��d�
	 u��A�4E��V%AX:��#u2U�q���3W,�hLkLQ?��q1ZI�������4Z�!;)��S>2��m/�3N�3d����G�%9�'�\X���n���$-�����WGW�5�udX�!��TT�2�4����Q@)��!0*W:��8���P�Nt������A��~��	�x0���.*i�q�����5�����7���3��!wSo���9B��rfF=�������0��X�@!7$�P���c����~��������������VB�^{�Av�] ��� �������V��=R�H�u
d������1�McH�����H5����&3����d�����syv�����
[@+B���*_�x�{P&i��p}Bk3�t\��u�L�\��:�j�����'x8��mC���mJGe�����[���4��(X+n�f���"�M�}�V
���	��]6L�i-[(��MA������+�i�r��de�D�[�����4�,/#�#"kad���M�V���Y-v���HQo���{:�h'aH�o��R�C�zh\;����~0)�������<4j[K+U�m4����\u�.�0X��(����z�}���JD�A����Q�������i����$
��1���:�>JG2���;�+���O�:�+M4^;��~��+#��c�)���E������zt�P����K��-��o�"k����J��V���Dl�0�hH�{�zi,�_ZD��$AbR���J�|���st|���a����>��h����ig���H��z��?��������
�iD0U}3J���v������&�E�C��^��"sZ���`���SU�Hx�����&"	�xa��J��?�#b��<.����e���`E�)�5���Y��j�~�MM�a���U��ZpP>4T+E��L������;����a���C�h�Sa�j��Zw+���O�����d[oNN��-�������C������G'�����m�M�Jl�6���W���FO!�Lr�D.�@a�)�+�5_Y`I���,�G��Cn��|k�8�r����J8{(OTP��pd4���<���o�"�����$���X�u��a��T;�5*
��g�����k�C���f�����O�Om
�����t���X�r�*���"�#3S�&b��U
W�;��q��4R���n3.t�3~�>��L��J�m����A�F���n����Tl,N���4�jU�97U� ����F�=�H3�#��9�Z����5���.���K�XA�v�V����"4�\���R�#��;k����v?Rg����)��Hx:�����`���������fsU�!��3��������H��.@�
67�	%�������T�mJ������f��#��>�mYgD�:��%K�N3jK	�U����oe'/.��/���-�^�pj=%4���%�g�����A�gT����`�� �=�e����,��c���HlJ"$�Q2���A��!�
���lrH��������n�<�n��x��7G����2f�����@m*6���ak��0S��U]�y�}�0�j��5�cjC@6!�_9Sh�����q�[Wce��O�%qf"=����*rJ&4����MLbx�!.SH|�u'��'�t���c!�����Y�� 0C|�
�Cj��e|/ws�����e��E�v{�w�u	����v
_������]V%�h(�����v�x>Ef���Q+_6-��p�����L�Lr\��u���_b��J��<�;)�/lA`JUM_N�zi�GI<~�@�4���n�s��"�F����8G���<a���G�}�qe�P�Bb>p�������/1��A3@^J����9�L��'w����Q���:>{i�k�M�-���B6n������;�K���S�����4�xR���)�u�}��X#^�>��"�\>�x��/���,�&o�J����* KbbFM���[�W�X����7���P��@�Pj�B�x4�H�K
����~*���C�C�x� ������y�_�Kd}�e��|w�N�����v��Fhb�p���\�Yx��{M�4�
�����t�����1��2�
(�%��;�\�=#���@���~F��������7D(�%�U�@��:����Jz� ;Wi?�cEJ��@��2{Pqu?�`���qao�+��a%�������P�$��PM�o%����:�D�F��#���x%�'Xhzt]���5�I�y�ZOgJ59gV�"����~�������Dgd\�k��\�H���k��9�����+����E�pe>	�HN������7@j�]�7�9�%/s��r��)���"/�i>���i��
f����E�0
`W����Y_���#OQ�n�KaU>����i`^3���#�%-�/��[�����XU1���	�v;����Bx��T�{dl���G�����c(>����SK���
���(]*�s��<�"���Z%c7��{����`�`\��3,���+���e��T�D��>���wR�4���>z)I�	�^Noz���������B���mJ���IT]�	�p����D4!oO�w�B����/�I��lr&rP��/�����O�;�!��*�k��/w��m`��d��{������������
���J����%�R�a�	'.�YxSe$���@U��	7

�v,:����=��"t�Xu�5b����������R�������������������jVU2�����PRxj	���d�.I��Sr��*WnO�����6���Y�3�5S�
F=)��8�xF�����$�iX��6�����^�]��U;�����=�=�<YSIt����0�����nxU;q�4R>�.��y�b�������iL�$�����g�G��{2���������l������\�G:Y>�{'���wL��'Cm
�o�=)"���J���i�D��ON���2�#x0��Y�9�l ��F��rk���X�Hd[M�S���K�������M��[|��ri��<��^g�&�l\1qsZl�u�����\7I��C�����t@1��LW�z��&�|�M8��r.vI,������MFY�0��P<�)g�����oO.�xi�VzO��@R�K����T����Cwa��FZ��W{���7o�E�����t��#W�����������M���|O�L��rT�i�"G�E���[W��Dto����c~-��X9��}��^-H�z�qd���A���
���*������},�f��eM�$�j����uU���.�1�;B��ul�u"��������d\�����d]�`���j�p��������S�e��:�hsd� ���TxP���<����	�f�F^�3|�N�mzUvM�*��$kD:�[O���)�N$���r�Ms��8�(h~�H}�zE�����Hk	/6`��?����9h���
;�y}]&�t���W�K��@LL������|vl�;����K��%���7ha��:+I~��1��	�(�r�C�k�q[;��}"?�se:�����z��s)E�HQQ��fF�0����[V����(����|�DH�����<��xi.'uJ�����K�����&�����|�����k�a�Sk��rQ�t�*b��=}'��vv���i����Vrdd��ic�����#"G�>�}nO��#�n��(<��l}'"���J��P�)�M�8���A����^m������e�����N�_t���t�g{�c���?I+��/���g�?�o��k��^<�?�	���U3$�Q�N2�����n��n�C(��N*���R}7s�8i��lpM66��#�C�������H��Vm��Z{`0�HV�*fm�RC����������|�����5aVV��[~��r������#�q��>�'����BP�������
��0�����ck���������=sR�5[�\��Gh$�dT���q'�k����u�*���5W�:!b�;:��_�_9����?��9�a�����v]xm�'/~�Z���P��;������p9<m��v�jk6\��^���rg�a;����e�����)�m��y[�e�=�����N����������6������haV&)<t��lS$$a�k@���@�@���a4@�������G}��G��#V3�����++++����:}7}������tk���G���n��N��7��W��G�v^��?��*Z�������������������s7���V�p�99�=��Em�6�����i�����>��a����"��0���Q�����H >�@|�C|6{�A,(��3��_���x�������l����[SP�{���,�Y�g>��2�]�����=���)�����>	����)�'Yl��>� ����P�>up
����	�w������<�<�:��G�T~�x�u*����T	��53����_��)���M�L��i�$v��-�W,+��z��O��}�.)�Ec0�Y����%��Y������X^R,�=lX����n�Q%I�gzA��5���#[��_�zB�.�K ��`5�\e����g�
�gau�\��_��<&���C=0��/�^][+�M�j8��X`4hk0���B�&-�'�����,���}����D�.e�����Z��%Pg ��-���r`V���[�r}��%I��e4/���3���-���������ZV�<#�����/�������i/����v����R�yK���|6���U_���^"[�U�m����~EXt�<rKXW�G<}Gm1�����C1l �"3����s�g{f8�"
P���=+?�T�����F���It��$c!�k���:�fC�q�M�c%^����a?_���?��n:�����{�@5��i�YrF�M���3I�;��2�A�;#������n��O�����_v(8�����nT�rF�f��u�y��X����g�o�����G�DzQ���-�����E2�%^L+���7��;r5����
��v����W�w�KB���.����S ���g�?{	yrv8Wr*�����_v�5����V6W Y��G+/}��s����/\���	G�X
�;���	8���\���|0?,����m�[��@ic�
{[��d��x8���<�IpSq�
�Q�x4�F[�B?�L�U5z����d����<�$3X�t�J�x��E����Fs�
|.��{iE����-zZ�I�bz�>�YR��";4R�Y���7\�[�U@���ak-����6Qg�*�q��%�m��5md����^����}�#+b�`+��q��8�*�~����8#b��`O�����z�rI�����X�,��_
#��&�>C���Q�����R��}�?m���w�b!��c�C�^�#�e�	YZ^�(o���9ou2����7�G���Q���Yo����m������=VKu�����0;,K��v��1���q��l?�����#��p�����q�s?������0���;'���sW,�-/I��'���D�u\2H�cPG�xi!��������P^E�������U#�@1e��=�jc����67�)��g:^*�vVyE2����n����.��g��
�n�[��e�[`�K
�"�B������������u������6�o�[���.��i����9����M�����J"P������f��|3."�J�(��4�oW���}��p����M�\4��U�w�u�w�%^��e�LfdK���������S/�:p��w�xb����J|k#���4����f����	;��q`<Mq�R���B������
����B��qB{�0�X�hq��	M� h[����-N%�����@�����G%���[�� *��*Qhs��T"�������EF��V�@�Fa(�������o��X�����$��w�&��/�Q���5����L��������SW��3��;��"��Exl��#�W�k�@�%;���E`�>�A���D�,�Kl]��'9�L�\���'f�N4NYE���Y�������6?5c�:u6��hC����8�30�Z�5f�=%8���)�����Uh����9�t��y��t�b�T�H�=�2�;�i5���j�6!r�����u`{zx���b�eF��.��6�N��{������/�N~9i�(:H5�LW���{R�������'U�K
��?��U�_<�|��c�H|Ek���P�L)������Y��;b� @�p�:*o�+�{D���y�����HAy�@��|
�.�n:t7���z�=�����g��M:t� P���=|�����?�M��@V������*�+<R�?�B����A��(w���q�������i�Q���)a'$oe�=�7q�����w[��N���!#��;6���w��_QTFm�T~��+���UD6~Y��.��%�?���JU8Hz\tX�sjG��{�� �F�#���^�M���Q������0]d��C# �s@�0@�.�aY�Z�;�������Cp+���m��C���]��t
=?r)���8o��;��U4r�=7p)���07l����
Z���F��w��qc���TA�Fi� |��J�'�����%����m�4<xv�,��|�C�W�z��<��FQ5����X8A���H8�
��5��N�6JH
�c�N>�I[�rH����?�E�����V�p<I�8ILJ�)��N�?�$8xs��	��i_=�|/N��������[~�e���R���4-As��{Y3�Z����hT]��e9�a [���
�����l��s�TR�>N1d9/����@����A"�$\s��j��.ZbY�j����o�(7�bf�����	4hy�b��e!
A��d��=z��������4�U#%���@�KK�ig��#
��AY=���_����;7G���_E6�2q�%���;�������Ic�W�x4�u�����z��><=�7������U�����7����w��4�~��A�x�L�n2�`I��5�;9��VA�d}!�|��.�����va����Tk�?CP�^�Y��B��8s�E�K�4����;u���"M�^��M�xs��P��A���~�Bc&�1�9TA�D�*1�����H��N�]�|�	�a�9��'M������f>?��*?�w���3Pe�-X39Q~;����4��+�h;��b�k�����-76)�n��]���G���c���|u���{�SCs����8��4��/��]4;���.���_]L"'��v;"����*"�M��~/���|�����>��R$�*o���bOP���R�!L��^��.�� }���?�M�N��t�$����1�I�)��������}
���-b�O�>�]�X-���Q����t�P���[\����)��_�b$����Z���B�`��W��d��zMc��(�����VT����8�^��>��%f��
��Y?�P�����\�u�p�h�P���S��Q�EF,?���n���OAR ��Bb�n'��K�4]���r��j���s�.��r_b�\Y`��EY�1���q>R��8�2�����k�����V��&��g��Kf��6Z�iR���w��,��ld��������)�A��xD6w"��m�X�'#�0I�6M�>~������^�2
:���w2��^*Z9�s����(���%������H���j�^�|�,���DA�����I���O����c�M��Lz���D���z�~������-��@�Z��o�S*��!�1�f��ag4C����+���OA�I>����(x�-�������[��$����JD��),�W*���9Q��x���$S��Q�-��GF�(�y�2�'�f+:jF��{hi��W���o�QA�7�B}g�]t�2�vF��wOM����n}��Y�0B��m�J�M��d�8ye�8�����1��H�;I��H�M��x=�
��@{��B0sSs��O�x��$�]\F�]�|� ���zF�gg�~�<t��)��z����|�S=�A����-o�G�N�l��>�)W��M�N��"*�i�O��U��%�a3�"���b�2���B������N��$y���QI���H�u<m�T��%����DF9������/�xh9k�#�Z�g��y>��Pn���N��qs\���6"�����f�R�(���_���"
\n���<,��\z��������jD��"�L�=��=N"�`�"p�vN�O��e�(m���VP!�h�X2�^F,�2�2��s1�s��jJ,��G����<D~&3�E����?=���l�N��bL�B����iJ*7�UY[K+~!��p�l�N;���0	r\;�c����He 6J6Ul�ocM-�LQ�w>�=�g����?��7�FXd2T�48��qb��F�����n�_��F/&X!/ud�R��QS�)����$��_��G����d

F+�J�j����Y������^�������.�<����-���dT����95�����F�]t�sr�9)��2&B�oP"e[��F�������������o���:kn�E
�[�����%$��_��x�Pv�N ����B`�p�u^��c�i70�/��&w�����K����Dd�[;�����L
������G;'-.��n�3_�7��jb.�������4�wh�;T��l��x��;S����5���!�����,E���!��D��w��3�������'��_�S���y��>�.y�����q!O4�l��p8z���#p-��9�h,�"�kY1n��7�����j�����#�����
�D.#1�������p����oH#N!�]�e�X�$u����O�%S���p���lh���6z�����/5�Oz��q�C?Q]/���"c���>�a<+y�R2:�7?j
���Io����
�j��S=J��m�l�K������i��c�������E����X,���{�ay���WQ���wvOO�
2�����a�D�`��#O��V�Y����I���{e�"���k�#��}���_$p���"��i/�/X.�/�Wf��/���{�L�8��W���������j�I��O9��*��	�~��g�M��;����/3:X��Q��]�Y�F���M�?�M���+��F���\�o���_�L������~��	}n�/e�����/J���k�<��2
������M
���p�����J�T��)�OT;���Sj������`�|P���[��Y1��������j-�h��I�0���c)���B_ H���"�����_t�%��kp:�33Z1Ce�p��M"����0��"�tu��Y����g0����h���5�N@C�Ak�����/Ec#���;i��s���%CT�?]��V��:��>������<��aN��3�����R��I<����]��j�'����_S����
'*iA��j�T�|#��������n�G�����l)'��l����q�{t���$,dr��.J�����/XMND������|!D#�����*�;iV���2d�9��oZ�������e�9���5��671���w��{��d����'M�u�6N(q��xJ?S� ������`��R�:<�Yrf��68X?��������Q�����Z�Isk}�����0�X�Y��(�-������ta�]_����������/5�j���������C��2�B�� �8�VW&+�%���NV����=��q�'B�!o�;����d�-����������,2����~c7��/�j�)?*r��p�
���9#�_����+�9��,>�e��a���{!���/a�)PHWl�d�����Z�������:�n�X�|������s�]+:�m���6���f!`�����'��K9������M����^������\TL�3J�R��1��&��u�Iy,�B���xOjB�.����%��V���Yb�����L
�i2���7<X�g\e2?���&\��pok��v{C{��{6��I��HW��p�[�?�����U#/�cz7���9&�\y�8]2���b�093���B�������a������16t���F$���l����r~��Q���0���&�!X�r	!���#����Wf��Tcv�X[3+{�N4jk�F�p���d����Y��m����b�1;k��~3��k��
��Tq��T���������==�_����[�&�9�G�(W��l6l��nRpU�:������JT�s������:ZTHo���_�z�J��b�&�o�x��������`�}6��2���2�"���������e�Ko�G����)��
�t���F��<q���[N^���g�v�d�*�����Qc�<u�2y?�l��b�<�bK*�/���j����VE�X���%�������6���	���������^�Z�
�	��p��&Gk��E�WZ&�f��d����q�Q�@bz,����;�_�����V�A�� l�!x+�v�0�&�A�p�i�#�	�!�J@��M�;�~�y3���U�?�+�H�|����KyZ�����JK����4��Pi�;o�5��[���U�R��j���9xb*C�5�O��6��U�`�T�d	���nuHzv9���76�io�N��49���pc�?�t&7��6K7������t8�hw'�6�c���iT�@�K$�����h4��k��YLBA����Q����iLG�!8��<���\��q0H���U��~��f�����be�=i�}s\��i���XUB��{���F���$!r�5��*<SI�z;����en�Aq$5f�<�~.�
k+F@Q
�|�inKdP��54R��A�ktp��iv ~�U��E�{�|� ���/��������:^��#ow'�m5���u�����IZUH�+�{p������k��pF�Sx�	�Nm�lFAEI�L]�}�����0��I#�~�Q�f����@��L:�u�wr4����y��MZ�w� �q���<\��u�}�4���
��`���
��L�I�����F�B(�:������^2�UsH(U�lHDz���FW���O�f�D�������d�.��|�V(�ASG$n��..��G�1�]1d:�z��M\$S{�I|O\�!�p|�$+��Y"g�
��@���\�K���U��
#��|<�6gw�����
���o>I���Q��7�O���\����a[^�E��������3�L��i�����NaW���yT�c�R��_cV����eO�^�W	)A�M?w%������lc�� �V��6�c5�=*���D"��V��wt�z������^�5��o�g�%X�����mI>�H.���������`%��<�{&4�^~,H_����4f/u�
Q�/
������r���|b3m7?�G�_����\"��Y�t.��a>�u)3��h�������\S��)	)O���9����G�n�#��A.;L������s�`��@U��4�
c
�J�%��n;���J�P���<N|�;�)����~���\e���_P
�x�;$�dC]��m|
�P��]P�i(5}�o"!�F�qN3
�4sA���Q|�����+k`c�����
5�b���Q�
?/[A�3�>K��tC�Mv%�������w��Z� �,	_.�rr��b����#Y��P�}�ft#�������8XEig
�;�b���Fag���3�8���L�t*���8(�M�h�Nl�t��`agG���N���-�P���,�]?�F��2���
`�f��kb��?D~��~-F�e�$<�����Y}�8�~��B];���	{��i�?�@y���]a.�����r�x��k����0;v�~Y��w����"�������������S������Ab���q�qt�� �B���h�6����.� �Z��F���C|������6�^U��a���4�FX����y��\��S��f�$�f�,��=�0k�����vw�����V<78~B3K��K@wkB����|����`��I��
�(Km�T�%����]��D:;�a���O|�p�����G8q�ki!�^����%�[�����N�XLvKw��`
a$����zw�g����G�Dp)4���.���%�+X�h��.��yOGGb:�s�/$��\r�w*�P���f�
.�>���z@��^����]�OJ�
s�"���p��`~5���_�<u�\�F�q��'I~Gq��r��zE��L�
�HE��4�.H�B�+��A�}#qD �������������0��:�bi�\�bP�*%����[��X(��+��a��y@k/��
�E�������lm�oq)X�`Zbo���j�/�Ymz�|7�H����G/dt2��^��k�4_F@
�ku&]��e�~��o��a&�����(�${��Z'��]p�"�S)�`m�I�5��������H�Xx���7�]���"h��Y��{6�t��;����
2���z���]��L ������
�W��WW����\]���U���8��Ww���O�q�U<��3�n� Sy���=�j��|/vt/���[y��Q��90_HM�{���pA�K��A�&�T�Y�5,���J z%uR�#����H���M���Y�}"�
D��|�OZ�����K_����|��H���<�����ic������&2-&j|�!��
�*%�QhH�}�GA!��Y�L�aL�C�����W����R�AGO*>�U���Ar���L�����R[��+��H���u2�4L��@��O��tCb��$������3���:�g�t�����$�4��s�h��o�0`\;���i�bv����5�Q��#l���/����h+�[Q�d��Bfi*�E���C%�=�_vA�N-I��6�PA_z��u�s�;�n���U�8\3wh����T�@<�AS�'`�D�i:�./�)k��Z�[�3#��m����G���w�)��w�U�o���)�k����x���j�N�4��Ln�aq1����gz�yy���������h��4��������gw9���O��R�E;�I;�M�������y�q5���������������8��)^z�x��gT���������k�w����v�\��CiS$c����k���k���*��k��6�K'��{j�e���=s�����5|����n���=�lQTO-j$�m��)y�s��>}�>R��?��C�\�D}�:���������&d�b_�^0�L8+?��Gf�QMX~ej�;)���T���s��0B-�4���JW����o_r�e�JZ�$�������N��s�c^l��ZsK�t]���r�q}����Z'g��7�x�����J;�)�WQ�4���S����`�%�WB�h�?ZX������������ C�I�c������a;��>p��RaU��J���K2�$�bU�'����g�4/-R���j�T��������\(Do`�����f�\����l�[�� #����-�2g��S�����"�>E-"	�������2
(�F�b�n$��I�}�sPR���)���!�C��D�P�Owr3��[E�
8�5������xb��$�	K��Xk�|����}A�@r�E�-&��a;",ZS�9'p62�������6
^==z����S|�V���%��
+����Yv��#@D�����ain�y��R�s��B�TH�X�4����K-�OYf�%r>��|���rCe-|p�Q��<���[6cI;�!�:�A��H��${QZ�l�R�������+\#���2��b�7$���8���g������D�z��-�����w�6G��O����+5t	��Q2�	�9[�Z��f�N���f�����8��IG�f�
�'eob��0�����
���n�����@5�cqI -R�������_�� �R+LF��K� 
[DD�K\�6"z��%Z�jb���D���T2��m�S����n]5���m�Cl�	}��C���\B��'E9i5�����77T�;{dY`t�$��hi���&��m����N�������-����f���_~n[�e��~�`'k��
�^s���A���X�b��H�=C)��Hw�]�+���):d���t$�����y�g7��*�y�C����
�����������Gx��o
\sf�!xdH�� ��y��W1-mms��)c���Jz�����|�;�>�QV�����Rx _�V���i�s�&s6��Ww���eS�&�&���������cR�E�|[][�����;�b���c�z*%��[���ed�Y{L�
�`E���++B��/�R1IW�}��b����Z������q�|#���f#2���I�����i���� �Vv	����.W�E��H���~< �����397���=	��\��
Wb���z^�~�f��b��M&X\��;/�=����������V��|�2��K���5��T%�[��+k����M��'����?���G�o�';���pL�w�w����W?l�yR���s>��F�bS|�����C8*q��N\�m��N@4�<+x��{�w?�YP��W����K��
����8Ay�W>(,����R��zJ%�`��B2��%)|^h��(���\� ��Fe��f�
y+Q	�A�z���CPU���2q�!�u'���*�r�����1�<���:�%ni���ky���t��vm�������5�Y3����sF��t�U�Eb�����&���-����u;�]�w���L9��>�H�����a������IM�'5Kt_4Y����B������m�9j�#+a-�=2��Z+A��nErX��!SjHn�_� ?fOjL�`:�x��}�Q!��������6U��x;F�Y��?��a���`d��H�}Q?����"� qm]��l�,�����$��'^���s?�SC����z
����L{���]�gR��M&�5�x$�0�V6V��f�S���K7bO%�_������_u�������������K�I�N�f�N�qu���5O23J���:E�v�Ez�� �Gv����	�t_,���?�RH{il���+�>������������|N�S���V��\��4��i#�_�6i��a|)h�)�/F@aS��q\g7x[�j��Z�v�R�u�+�TQ�n�=�{���G$�3o�U}i�vs�t�NR*���9�t�K����(���!�����
\��^RyN%b��Q	cc'{��S�\��y�����v��rVt�:�-;]����	����,~
�k*	�^��MU'z���:�"+"����|�����-J�E���0O�X��`�P��&���kt�V=�n��2�� o�<�|v��?)m��(_���
�6�����1WU�>���UL��Yp��_�a*�-�����i�'�v�wA�6�$��l��yMGIt>�P�^����t`�`��&�����L��7"����6�[��2to�$�.}
YR��k��9Wk��^��)b��m�X*d�hz�\�o���{3�����}�
z
��f�������q4����'��S]�o��c��	G���3�-�`s����u��\����!�������������)��MV'���Y���dd&@O����*WH�=�e�����5;s��Om_�s1����!C�����`;���P8	6������B&�~��c�6��$
�,�i��4^���
����Tnx�.�D�U����m�Zw�����vm���p�����V��ly�R2CH�h�sx����rx�����m����:��
������I�f��������t�5�7V80�	5��"�������r����@%����&�j���g'����]Pk,I|��SH?3��7�jM�$�E�=+x���
����o����V�2�|��|��""�3f�H��e1�bsg2���s�m�k��P&�at2��`=R <0�[O�!�$2��&1H{��O�?��y�,�sqO��������y,
��Q����t+4+�2��yz���M��7i����R���8F�O���vT1�5]^��
������~i���hNK�PK�.4����<'@�initDb patch/pg_ctl.c�<�sG�?�_1&���$'�J�8)�
u����KY����ew��<��������e��qR�^�+�a��������������Se����$�4�8q��'A�"N�b�,8q2����%�y���;��
��u�p��E��I�����G�����0G^x����s��^.����(HC������?x�8��n]�%H��4'�;i�p�|�|�`�Z�'����������,�	�8�~���gy�����V�q���N9���������ftx�m��H�f�?{������-v�����q+Y�<�l�mI����������
�I���'��sI��M���������oz��]/L<Y��\??54L�;��u�:!Q��|��A��j��4aw�M�>8 n�D�~��0N��~���;#������������x�u�U�O*�
����3=�������-g>�;���lD(����Esv�L�����S 3@�Bwj:�Z�����7���N��nf7�Mt���j&rb�5v�fn���[u�F�X:1�"��9a��>N"&�E�IW���p��_��C!Ur����:����j|�:M?��e�S�2�j��U����V^�G�s���{�k���P�g�E����W����`������U���=g��a4F������W����{�o��F���FF��{������;4�^]�4_]���=�_�:]�k�$^'X.a�qExT�	�
$��s��2s�lvb�
r���b&;'�?��������`S�%pqc��b�/
4���tp`��wK�:�T@�`W��KPb$`�N*�����Y�i�d�D����Iyuy���}6�-� ��ot��OP��Y��X/��3��v��@C'Y��D|��Y�����sd-;5���\uO�S}�z��<+`K�D�k����� ���9�|u��T�*p����M�
��G�e�i�L�f��:b�pc�?&�'��=���	K���dA}-�8P�!B$���A�&�*c�a������mlL��������mY��d�`'
��^������,������m����h��an�q=g�;g�������.8�tV,�?�����0d��|srf�����.�m��g����������Y���p�6�^��_�;���5��:���J����B4��=�{q0����c����[�U,u�%`�K�L	6
����-7�z�G{��x2'}$Xx��?</�
���1���z�}�W�������n_e��c9P�@:r��R��l�\X�`/hg�:1���3H2({v�
���& ��������
@7�|#��� R�?���W�.��o��+�
&�	��6!�@�
����
���������Z����#����*���w��}�;�g��/��dW+@�e����@^1����E�FA�4�i�l�Fes
�����y"(�I����
����C�h�wA+�?��X����j{#^�`Z8�M�1�%���In��mC����
?c�7�Ed�h���d8������%w ��[p_u�1����9+���[���U������W���^T*N�;
_��w�8<���
���I�dJ����W����Q�?S�t&���<d�J6[��fk0'$�.d�U+��A�Ci��
��R�G����v��KX�10G@��0�T!PK��#7gam�A�I ���a�P��������t�����?�~Y;�u�����A�K����,#���u�%^8������e������=�}�m09���B\���AR�5K��A�����]��dQ���(H�z������L.�#�$���@dAx]��Bj�nW���"i�
8z`?b��/��c2�6RtJ
�;�U{�2��3I)���t�������:�������ykqX-��p��-��A�_F���0}pb��Fk�>��po*���<l�:o8m�{<�����-P�B>qg�v'�����cg�/���b2���������!��'F�)3�$��!i���f^/���W�wN��'y����A��a6�R�/�U���mr�RF�UTS{& �u����|&�I]�B���"=�������"� �^��l�3���iW�y&�W&�3N�tR�������2�E��Q��%�����}��:q��&a@��Y<q�������	�P��sv�Cv]R1�����%nJ�l�1�p��$�TdQg��xR����S�����E��x�����I��h)�Vz��#_��_��V���9�r}B������R=��_�H�a����Ij�C�I2���#=l�\4KL�I0�%��nzT�����2�Y��3N18�H��������KaC@uP�Tld��8��&890"i���t�/���e?}z&�);����'�  D����Hg&�V	D���U� �s!|H�@	�v(���a��t���z�u:y_���D�s4����>"3p�.��T�����z�����2�iI�y
'�^���D�G��3�p�$���"8����4 u�D�8T�:�x���	s",��!�)
�����P��L>q�o��6ep"V*�l���wY����K-A����%�i�&���!����x���:r�	1X���!P#� ~�<�n���\���5���5��!Tl�N(�����CH���,�����d9�G��.r�A��4f��f��a�����Y�I�P��ya27�tD�P�Z����|�&�0��q���l	a!r�S@Q�����	J����
5������5�B��l�$�i�uww���9���9	��v{�q�o��u���~�I��\$K����S�jF�M%���� z������^6�#�?s>�P#T��]-����"%�c��P�c4%g�%����@�h0�ahXca�x?����H�_~Q������=y���`��G����W�1���2|�In�E	m9���ZD�jE
��v��%	�x��A�_B��Y���ds����)���_�t�c�5h�%RZ����p�mg-����x�e)<����]�s�>T��l%�?������tBjR�QI?�U>T�����g�L��2#����[r|�<$}/����V��Gg�3]9hB�4��r����ZN��V�yT��V�cR�+�<���a(<���[���J��t��d���(������/��;�.V��>�����/�_�pA9�;J��N��$�A�@�]W3�C�VsS;���ur��^��P�����<u��w��o��v1A�<�������dX[����=��`jl��Q�'�|����tJI[�H,��2E~m��g��,TB\�Q!yJ�
Z8c���S"����&?�>;.�U���H�:
���"88�CaE c)?�T"*���)�a0����������#����-����#y_5����(���hC�Pr�#���?�r������:�I�J��������i�,h�0�p�}a�������RD�\0kf����~�GO�}��`Mo/p4����U|�2��'+o��u��[�X���D�T;���ng��_�����C0�|��K��\������~0�W�#y�-�t]�������B%���[I�����LH@.{���jMy~ �Kc�:9�?�3��9��t�5��a��t������]3d������k�Mm���Z��HM�iL�LD���e������Y�/���S+��|�:OFI�8�dF������5p`d�FL0�9���Y�����P*1+5��Kl@E�F&�
�Y��&����
&;����4(�����@qO�D���V#���)
���&.l#ah�
7h�e0�F�9���������1��'�6,giN>$����^N��0f����nI���Wl��*$ns ;c��i�H�)3%{�����3c�[}g����y,�6���D��O�G9�"�&?�G9����L}���I��7-p�����u��2� �~	'e�3<�f�l����K�!�c��/I���Ds*���;:��N�[��`���iJ�R�bY*$e�?#k�N�&.�=W)������Ts�Z7�!X��"NWb�FR:/�#���m�HT,B i���1IdQMZ��"���05L<c�I���l�D"2���G��t���X�s��]�B�>Sq�G�i}����_�;c�A�,A�d�����=Q�q��Qd����I���$������Z,����A�M���Tl�\�n{�A�K����ij9S�e��i��,�����!��F�����Hh�2J��T������UN
)�B.Q�����~
��nYt=N�`�y�xZ~��f�E��l�2�S��m���W�qQ�1�h�=���l�p���%Z2���x7�In�vn�Z�,�V��2�����������l��)�)*��)���.��e��K�b������lX��XM������9�!G����������e��W��H�Z&(USP���t��o����)���m2%u����8���k�"�^ln�t�����Bkg��Y���{���Q`�U��8R��p|!Ah ����sP��zXr�{�����-��Jt��#�y�Z������'8)�!O����a��G;��)��4���O����@-�9����G�� �"#��9	h{�4,Y�od��,T/S�$nF�^�!�L@5����kI��+N\�s��"r�e�+�����2A0X�O�f\I������T�lC1a�i�����"��[�^��>Wi�\���+;�_����J��'.h�N�����U`Q,�6�R���3��������2��1����AU�p}���p�W���<�=V�I2i������Re]���K*���iV��@c��4Hm(��W�~]�[���3���5lji����
X2�v�%���r6r��3�p-��4Y�k>n�Lc���������d~�����?���+��S�VT^���p��K3�����+��xn�.w}�������e�Q�6����$7�����t)i1��l2|y�EI8�yG�z�9�S������[�
;>x���>#4b(�����T��'��c)�x\,9�9X���i��Cw78)
N����g�.���vCL �����.c`��F�������<u���W�+�l�L��1�Q�>+�;���R.C���.��Y������<�>��]H
	�
���Y7J��zB 2{U]�+�brERc�
�eV���g&\^N���� �������{,7�L���L;��r{���31SZ�)��Fk@����Y�+j�u��]U�������,����@c�/X	u�]f"���e&Kj\*�p���$4���������}q$�����%�#���~i�^v���NZ���:�a�O�2M��}�������J�-F�+��n�,�sd�~�}�8!���L�j��W���v���w�t�2���.����X��^���t��<��Z�g�N0U�|3�����=�;�}�x(�$��mT�.
��:<���q����(]���}�9'I�q�V���4�����C"NDI�O]�d����"�/��*K��1_��������k�]�����?#��J	5��E"�bX�I`���'����G��u����b��$������Sc��D��2Y���������&0��ef`1����Tv��6������'2����\�W2n�U�z�{t
�T����B)`Mb�	�2�-���o�S
�g�,�]6�]Mk!�<��JQ��������������g�J*A����m��rE�o�\)���r|g��R>�W���Ewh�//�v���4��\��/+��-�|%g<`��4kd����V���P�H��U��D[�f�`��o��aR;�7Q��4���U�[����n��!&�������>u��c��q��"�l�x�~�^���MVfT1�@�h1�6tF�������HF������/�9��M�.l��|"L�����������\�%��kV������})[l�m��G��5E����}]���ew��������.��?����n���k)�������������R��7�H����fAa0T
Pg���!�W�����6��?�_1�*�TF:�W�K�Kl�g��J%���9`9�����s��+����������c��G����q$V�U��|��N\�I�M�y�W����M=8rDXl��*���	��t���7|�2"m����o�7���y[�P
&�� $��y&�/qU���!�M�JP\%�m�|������-�b���=��v2����?L0Qe�������o��]���AA�����C0�c����,�,���,?K�F
4x����2E9a��=6����dS�#G5����d�U��?�(�9����O�����p�4*g�MC0��N�=��8{�
*Xz�N�}�H7��.��L6���p.>�w�q1�P�����-��~4(���4�@D@i��������J�3�R��n>��M�����8��notV�F��!�Z?w��F"zh�z����zv���gz�����;V P�
��w}�@�V8�'��aT
�xAp��0���t�Rsw�J���TGD�x�[IB:�������LY*��{����,8�N7|X�*�6�P�X��Y��N�%���~����V�KOe����j�sA����L���(�9�u�u� ���<O���i��p[)	.}�/s~����������G�b��Qn'iV�
C�q��d�o���r�����W��*eZ�n
���s�c��h�����<��3�=4�-�79Hb�����1��5�~3���M�����N�:�n�hg���|���_����.����:5��_�����o��h������|��1�����P��&E?^"9'��w��#��t9K�7�N����U��e������p�n��*;�!'�A~��'�7?{;��h�%�|�3��x�� ��Ul�H�.���"@i�Y�^���
����y�J����f���+�m�������'�$�V�zrQIzP��	F�+4�a��Y4�����	��K�����O<�T=�Jyn���{$��G�@����%0��&����������,�"9hw�n��k���$l�������������0�����X(J��,Z�/�Oc���i�/�a��Uo�q�o����\�N���4�H�"������#L�f>r�9fHJ�t�������?��n���F��6���q-r�j�s\K�OX#��Y-]���1�P���r�r�����d�z�PS�����C*�8�G��Vo��`l��1������S����s���_3��z��g����T/�����
�li�e���Ju����������!���L]���Yz>�	��DF��	��'�n�����#�"�S�Rgtd@q=�_3�\\�fU�Y�#s�#����"Z���5��1^�.�����?Q|t�a�:@Xs��~����oP8a>5�,�@t��#<����luj'���]�g:�I�srF������f�����L������.�������#NZ�b��t�5z:%
`����������$�X��00Q�Z����k��l�B/tI�i��s\>>/�p��0����v6O�`>A�5o
��a[<P��p��y}Fq�/�.2��S�K#qg0;5��jl1�2h�(�����@c��^X�����C%������������-
�B
�G����ck�t������E�B�z��yA�<E����%�����������~�!����������:NyP�A+�L�K)���&�B*4zD�����,������s�K��s��� n���q���g��L�v���#R�uS���}���~��iF���B�%I��$��	�8���"u���qC��Qwh:o��+��l:���'�x6U.+up�;!_,�\2V��0�����#`K{ 
�	Z�F[�5�)���h}G�N�P�M��5*n9s?�Vv�����������o��l����K�uEMu��=��e�y�����K�M����+r�(�6
��K���}7`��m��������nZ�]�k�?�
0���P�6�p_LA����>{�H����P���j����X^�
:.�8�@�	�O�w�<9�(Z�T/t�y���d*���tB�U����������F����C|v�Y�5�#���jb3���_�'�e^�.�~�j:!.t�GOvzU���d�U�$G��������E�lo�������do�w�.a8��Z�@�`��n�'3�[�&���u�������D��n[��m�9��^%��
g��Xm���d������ek��\Z�O{.��'��I+!�8'��s��}8E���(����o=v�� �n6�"#0]��;r��#�	���Q?�����S�����<���Je>��Ovm�:�����.t��$c2@{����q�����8.=i��'�x�{�L�7���-�`��4���{�G���Z�Lk�7�
Q��_^����J���Kug��)6��.��_��97�,sy�p��������O�D���%���>�Z�5�[1l���3�Z�8����9��U�8.������zU��?�a�K����+�C��-��4�jz~��l5'�xT�A��)�%��hK�`(��L�6�%��q��&�7g������ G�6����o�$b��
��<y�����]O1/�(A���J>s��)	fr��M�|3������`�i&���|�t���rX0�>�t���;�,GD���p�d&�;��e_���$H~4���Z�:�����-�d��cs��y�z�j����np��� �h������@D�M^8�_f�_9�<Wl8��7z}X(E�J(?U��oV�;���K59���� �� ����/e����?
,{�!�A��'���&�z��YX��`��g�y�������������V $[��/8���h�n���)]�#����Y��~�2N|vzR|�,�&w���+\�~�����]�|(aM
�����Z�@�Y���l�r5���>����_�)t�O��p�/6�7�1%`�
erPS�4l�;�����:��OJU���)��R����[�,����WA��������V��}�]H��r���n�4��L0?�y��G�&y���f-�l�C���b��b�J������]�����Ot�i��������u��������>����4����0rK���Jls�F�����sN=	_�s<����-�rn-���d�`�P`����=i~z��U���+U\�{��*uU�v<���xD.h	�<��H���A���37m���C"�B�=V������b�M�W��n�/�@��VP���8)����m��)�hc#$3���b����la����b�'�2$��������3���W�,�|��F����8JRB�+Yi��He_ax�����OX�;H]J���0[��su��'��5�U��W��0����
���	����$�>@^U�p;2vy~��V�{(�*v��a=��YS�Rq����16����y�t�s��u6�6z��8a��g6Y;�?w��j��r
5�G���E^��<�M:�[,�5w�����)8�s7�5���3�FC���Rr�&q�a�������,�����y^'T�w�T��k3� F��\��)��x����k@��U��Z]sUl����]b��d���K$D����������k}'\�bW����|�:.�h������/� [ke��Y�LIA*������������V��Si\�@���ET��P��(�K������ ��f�,��BU����x���<���]E��U��Q��C����O��\Xb��,�|���5��j�C�8�Y����Efr,5/,&��k[�^.�x1��t-��g����U@�v���O�r����je�U����Fi��E|��p�*@�q9{���q�PK
��5
initDb patch/PK|5�[l&w47 ��initDb patch/exec.cPK�X4�9�G�� ���initDb patch/initdb.cPK�.4����<'@� ���[initDb patch/pg_ctl.cPK
��5
�Ag�initDb patch/PK��
#2Alvaro Herrera
alvherre@commandprompt.com
In reply to: dror (#1)
Re: [Patch] - Fix for bug #2558, InitDB failed to run on windows 2003

dror wrote:

There were two options to solve this issue:

Create a new file , grant a write permission for the Postgres user
and redirect the output to that file. (EnterpriseDB use this method)
Canceling the redirection at all.

I choose the second option and omit the redirection in any case that
it windows machine and the redirection was sent to DEVNULL.

The only files that I changed are: initDB.c, exec.c and pg_ctl.c

Please submit the changes as patches, instead of the whole files. Also,
please specify which branch do these patches apply -- is this for 8.1,
or for the current development code? When checked against the 8.1
pg_ctl.c, the file you sent only contains a regression for a bug fix,
and no change related to what you describe above.

On the other hand, it may be useful to lose the redirection only on the
cases where it fails, so we still have reasonable behavior on non-broken
platforms. Or maybe there's a better solution.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

#3Andrew Dunstan
andrew@dunslane.net
In reply to: Alvaro Herrera (#2)
Re: [Patch] - Fix for bug #2558, InitDB failed to run

Alvaro Herrera wrote:

dror wrote:

There were two options to solve this issue:

Create a new file , grant a write permission for the Postgres user
and redirect the output to that file. (EnterpriseDB use this method)
Canceling the redirection at all.

I choose the second option and omit the redirection in any case that
it windows machine and the redirection was sent to DEVNULL.

The only files that I changed are: initDB.c, exec.c and pg_ctl.c

Please submit the changes as patches, instead of the whole files. Also,
please specify which branch do these patches apply -- is this for 8.1,
or for the current development code? When checked against the 8.1
pg_ctl.c, the file you sent only contains a regression for a bug fix,
and no change related to what you describe above.

On the other hand, it may be useful to lose the redirection only on the
cases where it fails, so we still have reasonable behavior on non-broken
platforms. Or maybe there's a better solution.

I am inclined to say we should make it into a runtime test and use a
tmpfile on Windows if the test fails. I am more than somewhat perplexed
as to why the NUL device should be a security risk ... what are they
thinking??

The case that bothers me more is where input is redirected - will that
also work?

cheers

andrew

#4Tom Lane
tgl@sss.pgh.pa.us
In reply to: Andrew Dunstan (#3)
Re: [Patch] - Fix for bug #2558, InitDB failed to run

Andrew Dunstan <andrew@dunslane.net> writes:

I am more than somewhat perplexed as to why the NUL device should be a
security risk ... what are they thinking??

Frankly, I don't believe it; even Microsoft can't be that stupid.
And I can't find any suggestion that they've done this in a google
search. I think the OP is misdiagnosing his problem.

regards, tom lane

#5dror
dror_b@hotmail.com
In reply to: Tom Lane (#4)
Re: [Patch] - Fix for bug #2558, InitDB failed to run

Hi Andrew, Regarding to your comments: > 1. a patch is generated by the program "diff"I will do it ,if needed> 2. before we do anything, as Tom Lane says, we need verification of the > problem, preferably in writing from Microsoft.I do understand that, but, de-facto, the current implementation does not work, canceling the redirection (or open a log file) is not a matter of changing the OS behavior, therefore I don't see why a formal verification from Microsoft is needed.When this issue will be revealed in more and more system, it can be harmless to postgress reputation and critical problems for the end users.In addition to the above, as James Hughes have already mention before at item #2268 (http://archives.postgresql.org/pgsql-hackers/2006-03/msg00012.php):He tried to get answers from microsoft but didn't get any respond. Anyway, For my own version, I solve the issue and built a private version, if you still want me to publish the patch (Just in case) I will do the diff and the effort needed, I don't think that Microsoft respond is needed in this case because it is implementation decision. Regards; Dror

Date: Mon, 14 Aug 2006 17:42:58 -0400> From: andrew@dunslane.net> To: dror_b@hotmail.com> CC: alvherre@commandprompt.com; pgsql-patches@postgresql.org> Subject: Re: [PATCHES] [Patch] - Fix for bug #2558, InitDB failed to run> > > > 1. a patch is generated by the program "diff"> 2. before we do anything, as Tom Lane says, we need verification of the > problem, preferably in writing from Microsoft.> > cheers> > andrew> > > dror wrote:> >> > 1.> > When saying:> > "Please submit the changes as patches, instead of the whole files". > > Do you mean to send each file seperately? or other issues as well?> > 2.> > The change was test and design for 8.1.14, but as far as I see> > it is also true for any other version.> > Of course merge is needed in case that the files were changed> > since then, however , due to the fact that it is only few rows> > it will be easy to do it.> > 3.> > Alvaro wrote:> > "it may be useful to lose the redirection only on the> > cases where it fails, so we still have reasonable behavior on non-broken> > platforms"> >> > Nice idea, but it is really doesn't matter: on other platform> > than win32, the code left unchanged! the fix is only relevant> > for win32 on which (as I explained) the MSI installer (if used)> > redirect the output by default to a log file.> >> > Regards> > Dror> > ------------------------------------------------------------------------> >> > > Date: Mon, 14 Aug 2006 12:40:25 -0400> > > From: alvherre@commandprompt.com> > > To: dror_b@hotmail.com> > > CC: pgsql-patches@postgresql.org> > > Subject: Re: [PATCHES] [Patch] - Fix for bug #2558, InitDB failed to > > run on windows 2003> > >> > > dror wrote:> > >> > > > There were two options to solve this issue:> > > > > > > > Create a new file , grant a write permission for the Postgres user> > > > and redirect the output to that file. (EnterpriseDB use this method)> > > > Canceling the redirection at all.> > > > > > > > I choose the second option and omit the redirection in any case that> > > > it windows machine and the redirection was sent to DEVNULL.> > > > > > > > The only files that I changed are: initDB.c, exec.c and pg_ctl.c> > >> > > Please submit the changes as patches, instead of the whole files. Also,> > > please specify which branch do these patches apply -- is this for 8.1,> > > or for the current development code? When checked against the 8.1> > > pg_ctl.c, the file you sent only contains a regression for a bug fix,> > > and no change related to what you describe above.> > >> > > On the other hand, it may be useful to lose the redirection only on the> > > cases where it fails, so we still have reasonable behavior on non-broken> > > platforms. Or maybe there's a better solution.> > >> > > -- > > > > > Alvaro Herrera http://www.CommandPrompt.com/&gt; > > PostgreSQL Replication, Consulting, Custom Development, 24x7 support> >> >> > ------------------------------------------------------------------------> > Express yourself instantly with Windows Live Messenger! Windows Live > > Messenger! > > <http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&amp;source=joinmsncom/messenger&gt;&gt;

_________________________________________________________________
Try Live.com: where your online world comes together - with news, sports, weather, and much more.
http://www.live.com/getstarted

#6Andreas Pflug
pgadmin@pse-consulting.de
In reply to: Tom Lane (#4)
Re: [Patch] - Fix for bug #2558, InitDB failed to run

Tom Lane wrote:

Andrew Dunstan <andrew@dunslane.net> writes:

I am more than somewhat perplexed as to why the NUL device should be a
security risk ... what are they thinking??

Frankly, I don't believe it; even Microsoft can't be that stupid.
And I can't find any suggestion that they've done this in a google
search. I think the OP is misdiagnosing his problem.

An older message suggests that a service pack induced this problem, per
MS. I just tried it as non-admin on a W2K3 machine with recent hotfixes,
and the command "dir >nul" _did_ work for me.
Though neglected, it still sounds like a virus scanner issue to me.

Regards,
Andreas

#7Tom Lane
tgl@sss.pgh.pa.us
In reply to: dror (#5)
Re: [PATCHES] [Patch] - Fix for bug #2558, InitDB failed to run

"dror" <dror_b@hotmail.com> writes:

Hi Andrew, Regarding to your comments: > 1. a patch is generated by the pro=
gram "diff"I will do it ,if needed> 2. before we do anything, as Tom Lane s=
ays, we need verification of the > problem, preferably in writing from Micr=
osoft.I do understand that, but, de-facto, the current implementation does=
not work, canceling the redirection (or open a log file) is not a matter o=
f changing the OS behavior, therefore I don't see why a formal verificatio=
n from Microsoft is needed.When this issue will be revealed in more and mor=
e system, it can be harmless to postgress reputation and critical problems =
for the end users.

The difficulty we're having is that this is a very ugly fix for a problem
that's been reported by no one except you. I tend to agree with
Andreas' theory that what you are seeing is misbehavior of some
antivirus software on your machine, rather than a change of Windows' own
behavior. We are not going to accept this patch without more evidence
that there really has been a change on Microsoft's part.

regards, tom lane

#8Bruce Momjian
bruce@momjian.us
In reply to: Andreas Pflug (#6)
Re: [Patch] - Fix for bug #2558, InitDB failed to run

Andreas Pflug wrote:

Tom Lane wrote:

Andrew Dunstan <andrew@dunslane.net> writes:

I am more than somewhat perplexed as to why the NUL device should be a
security risk ... what are they thinking??

Frankly, I don't believe it; even Microsoft can't be that stupid.
And I can't find any suggestion that they've done this in a google
search. I think the OP is misdiagnosing his problem.

An older message suggests that a service pack induced this problem, per
MS. I just tried it as non-admin on a W2K3 machine with recent hotfixes,
and the command "dir >nul" _did_ work for me.
Though neglected, it still sounds like a virus scanner issue to me.

Yes, it seems we will need more information on this. We need someone at
a win32 command prompt to show us a "> nul" failure.

--
Bruce Momjian bruce@momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

#9Andreas Pflug
pgadmin@pse-consulting.de
In reply to: Bruce Momjian (#8)
Re: [Patch] - Fix for bug #2558, InitDB failed to run

Bruce Momjian wrote:

Andreas Pflug wrote:

Tom Lane wrote:

Andrew Dunstan <andrew@dunslane.net> writes:

I am more than somewhat perplexed as to why the NUL device should be a
security risk ... what are they thinking??

Frankly, I don't believe it; even Microsoft can't be that stupid.
And I can't find any suggestion that they've done this in a google
search. I think the OP is misdiagnosing his problem.

An older message suggests that a service pack induced this problem, per
MS. I just tried it as non-admin on a W2K3 machine with recent hotfixes,
and the command "dir >nul" _did_ work for me.
Though neglected, it still sounds like a virus scanner issue to me.

Yes, it seems we will need more information on this. We need someone at
a win32 command prompt to show us a "> nul" failure.

OTOH,
what issues might arise if the output is redirected to a legal tmp file?

Regards,
Andreas

#10Bruce Momjian
bruce@momjian.us
In reply to: Andreas Pflug (#9)
Re: [Patch] - Fix for bug #2558, InitDB failed to run

Andreas Pflug wrote:

Bruce Momjian wrote:

Andreas Pflug wrote:

Tom Lane wrote:

Andrew Dunstan <andrew@dunslane.net> writes:

I am more than somewhat perplexed as to why the NUL device should be a
security risk ... what are they thinking??

Frankly, I don't believe it; even Microsoft can't be that stupid.
And I can't find any suggestion that they've done this in a google
search. I think the OP is misdiagnosing his problem.

An older message suggests that a service pack induced this problem, per
MS. I just tried it as non-admin on a W2K3 machine with recent hotfixes,
and the command "dir >nul" _did_ work for me.
Though neglected, it still sounds like a virus scanner issue to me.

Yes, it seems we will need more information on this. We need someone at
a win32 command prompt to show us a "> nul" failure.

OTOH,
what issues might arise if the output is redirected to a legal tmp file?

No idea, but we aren't going to change the code without more facts. We
don't have the resources to be making code changes without concrete
information.

--
Bruce Momjian bruce@momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

#11Tom Lane
tgl@sss.pgh.pa.us
In reply to: Andreas Pflug (#9)
Re: [Patch] - Fix for bug #2558, InitDB failed to run

Andreas Pflug <pgadmin@pse-consulting.de> writes:

what issues might arise if the output is redirected to a legal tmp file?

Well, (1) finding a place to put the temp file, ie a writable directory;
(2) ensuring the file is removed afterwards; (3) not exposing the user
to security hazards due to unsafe use of a temp file (ye olde
overwrite-a-symlink risk). Perhaps a few more I didn't think of.

It's not a trivial change, and the evidence presented so far hasn't
convinced me that we need to put in the effort.

regards, tom lane

#12Andreas Pflug
pgadmin@pse-consulting.de
In reply to: Tom Lane (#11)
Re: [PATCHES] [Patch] - Fix for bug #2558, InitDB failed to run

Tom Lane wrote:

Andreas Pflug <pgadmin@pse-consulting.de> writes:

what issues might arise if the output is redirected to a legal tmp file?

Well, (1) finding a place to put the temp file, ie a writable directory;
(2) ensuring the file is removed afterwards; (3) not exposing the user
to security hazards due to unsafe use of a temp file (ye olde
overwrite-a-symlink risk). Perhaps a few more I didn't think of.

AFAICS all DEVNULL usages result from redirecting postmaster's output,
which usually goes to $DATADIR/serverlog at runtime. If this would be
used here too, (1) is as safe as any $DATADIR, (2) is as safe as
cleaning up after failure usually is, (3) can't happen because the
directory is checked to be empty before initdb anyway. Additionally,
there's might be cases when a meaningful logfile from initdb is
desirable too. So why no redirection to initlog or so?

Regards,
Andreas