CVS HEAD busted on Windows?

Started by Tom Laneover 19 years ago26 messages
#1Tom Lane
tgl@sss.pgh.pa.us

I notice buildfarm member snake is unhappy:

The program "postgres" is needed by initdb but was not found in the
same directory as "C:/msys/1.0/local/build-farm/HEAD/pgsql.696/src/test/regress/tmp_check/install/usr/local/build-farm/HEAD/inst/bin/initdb.exe".
Check your installation.

I'm betting Peter's recent patch to merge postmaster and postgres missed
some little thing or other ...

regards, tom lane

#2Dave Page
dpage@vale-housing.co.uk
In reply to: Tom Lane (#1)
Re: CVS HEAD busted on Windows?

-----Original Message-----
From: pgsql-hackers-owner@postgresql.org
[mailto:pgsql-hackers-owner@postgresql.org] On Behalf Of Tom Lane
Sent: 20 June 2006 00:02
To: Peter Eisentraut; pgsql-hackers@postgresql.org
Subject: [HACKERS] CVS HEAD busted on Windows?

I notice buildfarm member snake is unhappy:

The program "postgres" is needed by initdb but was not found in the
same directory as
"C:/msys/1.0/local/build-farm/HEAD/pgsql.696/src/test/regress/
tmp_check/install/usr/local/build-farm/HEAD/inst/bin/initdb.exe".
Check your installation.

I'm betting Peter's recent patch to merge postmaster and
postgres missed
some little thing or other ...

Yeah, I had guessed at that, but as the breakage coincided with a 'make
check' hang and a buildfarm script upgrade I was waiting until after
tonights run (following a cleanup yesterday) before reporting.

What I'm seeing this morning is another hang in 'make check'. After
killing it off, the status can be seen at:

http://www.pgbuildfarm.org/cgi-bin/show_log.pl?nm=snake&dt=2006-06-20%20
01:00:01

As I'm currently running all three builds from one task, I'll go
separate them out now...

Regards, Dave.

#3Andrew Dunstan
andrew@dunslane.net
In reply to: Dave Page (#2)
Re: CVS HEAD busted on Windows?

Dave Page wrote:

-----Original Message-----
From: pgsql-hackers-owner@postgresql.org
[mailto:pgsql-hackers-owner@postgresql.org] On Behalf Of Tom Lane
Sent: 20 June 2006 00:02
To: Peter Eisentraut; pgsql-hackers@postgresql.org
Subject: [HACKERS] CVS HEAD busted on Windows?

I notice buildfarm member snake is unhappy:

The program "postgres" is needed by initdb but was not found in the
same directory as
"C:/msys/1.0/local/build-farm/HEAD/pgsql.696/src/test/regress/
tmp_check/install/usr/local/build-farm/HEAD/inst/bin/initdb.exe".
Check your installation.

I'm betting Peter's recent patch to merge postmaster and
postgres missed
some little thing or other ...

Yeah, I had guessed at that, but as the breakage coincided with a 'make
check' hang and a buildfarm script upgrade I was waiting until after
tonights run (following a cleanup yesterday) before reporting.

What I'm seeing this morning is another hang in 'make check'. After
killing it off, the status can be seen at:

http://www.pgbuildfarm.org/cgi-bin/show_log.pl?nm=snake&dt=2006-06-20%20
01:00:01

1. it's nothing to do with upgrading - I saw this also and on a machine
that hasn't upgraded the buildfarm script.

2. It looks like you got past initdb, so Tom's theory about that is
looking unlikely.

cheers

andrew

#4Dave Page
dpage@vale-housing.co.uk
In reply to: Andrew Dunstan (#3)
Re: CVS HEAD busted on Windows?

-----Original Message-----
From: Andrew Dunstan [mailto:andrew@dunslane.net]
Sent: 20 June 2006 12:12
To: Dave Page
Cc: Tom Lane; Peter Eisentraut; pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] CVS HEAD busted on Windows?

1. it's nothing to do with upgrading - I saw this also and on
a machine
that hasn't upgraded the buildfarm script.

Nope, didn't think it did - just happened at the same time.

2. It looks like you got past initdb, so Tom's theory about that is
looking unlikely.

Yeah - I've been seeing both issues though - Tom's one where it
complains that postgres.exe doesn't exist then bombs out of initdb (it
does exist btw), and the one above where make check hangs and I end up
killing it off.

Regards, Dave

#5Dave Page
dpage@vale-housing.co.uk
In reply to: Dave Page (#2)
Re: CVS HEAD busted on Windows?

-----Original Message-----
From: pgsql-hackers-owner@postgresql.org
[mailto:pgsql-hackers-owner@postgresql.org] On Behalf Of Dave Page
Sent: 20 June 2006 09:10
To: Tom Lane; Peter Eisentraut; pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] CVS HEAD busted on Windows?

As I'm currently running all three builds from one task, I'll go
separate them out now...

Well that helped - 8.0 and 8.1 built OK so I'm fairly sure nothing is
screwed up on the box itself. HEAD hung in make check again though - I
killed it this morning (after 6+ hours of runtime) and it reported:

============== creating database "regression" ==============
CREATE DATABASE
pg_regress: could not set database default locales
make: *** [check] Error 2

The full output is at
http://www.pgbuildfarm.org/cgi-bin/show_log.pl?nm=snake&dt=2006-06-21%20
01:00:01

Regards, Dave.

#6Tom Lane
tgl@sss.pgh.pa.us
In reply to: Dave Page (#5)
Re: CVS HEAD busted on Windows?

"Dave Page" <dpage@vale-housing.co.uk> writes:

killed it this morning (after 6+ hours of runtime) and it reported:
pg_regress: could not set database default locales

That would be here:

"$bindir/psql" -q -X $psql_options -c "\
alter database \"$dbname\" set lc_messages to 'C';
alter database \"$dbname\" set lc_monetary to 'C';
alter database \"$dbname\" set lc_numeric to 'C';
alter database \"$dbname\" set lc_time to 'C';" "$dbname"
if [ $? -ne 0 ]; then
echo "$me: could not set database default locales"
(exit 2); exit
fi

Could you gdb the attached backend and see what it's doing? Is it
actually consuming CPU, or just stuck?

regards, tom lane

#7Dave Page
dpage@vale-housing.co.uk
In reply to: Tom Lane (#6)
Re: CVS HEAD busted on Windows?

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: 21 June 2006 14:30
To: Dave Page
Cc: Peter Eisentraut; pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] CVS HEAD busted on Windows?

"Dave Page" <dpage@vale-housing.co.uk> writes:

killed it this morning (after 6+ hours of runtime) and it reported:
pg_regress: could not set database default locales

That would be here:

"$bindir/psql" -q -X $psql_options -c "\
alter database \"$dbname\" set lc_messages to 'C';
alter database \"$dbname\" set lc_monetary to 'C';
alter database \"$dbname\" set lc_numeric to 'C';
alter database \"$dbname\" set lc_time to 'C';" "$dbname"
if [ $? -ne 0 ]; then
echo "$me: could not set database default locales"
(exit 2); exit
fi

Could you gdb the attached backend and see what it's doing? Is it
actually consuming CPU, or just stuck?

Hmmm, running it more interactively I see what was probably the hang
when run from the scheduler:

---------------------------
psql.exe - Application Error
---------------------------
The instruction at "0x7c8396d0" referenced memory at "0x00000014". The
memory could not be "read".
Click on OK to terminate the program
Click on CANCEL to debug the program
---------------------------
OK Cancel
---------------------------

(if that got fired off under the scheduler it would appear to hang as
there would be no display to display it on, and no way to hit OK or
Cancel).

Unfortunately gdb is giving a somewhat useless backtrace (yes, this is a
debug build):

(gdb) bt
#0 0x7c822584 in ntdll!DbgUiIssueRemoteBreakin ()
from C:\WINDOWS\system32\ntdll.dll
#1 0x7c845ea0 in ntdll!EtwGetTraceEnableFlags ()
from C:\WINDOWS\system32\ntdll.dll
#2 0x00000005 in ?? ()
#3 0x00000004 in ?? ()
#4 0x00000001 in ?? ()
#5 0x00bfffd0 in ?? ()
#6 0x00000003 in ?? ()
#7 0xffffffff in ?? ()
#8 0x7c82f680 in ntdll!RtlGetNativeSystemInformation ()
from C:\WINDOWS\system32\ntdll.dll
#9 0x7c845eb0 in ntdll!EtwGetTraceEnableFlags ()
from C:\WINDOWS\system32\ntdll.dll
#10 0x00000000 in ?? () from
#11 0x00000000 in ?? () from
#12 0x00000000 in ?? () from
#13 0x00000000 in ?? () from
#14 0x00c00040 in ?? ()
#15 0x00000000 in ?? () from
#16 0x00000000 in ?? () from
#17 0x00000000 in ?? () from
#18 0x00000000 in ?? () from
<snip another 1000 or so lines>

Visual Studio can't do much better, but that's to be expected because it
can't understand the mingw debug symbols.

:-(

Regards, Dave.

#8Tom Lane
tgl@sss.pgh.pa.us
In reply to: Dave Page (#7)
Re: CVS HEAD busted on Windows?

"Dave Page" <dpage@vale-housing.co.uk> writes:

Hmmm, running it more interactively I see what was probably the hang
when run from the scheduler:

---------------------------
psql.exe - Application Error
---------------------------
The instruction at "0x7c8396d0" referenced memory at "0x00000014". The
memory could not be "read".

Well, that's pretty clearly a null pointer dereference. Any chance of
mapping the instruction address back to something useful?

This being a psql-side crash, it couldn't be related to the symptom
we saw before of initdb not finding postgres.exe. I'm starting to
wonder if maybe that machine has suddenly developed an intermittent
memory fault or some such. Have you noticed any other flaky behavior?

regards, tom lane

#9Andrew Dunstan
andrew@dunslane.net
In reply to: Tom Lane (#8)
Re: CVS HEAD busted on Windows?

Tom Lane wrote:

This being a psql-side crash, it couldn't be related to the symptom
we saw before of initdb not finding postgres.exe. I'm starting to
wonder if maybe that machine has suddenly developed an intermittent
memory fault or some such. Have you noticed any other flaky behavior?

I have seen similar behaviour on my Windows box.

cheers

andrew

#10Dave Page
dpage@vale-housing.co.uk
In reply to: Tom Lane (#8)
Re: CVS HEAD busted on Windows?

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: 21 June 2006 16:08
To: Dave Page
Cc: Peter Eisentraut; pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] CVS HEAD busted on Windows?

"Dave Page" <dpage@vale-housing.co.uk> writes:

Hmmm, running it more interactively I see what was probably the hang
when run from the scheduler:

---------------------------
psql.exe - Application Error
---------------------------
The instruction at "0x7c8396d0" referenced memory at

"0x00000014". The

memory could not be "read".

Well, that's pretty clearly a null pointer dereference. Any chance of
mapping the instruction address back to something useful?

Not sure how I would do that. Any hints?

This being a psql-side crash, it couldn't be related to the symptom
we saw before of initdb not finding postgres.exe. I'm starting to
wonder if maybe that machine has suddenly developed an intermittent
memory fault or some such. Have you noticed any other flaky behavior?

Nope. 8.0 and 8.1 build fine now they're run from separate scheduler
jobs. The management card hasn't reported any errors, and it's a server
grade box with ECC RAM, RAID 10 disks etc. Plus Andrew's seeing a
similar issue of course...

Regards, Dave.

#11Tom Lane
tgl@sss.pgh.pa.us
In reply to: Dave Page (#10)
Re: CVS HEAD busted on Windows?

"Dave Page" <dpage@vale-housing.co.uk> writes:

Well, that's pretty clearly a null pointer dereference. Any chance of
mapping the instruction address back to something useful?

Not sure how I would do that. Any hints?

gdb might produce something useful, with something like

x/32i 0xNNNN - 16

Failing that, see if you can get the linker to spit out a link map when
it builds psql.

regards, tom lane

#12Dave Page
dpage@vale-housing.co.uk
In reply to: Tom Lane (#11)
1 attachment(s)
Re: CVS HEAD busted on Windows?

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: 21 June 2006 16:32
To: Dave Page
Cc: Peter Eisentraut; pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] CVS HEAD busted on Windows?

"Dave Page" <dpage@vale-housing.co.uk> writes:

Well, that's pretty clearly a null pointer dereference.

Any chance of

mapping the instruction address back to something useful?

Not sure how I would do that. Any hints?

gdb might produce something useful, with something like

x/32i 0xNNNN - 16

Not useful - it's all in ntdll.dll.

Failing that, see if you can get the linker to spit out a
link map when
it builds psql.

Attached. With a little poking in the VS debugger, it would appear that
the address shown is in fact in ntdll.dll. It shows the following call
stack:

ntdll.dll!7c8396d0()

[Frames below may be incorrect and/or missing, no symbols loaded
for ntdll.dll]
psql.exe!0040a269()
ntdll.dll!7c839620()
psql.exe!00404532()
psql.exe!00404983()
ntdll.dll!7c82fb23()
psql.exe!0040a269()
psql.exe!0040a32b()
psql.exe!004099d2()
ntdll.dll!7c82f9dd()
msvcrt.dll!77bbcef6()
msvcrt.dll!77bcc077()
psql.exe!004011e7()
psql.exe!00401238()
kernel32.dll!77e523cd()

If I'm reading it (and understanding) correctly, that suggests the
caller might be GetVariable().

Regards, Dave.

Attachments:

psql.zipapplication/x-zip-compressed; name=psql.zipDownload
PK6��4���J�Opsql.map�]ks�6�����l;�D�������k;m�8�'�GD��J���_)Q@.��w�KkI{�b�xX�7�����UB�
-������W����WYxF1���<$�,��������y+�[��<+��8��[�oo�O��d�OJ�'���z?K�o�+��N�?�)���RZ��d���"Krf����<��$������4K#���� �e�=�2JF
V�\F���<N�e��EH|Z
!���1��>*'g��k�s����}�[��xb����H��;b-u�����~,)�/���������Z����f,�����o��7t��
.��o
r�-J�9?B������W������4�����C��Rka��`X?���o�km<���,�~���b����`c�l�QA�
ZQ��U3�z����4���S���L-#�KFX��.-���c$N,[�v��8�>BS�8�l
Q�%+�:���7�p��h��S?�tk-pe=M���%��Z�,i-�c��_�{\�X��f~)HB�vM���6�ML�'N4tm��Ipa�\�hDeQ��+{��l��M������4�����FZ
�4�.�4���F�%����)� iI|e�������F$��*fJ����BI}[�����"�Z����Z���������L00J��q1~A	��0�|	��8���A@KVd�18d�����S*v�F�E���#�>��:�9n�l$���,F�� �'�]j=	��(e���e�)��z%W��1c�q�3A�J�)_�)!�[�s�F��)�)��VbRl��m�q�q�Ui����6����,h\���>1H���YjmO���/�F�%�j��+��/Z�c��;�i�r{�8��GK
�����M���2�b���lR�.�3L�mwP
��}k0�����q`��i����kz
����a�B&�J6�&e~A��L0�7�������h*�������X6����'oGI��/=����e�@��V��j�@,����1���������~��|�&�~_6�� ��W$j�)X��
��<�;/��3hT�Y�$��%��(9@HB0���������?�?{�4F.�������(h
����	M����l"V���������ox�������"��y`�J�� \/��.�0�Zp��.,��9(������B�>�y7��pA/����Ot�?���T�e,?	5_�!�����m�m�d��r?�������$�	��G�����%�������C'"��l�zE��(��`EX��3�ya�X��F����I����te�<O;����k��Nm4<�����_>|���O�_�>y��>�z��x�����>oa���s�f��Y�������O�C��Z�HA�_sV``
�?���n�T�>�����-�H�������%����^��H��Q�� ������U���Q��D� z��PH���3`��#��4���_>}���=�/�9B���X��iL9|����/�,�8y��/z��YN5aK��Zyhq���Y���G����(YT9��me��"���2�Z[�J�D����m��X_C���I|��U������G���b4}FY	��K�S���/�^j��M������hpu����/q�Ih��{�)�P%�-��4^��M�������K�N�q2���H���ELV��O)����<��U�^a�Z�Qati�����$���,�Hq�����~�^��A"*2��u.�E�h���6%�z��00����u�U��n�����m�q��)��y�3.���'�3�?<�,�$�� StuY�*���D��V�kA��y8��l�})"6��]Y�d������m-�Y��Z8�����b���rP[��W��~���#]�V��r_T0:��G���q�j0�/�x3���R��A���\���0����umkg��@�@��E���e{��{�N�Eu0���giQ��������x�[�9�fH4Yj��,����A]mt������Djw)KZ�r��������^��J�*�AM�H#/�\"��=;/!�!	3�������)�e)lB�*|����l��!�Ft�W�p��:�94-v!��
|�4�YZ6*q~�t�(�;����V�����wx��a`��*�V����^���5�{�!�Z�lW5�$�f��
�z�P�f��k����Wc
w�q�6[����]�J��yz�a)��+�dw��e��.��:������8�	�V�
����uq|�.�~�����J8Z�E��� f�8
W��!���0��Z�h���(F��,�J�&FU��X�?�N��'p�<��)�1�`-;�^�Q��b���M�.*�En�@��Cix��-m��w��'�09*�Z����w�y.��e�����-�z����)/�y������m'��n��Ex��SG�z��f�l�N������m@�%
�������e_��r1
��>��1��Q�h�n�����F��>b��&(AsTUi+/���/4�e
�
���]�p���o!u�w�<Qq���
�=P�L/4G_=#}8)]"�E��IiO�@[Zf1�eE�����SS���&_��]�SA5�Q��9��8	?b�9]t����,�(�P�x�O,�]���)jb�R���Br:���w���s\L�QiR8o�,ko*�
q�P U������LQ=�#+Rn���������_Z���c���
������'�O�o�Q��E��D*��@��������u�b���,K�8u���b�n����>J��
�yqW�� �n�j���e[����{w����F��OB
��$�$�K�O�LQ�;7��kI���P���7�I��a��h���7�Fi����a_�����`P��+yui���m��ZT	�\8���3���SAu��d�L�}y�w��2 �����h���
�	��r�{C���N�B}Nv��Q���<��Z�Yu����W�CL���ySn���S�t��dM�����6J�'NU��oIn�>�J��7n[~����>��~��&Yq��F�� <���� xF���:�}�=�vg�0VD��Q�4$U�~i���'�su�(�.�!J!�_����]p��)s�����:g8?gX?L�dK�
))x���G�����	?`+�������I���6M��V���Sa������f�����%!����J�Y^�������:.}�8.B�?���K��1��:e���?�H&f}��Tf'6�|�'�t�����`��������|hbv#�[����'�lg@9�>yG7g�n�R5S��'v��l�S�=|��S�M��m�#6d��h����������d�_g���g�m�#;�]~�8N���f������������z$���_�=�����">`d�+4)�);��x�H���#X���)��g���������4o���@������~c�����9&�w6h�z��s���t�_�u�w`f�����g��_����Lt:��������v0I��x�,�Ca������K~7��v��T��)�2���f���VB�5*���Wo: T��&fC4&2���~�g����4W�sb���M��<5����������&o?y���L<U�$��P�SQf��:
�#NF�L�i���PW�������[�M�7kt=���\����e(	fT�|�z�SL��m�F-�����|'�_�lfd�P{W0hfA#����D�_f�����n(t_�%r��	:�'��������]MZ���H�~����[O2�����ImJ��(�0�[���!�<V�8�f�
���'n�����Y�����x�m�FB������3UH?��"���J�~z|���fM5�)^����U���s0��,0��b�P��)O�S�O��(��=��*c�\�U�D%$I9-�n�Su�z��e��O����q�f`���	���H;dn���=��w�_�U/N�a$�k��H��iBmwf�Mo����2��W�x�j�	���hn�c�������3���]T��L��L�H��.T��n����6�nTC�g���D����M�d�oJ6��;W��!�������c���g`�N����%:=�B���(��=�Y���,���Kqz8�{*���S+p�����w�����qT�.������\i�j.�H2U]�$�Se��W�4�O�I;����	|�Q��&����c\0�i�����������t&)���R�}��eW��4��%b�n���2�i���d3�O[dV��r���5���`�h���0����#�l�[��FRG�Y��P?���1��>GJ��=����S�ai�;��8@8[����IVj��>�Jm��h���jp3�jI��s3R]������t
����	'���.3�s�Wm
�;D��	p�����qsy �+i���� ����4��I��Q?� ����D��LEkJJ���,���^)�r�t��qC�����{�Q�w�_z�D���8�#�������T�4���R��e$�h����\�;�H��5������5x��*��O��&��X_E�������[�z���;q;���Q���R2��D+��-y6�<zl��2o��nc��ns^�!�����'�L���Q�,����S
o�	�z��3m��&�X��]��b�A�b���y"������	��f9���^1� 1��I-O�����k�����fD��O���f:fk= ����r��`=U
���m�5j���5��`?s�5���E����U=
*P���
�c-��^O�i6(��8}����
�R��1�(�������L��M�M���hr��o�5Zz���Hk$Z��5��C����~9��:?��}�_@��Vj+�s�3��(������:��*.S:����I�F��[��]>5A�IK7�$��g�_k�n���%�0S�3��z�f�.�v�$�"!&H��C�8���s���e(Isu������7EA��i��=,W����"�R���|����	�`�W����8��}����8S�j��{42��@
#�f3A����1��{�R�=���M�
S��'��#)��{eZ�r�c �p&�:����#�jZ#��F��� U�v6Ri�'��tH�fY_�'��6s��fa���M���&5�sml�tF"��8ou:@������n
�CT��yn��5��=�@/�#cfSiv�"^S����,[�OG�<;n�B���QQ2�V���e�}@g5W��X%��'ATP�g�Yi����B�d��H�����/��.2.�uJ��!��J^��Men�����a��{�����K�e�@�gz�(��*��]*�������-�2�<Q��^���3����Fa���~�7j��E��xj�g)��qB^���L�?`j5��t0���dC�T�jo�3QI��z)�;hbU��}�q��L�����5A_�i��:RD`HQ��@^u"�A��p[u�RX�Z�WGx0�_���q}��hNM%���5���4@�����WOi���T��������"�d���������Rh������_�(�Q�W�OVW�0��L#�{U���4��9s+|t+��[1Y�����������2�cY��
�
tD�O���G�A�u24���h��-z*��Y?���H��[�q��.�PY7��QT�}�����@�V��<}����y�y����;h��c�����n����!�����S����n-VY7��1'e��gh��c��wL��rs�����b���[�T���~�ee������
�F���g�l�J�h���+����6��;-T`n�������w����&����&f�Wh��Ghnx����y��~L�H�z�1.�?��9��1��8?�_8��n���j�_OFa��P�<�cB��E���1(���:)uq��fU�&on�_OF`x�p����y��uu�Am,j���A��I`�u�������~��MC�����
o1RY7�@���68h������T���o=Z��k4��<��m��
/sQY7�I(��!�������Hox����y���&��T�Aczg��]�j�n�I0ds4�w�{�7j::`�E�_$��y����p��5a��
���K���H��h��������T���~L3�Q��h������������\
6��B�=�_��LG��YA��������F���oz_���y���V1R
��@�{�W���q�
5������?1�XGe�<2�R���1���V�u�������1+��7�������q�3�;�~0��zY�I	4��������=�m#������y�S��H��pU��'����k;���Ip��F���x|���@A�#z�����B~��h�F�������:�
�|B�m��!�y�NZe���� h��}b�������o��r<�6��c��A�����?�s�����Cz��FZ��,5�6�&}`�G���&���L��e�X��
|.�.���{z���m�8��'.�u�u�|!]�?��Z���a����a�~���'�����H�]�<jJ0�6���>�}v��?�=u����O�6��~����/��[���a����.�H@�y��`�m��!V��7cV}�]I��������1�������)���������^Qo���
LO�}��'nNs�u����;�oC>	1�h����V�~�+&x{��I�	O�3�B��$��rU�{��I����w���'+�������L�m�$����s~$z��?���*$�f|d�C[,q�x��sux����O������/��O���0��F�����,|9B�L���]u������m�'�'MK0r�@�]�P���.�K6��u���H�Z��?�/n�}���S����q���N�?�	������sG�:�_UT��u0o�;)9����<����&ok;��!���������xl�Z�����Ks�1����M�K����q��v/���o;���������V�I��������1�����Y����t��K�l#(���h�aF��`���+cml)���]Uu�$��kw�@K��^��������6�X�9�	��;e�/W(9�r��:{�l���Ml*�����b��T$����zMg_s�u��h�c
qz��N��S��1��m�p��������s�,�{$-qQ���=���-��
�I�L/���i��3�F
C)�{4-41_��w�E�;Q�=1���;MAN��L\��x�'��(����7[��(�����#L���t�_��{�-k��t�Fe�l[z����f������G���RML��We�c�w�FGW�uK���������
��5T��8�G��L#��b�#���Uy�������^��9FT�g�*o�S��������6m��~��z;��9���[�r�	5FU��1���&UF��|����;|a��X��K�jC��#!��(�"����J�����~HE�jB���'w���hKC��)`��I��n���IZT�{K��3���`I�������(���[?�;z;Z��Kv	g�k�7�t��wkAn��7�i�)��)2PM(]z�6jQAk��wK8	\SM��J��Oa��s�X�9��)4�L(]����9��������l�<p�6�qec��5_����o�)�%c#)��a��$}����$��/Fn4h�P�����X�]{d��&�.;��y��w�@,���-���9h�����{�D;�4s<��\g���I���$K�����6oM(]�f�T��M�",i�]-1�t�������K����	��M(]�>qM��
!�34��rL(]��Oo�s��?�	#d���"��z��&���&�w���j�f�����3M�?���������3�a�b$��N��.��N�0:S��qm7}�m����)&g��#1�s�
�mi
��	��#��5����)�f�����]/�'���
o�[3Jq���fw[�zC��66�����9�mPIS_+I�67���`2#J���������&��L��knv��h����`��DG����(5��7M���J�B�����V�x��X��+G�Mh	ocS0����F��)���<64OocS0��}#wA=�pxT��M�alF0��qZ4]�M���,9�&���������,9��v��57/��	���f��7���K����Y\z��%���Ls����+��Qz��%�����Y�6g7�����Yz[�%�����b$VE�J�+Wz��%�����{J%O(No��d������Ym�
x��7M�����J�nK�/`u��7O���y�Z���'V/x������4l�]��xo��[Y4S<v�f�j�Gd(y[	lewu,��+'�]hK�;�J�`+�g���H���jz��;�J�H+[����Y����mx�8+[���G���������aVO�0cu�=���]
�8+������F�H�U7i�9��w���QV�
[~$�J� HA�C���VFx�z$��P����`%p��5ib�n$�J�������\b���y�|���mxV�&x7�t�\JF���<+��	���������f�mzV'�%�F������hLso�������n�Fr�m~V�3�k��5?���]y����L�G~���)OH�m~V���7�t�#�
�����Z!������t���/�v�T��Y�\��u����S%�+�iW��yN��mZ!�����J*�<�}j��bao#�BF�Kx���h��*_���t3�{��52WGDC���z�V�p�k��t�e������^kd���Slk�\��^�G�`�m�����x������D"����[#C��������u?w�����J�v����e����}kd���c��J�\�������?�h��p�,����]#����!co[�F���b`��v���b���%�o��Fv��9����k+)>�'%F���B���<��V�]#�Wo)������r��}��5�oN�Z���9�h��Fs���!c�]�����O�+��z��]##zl6��G���o����O���1�o��F&��v�#_&�.7]@�t�6�k�a�O��h�����o~���6�k�1��[L4]�%��/��g��������o����Lh���I�Z�Z$�j�^��+yu5�h�t6�a���x�o~�b���6�%���p�tM�_�u�q~�����%�~�S�h�����z�����~������K���	���J����I�'��d9��}���� ���MW���>}y������W�O��VGY,W��9�������S����/E���_������gO��?�����9����������m�����/������>i����_������<�;//���r��M6�����j(���3�|e��o�%:��3^f7Gm4Gm5G=��+�lL9f�*��{�~WU!�*4a���>�����/e�s����k,�=Q����?��u-��-gz�P}|F����K)�����04I'7�k������j����m�v�O���A�}}]G���z(���w��;�7��7,������xuy��Pk 
���~u���g^���S�����w}f��{�U�U&0)�B�7d�"�Y^��R((���U�r�o8�Uo��'Po8=V=���v8���j�Q?��?p,�Z�	�Xdw���~��]�M��~?
�1�V�.�Zn.f��i7���w�_���a�6�<�� .y^�^������&T�R���2L�<���L�ti�z{<���+-��)���v�G/���i]�Xm6�U9|s���;x:������F_VT���v�y���n�������&���p��B����-6�_����j.g�{^��Y��9IU����������(�.��z�{C�F���~('H�|q�l�|��a;�R�=�:��U��RT_U�i+v�������]�
�ybb�ui���n{��������6����J�Z��EY�I�[q�G`�e0��Z�`�=t,3~����h����B�s&������P+���������h�����|y��m�����o?�n�����	�i0=)�QOiVO)R�}�o�x���o�p�}��k��)N�Z�/��������)e�]JQ(D�2V?�
u]�ccj��K��E���*�sA��F�^M�Vq����ScT�'M���D����������)}�q�����_Z
�e�5g���/�3*�0�6�8��t�]�e�����\�7{*�9�*��|�N&�5k0��$�xy���8���z����1���/����8������f��B23O�m����f�{f��z�)�#3������G���/41F������c�3$��x��z~m[�ya(���F����5<��H����W�L���p7n��\74+c �'*��Zm�3;k�j%U���1 c���@�W�R�[���i+�C?l�K��]�9=��@�$%�z��\��	4�����qZ���m��1�vg��e���I$�����>��������ey����+�__������N���������X�����U�Y��������"���WO/3.d���D�R�E�P�N4~P��� rm8�@� ������I���	3��E�R��X��~p8X�lX����,4�Ez�"V'���y�t�C� �
3��p��=��ja]��Y,h��8�GT��"��	�(:E?��gc�+	�6�w&�����6�<��l�u���a��K��%��1�^���q�M���B��rTs#���:����<��	�~��{�9��u��da����0�:@�Q��d�����Cd���2@�1nF ����u�e-d��1�	�u���:�z��Z_gKA�z��h �9l�h �9�2�,D�PC�Y��a���Y��)�d�B���Y���DQ��uV]:�u��1�5n�8@���q��3��Yg�7&����%�^�.��z��q ��2�Y�x*��:�` �w�4@�9��i���X��Y/q3��^����z�5${��#������:��({��#�����u���"D�XC!��v�"D�X��Y��)�5��Yc�E��:����5^�G�Y���/dc�[�/�# ��Z<S��z%f�'
�J�����k�3D��w������`������) $&�l* �+<�W�����
�f|������	������r
�_d=�k���^������Bc�m��C���6���Xr�'���%�x��7,�
�7(4����
On9����%�!������Bc�m�����%�!a����a�3�Xrr�Ph,�
�X(4���4bZ��[��_q�/7h��1�x�	���&� -p�8��n����E����xr��B<��-�#n<��
o�s���s>������q��v��)On���S����"���\J�De%���������yq��D����<����Z0d�a�Z0d�O����p��/�h����e5��FA��*��Gq��^}�9CV�?/�eO�?KY�&��_V�D\��*�����U21�Y%�9�l�����(,+������y�l�	E^0
�����@�D�0
w�����;F^1
��c�s2Sc�#�����f�*����a�/����q�#���S*��9PX��������_6�����_�v�����	K��(�WB>/
�q&���@A�'���@A�J�����-� ?�
���9�(8�$���@�A&A�-
O	�m9P�;'���@AmO�W�����~-
�j	�l�P��@��
�[��l(����eC�>�Y6�8��eCae�~,
O�	tb�PX�����z�W6�+�����2@��
����u�A���������/a��2���0�W�L���
)�������<e]�	r]�����,���vE�|W��Hi��)���d�t_�|	rZ9PX/�����L����:�:=���������qP��5Ci���u)��mQ|�G�������v%�4�����A�
ZM��@��j_&)��
Z�������L��9�1���U.�Z�>���M��)Y(r!
2o_A�2�{�?�����.���
Z��.�����JR�����k@*@���^����hRr]��o�~�%r�tK������c,'�>�|;���
Z��Zw���r�wPP�k~E*��Wb+?�i�n6k�r!g�c<�U��=�
P
���YE�Y��|O�
9�����M�5������Jp���j5;)o&���d	�jR�:b��
�+��dZ�����4aH�96Gr��9���T�d?�cuwS;��6��o�Af�5���$uK1�$����
�.�%�]�W�_W�%C�6��h:� ��K-�����u���Q���7�$�@w�^A��i�o�@�B�L�x(mH�z(��:�N�����B��9��V�jz�1Il�BE���$��6�VC�Bt
����@��W���|�wh]4�M[�v�yH.���.��Vt����"v��#�C�����Q
��.c
h]J�=b�C��,� j@�2P:N����#���%j��5�����.Y�5&K�g�8hV-��H^�'edM����)���H
������S�����!YWr<�Yv/�7~�yH��OG	�j��m�,Q�+7����P;tQ��.�?�D^�+G7��w�Ef���H����|��k�����Y��`��
Ml���d�Y��:'������o|�JR�DxC���E�;��Pz��Ex#����DIl�r]���'��������M�8������X�o����+]�whh]v7�`i�
(��4�.��D0D	��s>rfO�:]����i���0Vq�u9�����������F��������63?z!��M��P�v�����'4�u9q[m
���4!��"<�,}S���cVj�7�h]V���]�����������[��aSTp�
�*��cAh��B;/�IL���h]N��u���������)�?n�T��0,D=��D6�yb^�~���IZ�U�6�9@ ����90@��Hz#��0����0��^�z�]�E�@'���HVqat9������HT��Y���JVqat�}�C�
j�dr`@���L6:�r2Y�E��$�7u���yx��0��9Y�E����f������^IH4HeM�3��E�n��Q��7vODT(����A�ZjFB'2AB*��h���=nWm�8��+.:�	�ZY�E�������nv�A�Z}��i#sZ�*�`Eh���d�����h��eM��_�T0��y���	[�
�Q�����?=�YZOLKTHO�CI�d4D1��R�!'�U\4]:7��~���a���S�*.�.6��7�D6/o����*.�.>��N��.D�K~7�6�����@������x����hVq�t�|����pM`^�������n�c�j�O2�e^&�!O�U\4]N��K��b�R�l�CE�|�����fS���t�C�8��h���|�D�����;�R����Q>��h���&F����p�[gM������^:��S%��"�&T�P���(1�N��
���h�lv��J~(�Rj%��Xp]��#�(��
��������r��������Y�E������[����S�t�>��h��H4�fb�Rx`�N�gM�3�n_�&��������2�+�ot�J
O��9����2����O-ppJ���{qa)3�%�K�(���\�8^.��M���\?<���B)S��33'�H�T������[��_'�l��O%��S}�
��{k�`�;0�0r'L���T�EQ<�Eu��	A-d���)Z�:�����2��
3l��T�DOC��v��RF��!M�U\(]"��2]
�~�� �c/]LD����|C�L��P�����^�}����"�����n(*��"
��1�����������@�_)"F�RQ
E���c80���S*�hV{����#�a}){P4��;L)h�	�
4(�
}x;e$��'��TL���*<40R�&�8Pl��_2r�&��KJ�������!��{sJ�m����LL\9�[l}3��&gN�����z'#p���S*����goF"���P��I|��D�_��jI��(QlV��[����)� xl`�;N�����h�M0��THC%V�
�J edWN�~UJ�f�h����)����9��'VT�D��� yB��=���'���1`�P���T�D��N�i�Y�R!�)����IU=aCSQ��x����K�(���Nb����f'�Xr�i�0��
s�ra�8Y�'�1TpC31C�����5 @G%#�w6���b��$V��@�������
bx��%�����Vq�t9S������	���SP6�@'��3�>'��t�6e�D�`[����Da����)0R�gf#z�hN�	�0e��g�#8��q>��
/�I������+J�T�4B�,2N�x�Q��#�xe�,�8�IF�	�������d������QI;��[�Ik�}��c���P����v|F�"��
l�e�4�8�FF�!t��2����962*
��='m���
A�(�;����+��
@�(����*����T~�8�	3��0��4}�H��L�f���Ea
;&�J��Q�=�-8w!��]F(�_p.Q��[2x������TJ��8?�q.m����|B���9�s��B��x���q`(���H����d��8�K��$���a�
��8�R,��@8�v�n!�:,q��b�p�od��PP���B�����h������_�����b�3ioPp����$j���P�����}q���o��:�UQ�`q������P����)�3
@��`J���Hu:�RT��utx5�������\
?D13��>��c��V?���sy�%~1��$�=��K��b�Pv��N�������a�M	��1j6��gn�H.t
���_������IB�!�M�:W5�����}F���	��I��^��o���W�3C��$��D����_2&���E��0�P�A@���H�r�y� g�&p�9��A|_��n��n3.	8�-L��+����"@5t�!���j�!o�A|'���$�X�!���p^���������2�JoU� 0��@`	��p_{�u�H���$�G"s��M"�$�9�	0\���-�|��)�.���&�Q�&[��:�����0�}59�
�������i	p�3�#Q>����!����f�Cl��y:�� �"`|��qBt�����K��|�����K�KBxk�Xb�x8����2��M��������$���%�N�������:\�f�%\�/#�������2��$����E�]lK�%�21��M�����L��xn�m:3����v�-��UCbkzi�~nJj��92U�'M4��rgY=��
Y�	�w���?I
��	�wh^�Q��A.�.�������/��!304�
�[Ex�"6T����	��������9�r:�
-2�	EdW�����K�-��k��;[��o[?��rm�UO�Y���b��e����kW�"m�s����]�>W���HMK�]{�&�8��YGT�zs�aT}�����_N���BzwEi��t�S�g�=z6���{���2b����u�+����J3�sZ��$���[e
-��le��eb��=v�������B+�L��I��$�����j
��7��Y��{Z&C�Qm�B2�h�@���9^�����g
mH�I���9%��nin�Os�dh
K3��q��f��Y�	O�uCK�^o�ve:���zs R�}g���[�GE�����wl�� M�zq���rN�,�:�f��@en�{����]x���������7�����	�Y���}s^��=����^�I@���d$�Oz�
o�}e&�����}U��=luW����3�|=(U3�p@e�{�g
o�W�[
�?����2��^vm��l3��4�B�c�1����^W:���*���uy��W����:A��Ui��t�;T�s4Z�.p���m�2�����M3F�.�EW{����������X 8Pp�]C{�*��_�m���+��O�m	�K�2��
o����L��q{u�hS<���w��a�:9d�#�*��J�Nk]{��������D����;���w_-��kW
������!e������xL��L��;��nm�����d�Z]z��Ch8�N���`�����@��Vz�se��'�h�I(���s+��)���e�`��%��?e���8�Mf���<)9�8���.�},�aS
���J�m*�����]D��6�d�Tv�Io�J2l�!CU�w�2l�!'Q��M%K��=�s��B�C�[zo���!4|�Bz�t����&	�Po��*��A���R���l|[��1Z
/��=�f������|��&b�)��6��������y���s�0<W>��x{���j�IET���j��!Q����1=WS�L��
�5$�"�{�����R���-�`��;nr����o�{����f�iS���m���)����h�ko���p��k��VS1�4�Ss��*��m��_Z{�i�h�%���Qy�d��K��h��5FN�Q�d68�F�@��?��Hf���$�<�����zQO^z���)��9@��CYXO^'cEl�A���fl�C��
�`hc��cCg!�N1t��#,�,@���Y[ynl�E���C��z��d�f\�:�z��:���d��1$�u2!�Y'X�����0t���x*X�z��q �9�2"D�XCD��q�!�����u����u��L k+�� �7c"k��U��3���Yg�7V��po�d�a���w�:@���u��������T d�c�2@�9��2@�9��2@�K�|M�����Y/qold���<_�^HG���:��h�|Y�y/�����{�@��jH���!Q"k�|Q"k8<EQ�������N�(�u��/�5^�Gq��c���Y�X��Y����:��67P9	D�������R�/�h�s��|���Y+4��=���-��g������;��A�\�*��#�u�_�n�0at9�_����`�]�	14�} !��� ���� y����������N4����6$� ������#4������?��Ac��N
a����AR
�'��St��t��%7;�����>�N�����f�zp�Xr�S=8h,���l4tO8H�@����Hp�G�w���J,4l����m@L[%�h:��ot�s9Ph�A�

4 ��@���6a&����	Onx�'�wO�3p�xr���^<���A��
�W���qb���`�Gn�5 &�x���vB�b���s1�*����q%�����b�*�����uHX@A��jHC@@1�K��%3n=RPP����^P���4����q�h���1�RP�(��/+�(��/�d�2��L�~o��13��M�{���8OA1d513 ��e��8T�7@btq�
5����J
�����I
 �9P�� '�
���1�9P��#��
51�YM�h�1�@amG^!
��%dCM�8��@�)9�(�W��@amGn jbJE> 
k;rYP��%��?t$���cC����}(,v��q��^!���[�{l����z(<� G����!��i�f�
{���!+P�YM�j�eAM�j�eC��]P6nA���pB��
�� �<�P��@��
����,��):�l(�W	�6�PP��j���^%3���2$3���2$CVx�'a��2��K���%�U�����j8�HA1d��-h����H��4Pt)��']�	r1M�t���g��B���~����,���NwRP@
�3�r�P'1)����+i
�����(:A���_�Uh�����?^�|��B�g��=�j4�E��i�SU�B�Q������/�C�]}?���������r]���[���39�a�V���gr�"���
�������&'������YA:��z^
����������*�����������/����?���}�R����,����3^.���w�����)���s%���~��~�}����]'����6Fct/�Z��X�6������j���#����d)4������+�Q4Wfa�yx��gK���B^����/J�lv���'��@U7/�g�s�����U�YO���o��[[]V���;]v/W[��j��1������U��]o���Rve�\��������a�?�����<aW9d�=I1{��]��l<����g������U�]u����U�,Sn]��hJ+�M'N5l�>��n�U��� �Z�����a��+%�������.��b��r%=5����W�"J/���^���,6�_�f�
�Y��O-�;y�kq*�JRn?H����l�J�Xk��vm)�FL��x�eI��cX���v���}%<��n�K�}!S+�ah�F����(�]���7v
8����U��Q�Z���l��:�����#CUW�)�>>l��N�sT-����������Wei�������U~�����\�)����jJ
�u�d��������K-��wjj��^V��%�U��Ep�S6=��iYMP��{�h��4��4$���t���%�$g�����/g����{*]?��L*�8�D��*�"�d�)��T���R����`�.�M]���������4�]U�J�w��������~ze<�=��+��1���\�n6�3��_�~�[_�����������4�e���W$�_�g���|��������95<��`>��c����.�z�1������?�����7)�:�~�b{\W��������[�<9�h>�l�A������C�����?������J�_le��6�3���PK6��4���J�O psql.mapPK6�J
#13Yoshiyuki Asaba
y-asaba@sraoss.co.jp
In reply to: Dave Page (#7)
Re: CVS HEAD busted on Windows?

Hi,

From: "Dave Page" <dpage@vale-housing.co.uk>
Subject: Re: [HACKERS] CVS HEAD busted on Windows?
Date: Wed, 21 Jun 2006 15:39:34 +0100

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: 21 June 2006 14:30
To: Dave Page
Cc: Peter Eisentraut; pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] CVS HEAD busted on Windows?

"Dave Page" <dpage@vale-housing.co.uk> writes:

killed it this morning (after 6+ hours of runtime) and it reported:
pg_regress: could not set database default locales

That would be here:

"$bindir/psql" -q -X $psql_options -c "\
alter database \"$dbname\" set lc_messages to 'C';
alter database \"$dbname\" set lc_monetary to 'C';
alter database \"$dbname\" set lc_numeric to 'C';
alter database \"$dbname\" set lc_time to 'C';" "$dbname"
if [ $? -ne 0 ]; then
echo "$me: could not set database default locales"
(exit 2); exit
fi

Could you gdb the attached backend and see what it's doing? Is it
actually consuming CPU, or just stuck?

Hmmm, running it more interactively I see what was probably the hang
when run from the scheduler:

---------------------------
psql.exe - Application Error
---------------------------
The instruction at "0x7c8396d0" referenced memory at "0x00000014". The
memory could not be "read".
Click on OK to terminate the program
Click on CANCEL to debug the program
---------------------------
OK Cancel
---------------------------

(if that got fired off under the scheduler it would appear to hang as
there would be no display to display it on, and no way to hit OK or
Cancel).

Unfortunately gdb is giving a somewhat useless backtrace (yes, this is a
debug build):

I got a backtrace.

Program received signal SIGSEGV, Segmentation fault.
0x7c958fea in _libwsock32_a_iname ()
(gdb) bt
#0 0x7c958fea in _libwsock32_a_iname ()
#1 0x7c951538 in _libwsock32_a_iname ()
#2 0x7c94104b in _libwsock32_a_iname ()
#3 0x00404e68 in SendQuery (query=0x3d2669 "select 1") at common.c:815
#4 0x0040951a in main (argc=9, argv=0x3d27c8) at startup.c:306

cancelConnLock is not initialized (InitializeCriticalSection()) at
startup.c when psql execute with '-c' option.

Is the following patch right?

Index: startup.c
===================================================================
RCS file: /projects/cvsroot/pgsql/src/bin/psql/startup.c,v
retrieving revision 1.133
diff -c -r1.133 startup.c
*** startup.c	14 Jun 2006 16:49:02 -0000	1.133
--- startup.c	21 Jun 2006 17:36:26 -0000
***************
*** 303,308 ****
--- 303,313 ----
  		if (VariableEquals(pset.vars, "ECHO", "all"))
  			puts(options.action_string);
+ #ifdef WIN32
+ 		/* establish control-C handling for interactive operation */
+ 		setup_cancel_handler();
+ #endif
+ 
  		successResult = SendQuery(options.action_string)
  			? EXIT_SUCCESS : EXIT_FAILURE;
  	}

--
Yoshiyuki Asaba
y-asaba@sraoss.co.jp

#14Tom Lane
tgl@sss.pgh.pa.us
In reply to: Yoshiyuki Asaba (#13)
Re: CVS HEAD busted on Windows?

Yoshiyuki Asaba <y-asaba@sraoss.co.jp> writes:

cancelConnLock is not initialized (InitializeCriticalSection()) at
startup.c when psql execute with '-c' option.

Doh! My fault.

Is the following patch right?

I think we should just move the setup_cancel_handler call up earlier in
startup.c.

regards, tom lane

#15Tom Lane
tgl@sss.pgh.pa.us
In reply to: Dave Page (#4)
Re: CVS HEAD busted on Windows?

"Dave Page" <dpage@vale-housing.co.uk> writes:

Yeah - I've been seeing both issues though - Tom's one where it
complains that postgres.exe doesn't exist then bombs out of initdb (it
does exist btw), and the one above where make check hangs and I end up
killing it off.

OK, now that Yoshiyuki-san found my silly error about not initializing
cancelConnLock in the right place, we can get back to the postgres.exe-
doesn't-exist problem. Anyone have a clue about that? Has anyone seen
it anywhere besides snake?

regards, tom lane

#16Andrew Dunstan
andrew@dunslane.net
In reply to: Tom Lane (#15)
Re: CVS HEAD busted on Windows?

Tom Lane said:

"Dave Page" <dpage@vale-housing.co.uk> writes:

Yeah - I've been seeing both issues though - Tom's one where it
complains that postgres.exe doesn't exist then bombs out of initdb (it
does exist btw), and the one above where make check hangs and I end up
killing it off.

OK, now that Yoshiyuki-san found my silly error about not initializing
cancelConnLock in the right place, we can get back to the postgres.exe-
doesn't-exist problem. Anyone have a clue about that? Has anyone seen
it anywhere besides snake?

loris has just gone green again as a result of the fix, so I don't see any
problems.

cheers

andrew

#17Dave Page
dpage@vale-housing.co.uk
In reply to: Tom Lane (#15)
Re: CVS HEAD busted on Windows?

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: 21 June 2006 20:43
To: Dave Page
Cc: Andrew Dunstan; Peter Eisentraut; pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] CVS HEAD busted on Windows?

"Dave Page" <dpage@vale-housing.co.uk> writes:

Yeah - I've been seeing both issues though - Tom's one where it
complains that postgres.exe doesn't exist then bombs out of

initdb (it

does exist btw), and the one above where make check hangs

and I end up

killing it off.

OK, now that Yoshiyuki-san found my silly error about not initializing
cancelConnLock in the right place, we can get back to the
postgres.exe-
doesn't-exist problem. Anyone have a clue about that? Has
anyone seen
it anywhere besides snake?

I'm beginning to wonder if that's a red herring from where I was killing
things off and re-running in a possibly un-clean tree. It seems to be OK
tonight anyway, so let's just keep an eye on it for now.

As a sidenote on the postgres/postmaster merge subject though - Magnus &
I were wondering if Peter's change means we no longer need to ship
postmaster.exe and postgres.exe with pgInstaller. Presumably we can just
use postgres.exe for everything now?

Regards, Dave.

#18Andrew Dunstan
andrew@dunslane.net
In reply to: Dave Page (#17)
Re: CVS HEAD busted on Windows?

Dave Page wrote:

As a sidenote on the postgres/postmaster merge subject though - Magnus &
I were wondering if Peter's change means we no longer need to ship
postmaster.exe and postgres.exe with pgInstaller. Presumably we can just
use postgres.exe for everything now?

Won't we still need to know if we are called as postmaster or postgres?

cheers

andrew

#19Dave Page
dpage@vale-housing.co.uk
In reply to: Andrew Dunstan (#18)
Re: postmaster.exe vs postgres.exe (was: CVS HEAD busted on Windows?)

-----Original Message-----
From: Andrew Dunstan [mailto:andrew@dunslane.net]
Sent: 22 June 2006 14:06
To: Dave Page
Cc: Tom Lane; Peter Eisentraut; pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] CVS HEAD busted on Windows?

Dave Page wrote:

As a sidenote on the postgres/postmaster merge subject

though - Magnus &

I were wondering if Peter's change means we no longer need to ship
postmaster.exe and postgres.exe with pgInstaller. Presumably

we can just

use postgres.exe for everything now?

Won't we still need to know if we are called as postmaster or
postgres?

Unless the 'postmaster' instance starts all it's sub processes with an
additional option to tell them they're children (I haven't looked at the
code yet so I dunno if this is how it's done).

For those that are unaware, because Windows doesn't support symlinks, we
currently ship two copies of the binary. We could save 3.2MB
(uncompressed, 8.1.4) if we could lose one of them.

Regards, Dave.

#20Andrew Dunstan
andrew@dunslane.net
In reply to: Dave Page (#19)
Re: postmaster.exe vs postgres.exe

Dave Page wrote:

Won't we still need to know if we are called as postmaster or
postgres?

Unless the 'postmaster' instance starts all it's sub processes with an
additional option to tell them they're children (I haven't looked at the
code yet so I dunno if this is how it's done).

For those that are unaware, because Windows doesn't support symlinks, we
currently ship two copies of the binary. We could save 3.2MB
(uncompressed, 8.1.4) if we could lose one of them.

Windows children could be handled, I think, but here is also standalone
postgres.

3.2 Mb is not insignificant, but I think we can live with it.

cheers

andrew

#21Hiroshi Saito
z-saito@guitar.ocn.ne.jp
In reply to: Dave Page (#19)
Re: postmaster.exe vs postgres.exe (was: CVS HEAD busted on Windows?)

Dave Page wrote:

Won't we still need to know if we are called as postmaster or
postgres?

Unless the 'postmaster' instance starts all it's sub processes with an
additional option to tell them they're children (I haven't looked at the
code yet so I dunno if this is how it's done).

For those that are unaware, because Windows doesn't support symlinks, we
currently ship two copies of the binary. We could save 3.2MB
(uncompressed, 8.1.4) if we could lose one of them.

I look at that structure was successful by huge backend.dll at 8.2.
In spite of not arranging it yet, it looks great. However, Several K-Bytes are
still used vainly. But, I am not investigating which the is still good.

Regards,
Hiroshi Saito

#22Dave Page
dpage@vale-housing.co.uk
In reply to: Andrew Dunstan (#20)
Re: postmaster.exe vs postgres.exe

-----Original Message-----
From: Andrew Dunstan [mailto:andrew@dunslane.net]
Sent: 22 June 2006 14:26
To: Dave Page
Cc: Tom Lane; Peter Eisentraut; pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] postmaster.exe vs postgres.exe

Windows children could be handled, I think, but here is also
standalone
postgres.

True.

3.2 Mb is not insignificant, but I think we can live with it.

That's about 1.4Mb compressed BTW. We can live with it, but it is still
a *lot* of bandwidth when you start talking about hundreds of thousands
of downloads.

Regards, Dave.

#23Tom Lane
tgl@sss.pgh.pa.us
In reply to: Dave Page (#19)
Re: postmaster.exe vs postgres.exe (was: CVS HEAD busted on Windows?)

"Dave Page" <dpage@vale-housing.co.uk> writes:

though - Magnus &
I were wondering if Peter's change means we no longer need to ship
postmaster.exe and postgres.exe with pgInstaller. Presumably
we can just use postgres.exe for everything now?

Won't we still need to know if we are called as postmaster or
postgres?

No. The entire point of the recent changes is that the behavior no
longer depends on the name of the executable, only on the switches.

In the Unix distributions, the only reason to keep the postmaster
symlink is to avoid breaking old start scripts that invoke "postmaster".
We may be able to drop the symlink eventually, though I see no reason
to be in a hurry about it.

In the Windows case, I think you'd have to ask if there are any start-
script-equivalents outside your control that you're worried about
breaking. Given the distribution-size penalty you face by having two
copies, obviously you're more motivated to drop the extra .exe sooner
than we'll probably do in the Unix distros.

regards, tom lane

#24Andrew Dunstan
andrew@dunslane.net
In reply to: Tom Lane (#23)
Re: postmaster.exe vs postgres.exe (was: CVS HEAD busted

Tom Lane wrote:

Won't we still need to know if we are called as postmaster or
postgres?

No. The entire point of the recent changes is that the behavior no
longer depends on the name of the executable, only on the switches.

Oh. My mistake. That sounds good.

cheers

andrew

#25Bruce Momjian
bruce@momjian.us
In reply to: Tom Lane (#23)
Re: postmaster.exe vs postgres.exe (was: CVS HEAD busted on

Tom Lane wrote:

"Dave Page" <dpage@vale-housing.co.uk> writes:

though - Magnus &
I were wondering if Peter's change means we no longer need to ship
postmaster.exe and postgres.exe with pgInstaller. Presumably
we can just use postgres.exe for everything now?

Won't we still need to know if we are called as postmaster or
postgres?

No. The entire point of the recent changes is that the behavior no
longer depends on the name of the executable, only on the switches.

In the Unix distributions, the only reason to keep the postmaster
symlink is to avoid breaking old start scripts that invoke "postmaster".
We may be able to drop the symlink eventually, though I see no reason
to be in a hurry about it.

In the Windows case, I think you'd have to ask if there are any start-
script-equivalents outside your control that you're worried about
breaking. Given the distribution-size penalty you face by having two
copies, obviously you're more motivated to drop the extra .exe sooner
than we'll probably do in the Unix distros.

Can't the installer just copy postgres.exe to postmaster.exe during
install?

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

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

#26Dave Page
dpage@vale-housing.co.uk
In reply to: Bruce Momjian (#25)
Re: postmaster.exe vs postgres.exe (was: CVS HEAD busted on Windows?)

-----Original Message-----
From: Bruce Momjian [mailto:bruce@momjian.us]
Sent: 23 June 2006 07:09
To: Tom Lane
Cc: Dave Page; Andrew Dunstan; Peter Eisentraut;
pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] postmaster.exe vs postgres.exe (was:
CVS HEAD busted on Windows?)

Can't the installer just copy postgres.exe to postmaster.exe during
install?

That's not something that Windows Installer does - we'd have to write
some code to do it at the end of the installation, then call it as a
custom action. Actually it'd probably be fairly trivial, but I'm having
a hard time imagining why anyone would be relying on the existence of
postmaster.exe anyway, unless they were packaging their own release in
which case it's their problem anyhoo.

Regards, Dave.