Not able to create collation on Windows

Started by Murtuza Zabuawalaover 8 years ago6 messages
#1Murtuza Zabuawala
murtuza.zabuawala@enterprisedb.com
2 attachment(s)

Hi,

I am trying to create collation on windows using default POSIX collation
with pgAdmin3 but I am getting error as shown in screenshot, Can someone
suggest how to fix this?

*Syntax:*
CREATE COLLATION public.test from pg_catalog."POSIX";

*Error:*
ERROR: could not create locale "POSIX". No error
(Refer screenshot for more information.)

On Postgres website, It is mentioned that POSIX is available on all
platform.
https://www.postgresql.org/docs/9.4/static/collation.html
*On all platforms, the collations named default, C, and POSIX are
available. Additional collations may be available depending on operating
system support.*

--
Regards,
Murtuza Zabuawala

Attachments:

default collation.pngimage/png; name="default collation.png"Download
�PNG


IHDR�f��[WiCCPICC ProfileH���T����+)������� �J�E@:�I�PB;���ZP����(�@�����>QYY6T���>��y��9���;����|3��@��%d�Jd���Q�>���$&� r��,v��;22�cywz�r�R�����kQ�p�� ��S8y�l�G�5�a>�Nh7��/�[��B("Y�iR�s���%>1Q��� SY,a
���v�� �l�����w@�`��8�{ O�����H�l��]�����2���Jg�X$����d�������Kv�h�}X����(�����f���jGN�S�# �@���H��|/]+�d���9P�a��B�s�2D���2�e	%��
����8E�%��p����8�&����>��Ry���JC����Ku��xq�� w�eF��������EQb�����
��>�zv���0+6K�A�W~zL�4K��%��i�p���0�+�����%�-dE���m���(�<c��
��b������8�)����G�H��8��0���2�c�i����4��2�XD�������	����|$�\P�_����%H��H"2�S���&����a���-�����1�z%���A����6T����n�IxJ�"<&�$���P���c+���,<�d����+���	�� ]
�����j�w���v��kK�����cs�����U|�����~�2�����LE��~�q���~7G���'�;��ag���	�	0��X3�����Jx"Y	c�EI�e�<�1�z�����%S ��o��-�o��\!/-=��
��\f0�m5�ikm����.�|�aH����7[�\��1���e�����}����k
';�"a����@�pgh`L��l�#p^����,8�� ����%���5`���]��A8����*�7�}�6��0��AH
�#�.b�X ��3���#aH��$#i!���H9R�lFv"u���q�,r�B�"�����b(UE�Qct2��z��h:MCs�"�]�V�5�~�=�^Eo�=�t�<���0K���"�$,b�2�������c=� �'�t��[�����l<_���7��x#~����C�W��E� ��		�4�B)����p�p��~�;"�� ����L$f�W����}�a��A� ��"H,R>������t��M�'} ��u���r�O.&W���O�����#rJrFr�rr��r��v���]����(SL(��Je	���@�@y@y#//�/�"?M�'�X�J���%�^��T�9��:�*������������h�4/Z-���VG;G{D��@W�RV�(,R�VhT�Vx�(�h���8K�H�R���5�A%9%c%_%��B�j��J������6����+��)_V~�BR1V�W�����R9��G��t_:�����~���JT5Q
V�P-W=���:���f��V�V�vR���1���,�j�a�-��	��'p'���0�{�{���^�\�2���7�?i05�525�j4i<��5�5�i����yAsp��D����eO���j�kEi������5����-���}N{P�������^����.]�C���^���L5�73�Y�<�����������7���/�?����b�l�j����`�P�p��|�z�{FrF�F�F������/3n2~n�nlRdRo���f�i�kZcz��h�l�i����5w0O7�6�f�Z8Z�,�ZtM"Lr���T3��%����������afUl�d�r�����k'�M�j�`�e������M�M�M��k[s[�m��
;�]��"�f�W��\�m�w�S�9�:|qtr:688:%;mq������������e��	��������]�r�t�t���|�����S����Y�;�{<��;<z<�<Y�5����8^{��y�ygx��~�c�#�9�����w��?�/�����_�?�����������@��y�g�A�Ak�nk�����B�B����F�n}f&k��N
��n��p�p~xS��X�0�$27��i�i����=�����M���/�]�O����������8��quq����+�{&',H�����KlN"%�%�I��?}���3Jg��i2�p��Y���f���8�5�H2!9>y_�gV��5���%e�����~�����p���g����������
�{�W��|y�y�2�2�g������9��u0����}���������)��XJ=���r����=yH����|Ux�i��~�xT|�7�H�r!��}���s��2����:_o������\�,LY���`Q������k�P�d.�����������-%�%�K�~
���T�TXz{���������+�VlZ���Sv�������J��+?��\�����U�Wo[C\�_sk����
�����uS�5�g�/[�v��
�+�+�o�lm��
�j�d�i�����7����>�Ek��-��r�vo����]{{��O;x;����Xc\S����`���q��~q��n����=_�����F���s�����ou=Z/��?c���
�
;2��D���5��[�C�q>�p����c�ce�H�������������!�[[�Z��f���z'�O��\}�r��������gg����k��z�\�������z���������N_r�t�����W��4]u�����~�w���u8v4^s�������5��T�g���~�/��q�f���[�����q������Yw_�+�7r�����J+i=������8�����m��~�����'��K���V>�}V���������?����B�bd��O�?��4}y�/������_	_��^�F�����o[�#���~7����������>�z62�3�s��/-_C�>���,�Q�MM��^h����q��KR��QB��XzG�G�z��0xF��d*��c�jg7^e%/��V��
o1���o� ��E8::�ut��n(�.gr��>q!�3�+1u��)?��4l�����	pHYs%%IR$��iTXtXML:com.adobe.xmp<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 5.4.0">
   <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
      <rdf:Description rdf:about=""
            xmlns:exif="http://ns.adobe.com/exif/1.0/">
         <exif:PixelXDimension>1022</exif:PixelXDimension>
         <exif:PixelYDimension>614</exif:PixelYDimension>
      </rdf:Description>
   </rdf:RDF>
</x:xmpmeta>
X��
@IDATx���]�}�;�X M��7)v�	-rHE
��D:$��H-�4���i8�-��l�[�nh�^�%*oh'C��~$rF�2U)7���\�b�K���i9�����A��db��R�,u�=w8����1��}�#@�����s�q�|��o���#3����\��N��;w.�k��
�]w��F//��R��j���.Y���%s�����6?��8���7��W�w"�9�9�Od;Bz|���n��o��P��K���K<�s,l�r�a��s4��lKr�����]i������������[B��}�!���8n-�~#l=����n�\�|��7o�������/���7�����v5v��P�C����;��!=�cvdj�P����o�����j�V�3��/_�z���+�?
y�u������@� @��������M7��o��^(�|gc�K�����>|0����VO����	��}��c��1���y�e�J���rd�a�u�,8��;R	�������;!�^2.�{6]0']=�Z�?�g<�>�5K��������v���.��g�wZ��m���]y������o��x���s�������D����)��;C6���~ \w��������!�����U��-�`x�w�<�P����^
go���/�.����"�����c1����7��������l�T~<����N��Y��'~d[8Q������&��7(�k,����m�~wh�o��?��?�|�sc��G�E���4>E��Uq�fy��G,�v|'�7�
�����e}^����4����<m��f�y������.L���W*6�/�|!�(��0w�����q��+�7���c�)�R?�$-��������A��@���C�Y]#@� @��&ps���]�j��#���-�����{c�,��:����^��^�l��{�FM�/�\���\�~"F���{�:>�����y-Fj����L�V���x�8����}�A��t�@����7���,�@�
GC��7'�y�%��i�y��5�uK+�1ra�=�]��kr���u/�������/�H��]�a���%��m�2�������q��?��=�������yy��KR�m�����n�)�o�;.���\���_��a����������u���k���l�E=��l�q�U���O��%/�
������WO��|t�����k:�7��Z�oM�r���^?����o����+��?����9���_�� ��7�R;�zV�H���w^W�����������q,���R��K*���/'�X��|��4���8?�_���c����C�Z~?*�MGu�Z��Z#@� @�Yvs#�v�2�������{~����+7��������\Yq'������L?������f3����J{�����^^�W.�#�eW�_KYc������������Fr+W�+����{�l����#?���p�z7����=��!}��mH����5�f��;���+/���e������<���Pg�eo�+��������86N��,� EH��������L*���b<l���m��w|�Q�#n����-����7�uu�o<������}�����,��P���K��
[[��G�nP���-y5{:�O����y1��f��7]�����N����b��6L9o��yut"�[�r'�}S�����K��&������K����^_~?*�h�5� P��6 @� @���	���K�F6�������[\������q����C��7.��|�}y�o���+�i�W7,�����+����'�c���`f��l&���an����1����{>�������q�y��R��n��3���SQ��~"_\*.f�{-��E����������5�'-����������%�_����t,�h,vvM���E�5G��Q��No���x��@�l
����/��gE��������m����P�t�s�����%��.����s2�a���}�C�,���{�U @�$ �� > @� @�����Q���l�����W�������<w������Q��C��/=�O����7f'C�������_���p���"��{�����w*|;��pw�W���#�w���b?��RH�����>r��������|�����;l]����=9���t�����m�>�b���1��>��.��n�Yu�����x'��,��oX�1��t^����+b)
���������l}H�����%�a���N��(�Y���g,{2�9�(��%���o��lQ������o����f�uY��>��8�6[@�|���������^��x�R��%f��cj����������S? @�������3 @� ������?���������xTV~�OB���A���5����p|��0���P�h���2l~�O���c�W_�����������6�����AHc�a3�\m����?���W�VH��?��d,��:S��/�3���j������_����Y�_E~�/��O>�y��~}���vN����#���Z?�[i�c�r���o7��h�h��t�5��������#��������&����Hm�������������gY���t,w�[S���_�K'�H������u��my���~�q��f�S;f�H��:��kn�k}���O����[�om�a��;���Xq<��Z����������6���*��X��d��d<��,=w��iC�]~?*�Au�r�!`�#@� @���;r���;W�\	������kCz��w������?��Z�*��y�{]���o�����
��t�?����C���&(�u���c��<���������q�[S����S�u���K'�����N��/���������2~��8�"�;W~�.� 0�"�C>��G� @��-ps���������nTtw��X|n�>�Yu F�W�1��:��;�3������(���k���-�h"�P�l��T���3&��
������p���g���!�f5l��(����[��	 @��_�� @� @���
t-�������/���	M������i�u�;���F�������� V��`��O�m���M�����L
��@��������� �����d. @� @����u�BK�(G���-�7�6#-P~i�'@�*! �_�a�H @� ��@���^�V�������z��
�v�]Q�
tI��S�`K�tM@��k�
&@� @��h�_�jU�[�##`���P�( @�=���j @� @�@?|����:	 @� @�@�|���j @� @�@?��?w�\?��N @� @�"�@T @�T���-[�j��� @�h  ���i @� Pe��<z�N� @�����i @� Pe��k���9m~���O'�� @��_�K	 @� @������i_Sw�ygS�d"@� @���	������/ @�����#5�:K� @��&������� @� @��H	��?R��� @� 0j>�����/ @�����#5�:K� @��&������� @� @��H	��?R��� @� 0j>�����/ @�����#5�:K� @��&������� @� @��H	��?R��� @� 0j>�����/ @�������v�-��K^��p"y��dH7������
n��}�������������� @��% �?\��7 @� @`�@��l�����������-c�����j{��8F�O��A]�X�Qu}&@� @��"�4M&@� @��
���W��-�����Bz1_�+_c�����S!-�������g��2�{�|����5�+^	���<K�T8���X������C�5�u���k�U�>�����)���r��?��p�����"M��?�*������~��y�A��-N����7~-���3����*�'@� @���D����M� @��L�c��=h�V���'�c$��}���<Pm;�l�x��6���#�����7qK(�����nH������x��d6��V���������X����"��7��Tt ��%o���w���\�w*���7������+����������]J�]��f��c"�??{C���Q����=������WK��� @�#+ �?�C�� @� 0
�G����[b��@Jk������p��������cD��l*��%��������"��������d�?u�������;�<��������X�=���w*���8�������F��C�;��r�-������]�
�=|����aK�}��j�x���y�s���+W�j�����{�`� @����O�1 @� 0$�G�����B�Z������C���c�?����?[ -��K�����!��Kq��dz��-1�6�*�h���fm��f
��h����
���d�e#@� @���
����h @���@��T�Hk�_�O����px��������������A/��H��f6����=.yqb_H7�ox1>�>=c �_�������{�vO�~rw��|��m���N�w"lH����,	[���
i������4��������Z~~GA�^�5On @����M��q�&@� @�� ����G��?�7��k���u�u�������?}o|M��B��lT�D����t�AL{xc8�"_�v������+��<���_��~�A������xb�c�yd��M��a���$��R��M���?��}�f�% @�F[@���_�	 @� @`���92�N�\��z�����]�6�[���[;^�'�����=v2F���@��������O���������2 @�TE@��*#�� @� @�
��@s	 @�����U)�$@� @�m����m�v�/�����(#�; @��* ����� @� @�B>�Wh�4� @��*���b� @� @��
	X�_��������7��t� @�#, �?���� @� 0�"��?�C�����u�t� @��_���	 @� @����?���i @� @`�>�/T�� @� @`�|����4 @� �P�*�z @� 0�>���h @�X���t= @�`��[m�C=��%� @� @�}���j	 @� @�@/Z���F���?m�%]�xq�����!}�������t^� �3����P���L��T @��"���T @�0��#����H�G@� @� P�*��6 @� @��6*�������m��� @��D@��'�*!@� @���l��y��~�K� @� @�5����&@� @���l��������0�6?�����q|��!���lz"�|��WC���=����w��5K�(�gK����h8rf��X:cw�N���?�s�#t����!��s��u}��>�^����h����S� @������M @�M��F�{���\_�����?�����k���&�_����p�������CGO����MuB����dh���.�+��LH�t��6[��A���Lh���������uM>_��?�,�=�x�z<�as&vw�#@������UE� @�z-P������O���5�q����qh�����o�K������h��|��t�x�t������P������Yl��1�c_�����c�c$<5wl��xh�/�t�Sw<�9�7�Tm������z�����#������k>r�-������.��9��!���c>���<9�9=# ��<���<+��r=y�)��'/���{�|}��ZzxM\��7�_�g����v����@��+]�z2��|o,���CA35���,;.��O�b������q����?�)"�4�������������6�C���	%-�������s����:��?�����,�=g��wgu���@���q��p*� �����t.$@� @��/P��y�}���C{�P�lo}�3����?�"��+�����1�83�"�y�������=E��TN��������5�3i�oj����;��
�#�3��H����/�B�;7r�"�g:��s�3��[�;7-�wh�D��?>��7};C~g�d�?�k��!��=���s�<+�!��e��;<�Z�������?�5�S������3�8�k�������{��H��y}��<2\L�a����)2��O����8>�H���� E���~4�rxMQa��hf�>��:�!�4��Zlg��^\���>?�~|�����y��g���9�%�/~.6�;f^�#_�����/s��#��a���V=��;*���KB����p�t���X������� PA�
�& @� @��f*��5�������K?�����a��G���[���g�K�46�v�^��b�������S�[�/�w]�K�A)��Z���v�)��Pd��F��n������k����X{=����Y��������K.Ln
�����TP>OM�v8�:�MK�;~2l���j�<�H���3w"�
9^i�-x��s���c�!������q|R;SK�<�����,0��������9[<�>>�>�N�v_�|*������8��q(w�(����l���@���o�(����=����J���
��q���3��=��� @��  �?��
 @� @�K����zM����Hk��5�����:_��m���e1��:���I�����n�]_�v�1�,�����d��I�{�^�V��g������h��7��q|�t'E�~M
���4g	 @�*. �_��| @� p#��F�g��w����o���<��0��)��^����u'��5�
���xi��|���q�����C��g
���N�����5w0\�O���x}������,	o��CyI��/����w���z�h����t�C���8�74����y�O<�b������lk8sa{|��i����byg��r������z!��t���������x-�sfO\;����X����L�9�[G1�D����������-�����N�.�[R	�a;�om���o5h��6_�_�:L @�]@��GH� @� @��*�/����~�y�`n�i�|z�����~�x�S`l�3���l�5����t���
�����E�1�;���v��E�y*�cM�o-�v�R�8S~VA~�����	���^�z2�C cux�7����������3y�>=�a���gSO�����v�.�g�}[��(;�b����}�z��wdl����&����u����_E�\��v$7\���Kc{S�RCw[31�m;���+]�#~K@|M�,<��T��`���/��e�����������3o�������'�V���#�KGV�#���[6���{]�<��~��$���^�9�7���e��}~G������2E����v�h�s�p�'��������l���>����T���,�i{Bt6 @������i4 @�hN`���#!�s���p��s�B�v���n��eNI=�P��������Y�xq�����r}�����@������������)�k������	]���X~���L�3���\I�������J� @�z"`��������F�=�����5�C�����Z��>�=�~���iuv���=� @� �X@���� @� @��������H}�H~��+;�N�{��5�m����xh��LL�61��_�6�?��n�����@(_h� @�@D�+8h�L� @���l����|��7,]��g��L��t�Q�VO����/ 0:"��3�zJ� @�#(P���5�#8[u� @�Z�o�� @� @�:���wz�~��Ug��� @�FY@��G_�	 @� @`�*������ @� @�@D�;�� @� 0������&���u@�� @�\/ ���m @� 0d���[�?d3Qw @� @�+"�]aU( @���F�;�f���c��� @��X@���>� @� @��JT6�o����� @� @�@�D�{� @� ���F�[]�����,u @� @��VD�[�� @�TH��k�+4�4� @��& ��7z @� @���T6���5������Q @�X�����
�@� @�V��k�vNi @�����
�� @� @��NT6�����N���@(� @�tC@����$@� @�"P���5�2�4� @�Z@���G� @� @���*�����V�[��	 @� @�@oD�{�� @� ���F�����|Q) @�TL@��b�� @� @���F�[]����� �K� @��% ��/y� @� @��T6�o�f�* @� @��"��B @� @��*�����V��O� @���-!@� @��l����� @� @��
����� @�H�����&����� @����� ��� @� @��
T6�o��G�� @� 0"�#1�:I� @��*P������Z��N�&@� @��j	��Wk��� @��$P���5�-��� @� 0�"�#:��M� @��!P���k�;�4��^ @� @�@�D��>��O� @�n P���5�7U� @� @�@. �o* @� @��!�l���k�[-o���� @� @��	���`�
 @�(T6�o�y(� @� @��Z�ZG @� @���T6�����N���# @� 0�"�C=�:G� @��.P���5��>u�� @���oFI @� PQ��F�;�f���*:��M� @�#& �?b�� @� 0Z���[�?ZUo	 @� @�=���\E� @�*!P���k�;����� @� 0�"�#? @� @��0T6�o��0OK}#@� @��N	��wJR9 @� @`*�����V����$ @� P# �_C� @���F����I�' @� �=���*� @��]���V��w:�GN @� @�@"�M �B� @��*P���5�U�r�M� @������� @� @�@�*�����V���8�� @��% ���� @� @�@5*����L+	 @� @��"���W; @���@e#�����t�����	 @� @�@�D�;� @� 0����[�?��I� @� @`�D�mD�� @�tP���N��o����� @� @�@�D��F�` @� ���F������� @�|��#-$@� @�mT6�����N�o[�� @� @��"�=�V @���@e#����z��� @��( �_�Q�f @� ��@e#��^��jyM��F� @��* ��W~� @� @���
T6�o�w'��	 @� @`8D��c�� @��+P���k�;�^M	 @� @���	����h @���@e#���wr(� @��U@�XGV� @� @��5��F�;�f���� @� P�*��6 @� @��6*�����w @������H
�� @� @���	T6�����N����� @� PM�j��V @� @���*�������� @�F\@��'�� @� @��pT6���5���7��B� @� @`XD��e$�� @��#P���5����C @� @�$ �_�K� @��I���V��w:�0M}!@� @�������3 @� �U6�o���K� @���76�� @�TV���N��o������ @� @��H	����p�, @���@e#�����T�_ @�hG@��5� @� @���T6�����N����j& @�������O�'@� @����l������zG� @������R @� @��@
T6���5���7���Q @� @�$ �_�K� @��I��k��i� @�tK@��[��%@� @� P���k�;��N @� @�@C��D2 @� @���
T6�o�u'�� @� @�@�D�{g�& @� �s��F�;�f���z>R*$@� @�m����� @� P��F������N @�����?��M� @��,P���k�;�����x @� ���0*� @��@e#������* @�,���!@� @��l���k�[-����0 @� �%�.�*� @��@e#������ @�t�A!�#@� @��l���5����s� @� @���	����ZE @� @�����[�����F @�������L�	 @� @�@����wz�~��5-,# @������UM� @��-�v�����n[K��5���n��z� @� @`�D�yt�� @�,P���Z���|���\� @� @���
����� @��&���i@� @��X��!\]#@� @�>�� @� @`�|����5 @� ���9@� @��X��!\]#@� @�7��`����V=999�q	 @� @���D�[7s @���@�#�"���J� @�C  �?�� @� @��@�"�"����q @� �=���*� @��]������� @� @��������: @��@�?�ONNf��_���;��
P�k� @�hO����k�� @� @��N�����'�K @� @�5��}�o�Yr @� @������N�2 @� @�@s=���\��"@� @�:!ps'
i������N9�!@� @������q� @�T^���� @� @���>���q� @�T^���� @� @���>���q� @�T^���� @� @���>���q� @�T^����`��%U��� @� @���	��w�V� @� @��mG�z����^ @� @��
�����I @� Pm��#�������c�'@� @�#$ �?B��� @� 0z>�����1 @�����#4��J� @��'�p���c�FOE�	 @� @������@� @��O�&���O}j�|� @� @�����i2 @�hV���o����k�#@� @�*" �_���L @� ��@������v�w
 @� 0�"�<8�F� @�*06===��B\O� @�����`��V @� @������F� @� @�����0�E� @� @�@G|���B @� @��`
��?���U @� @�#>�w�Q! @� @`0|��q�* @� �����;���B� @�������� @� @���	��J�����)%@� @��D@�HR7 @� @��|E�lll��� @� @�����i: @�h$PD�o���a9O� @��&��~�FL{	 @� @�@E����d%@� @����@i& @�hG���7Z����<���qa�z�����/~���|����������?6Xj��g������I� @�
��7$�� @�TW�a��{�������\H�����t6����o�rH{:���?�#h����99��=�E����{; @� @`a=�<��f�� @�hG`���#3�\�h����1��k����>�XH���R�����ak��x����L��m
����[����-���%��~!�zLg6����>���������,����;+�x3���]�����6��;�-�?����������������������VA8�k[�?�T*���( @� 0D"�C4��B� @������?���/_�_���7��)��x��������w����YK����m���?��!�>��/������[O����gCz6E���o�����\H��p���y^R?.�[���'C!?������78������pl�/��<�p8��������������	~eut��m��l��3y�,9���m�M�� @� 0Tu?�U/u� @���@���M�ocy��&b_����)�������Om5���k����e_
�w�wkH;V(m����f������,����+��r�?���E��{��+k����b�����M��p�b�\H�[�<�u�}a�{y��>��N�$@� @�����"��+:A� @�����X
��?������������������/�����5�S�
����t:�_.6b��|��S��uw���M�_\��WN���!_c����C���u\��������>��X@yX
�x:��v������w�����eR @�
��g�$@� @��("�iM��������0F���L\���_�{��l9>5���-�U�����������}������Z�����oeq�~�������u�x(-����~v����g�������\N����S=���v������
j�5���~����]a����#��/����[�= @�
��g�$@� @��("�i�x���~����g�>�����r���������7
\������t�]s���_�����i{Z��c����������� ����}+���#�w�����k�X���w2|�����
�E�c��|8�l�>�4�����%�&1e�)U��Ok���|��O��/����v����g�;8��*��A� @������i< @������#Gf��r����8g�����-����!�ljnd�o��v�
D� @� 0H"��4�B� @�:,P��OO��p��+�����[����AmW���D� @�����
�i: @�x�b�������H� @��& ����� @� @�R�Y�_)V�%@� @��! �?�� @� @�+"�]aU( @���� @� @�]("�/��RW*P( @� �?����� @�t]�������;�6� @� @�@�D�+>��O� @�n$P�O���]�6� @� @�@ED�+:p�M� @����O�z��iSJ� @�TL@��b�� @� @�����n���V@�%@� @��$�S� ��� @� @����wTq @� @`�D�i4�� @�tX�k�W^y��MU��n���y/6O�e���o���R
2*5\u�^� P��6 @� @���	t<����|'(�Z�*�K�,>5=�����C[��;��o�=�i����thDZ������v���R�o���,`��<�'@��J��Wz�4��HD\=�IDAT @��X�c�o���&���;�[��')���?��s����_��og��x�����Zi���t>�4_���t�s��8V�'ZJ�z/ ��{s5 @� @���	t,�����@n�i������B(�O��V��!h4_�����C���8�����:E�:$0��O�
U @� 0"��1Z�c�r��]�zW�[��V��U�7~�h�^��|)��?���q+�W�ZI��# ��w� @� @�������Y%�&P�����5�y��p������s���C�Z�F�C�Ch4_��T���&P��~�*V0�!D] @� @��'�bgh���'��5_=����	���s7q�D��slsH��v�����!�^��R��\W��S��������~o�U�5\����������#�����;��r�C���u3.��Mc����d7��(h�I�?��(;��������u6���U�oy�~��
M�����y��G�����_���3�3o',�������i��R��:����uEKK��F|����_��K�\' ��M @� 0l��/��8��<����c�d����y����|�"��.t�Q�{���yd���]�Wg�/G�F���������c�N��E�S{r����#�������u��[�������_���u��Y����;����
aG�7�G����3����o��nC���@y������m[�?y���f>�����������zgO�U�Dy������V @�������Y- @� @�/��/s��E�OM
g����������M[b�2�p�|}��z���ufO|:���im� ��y,�YZ���!�����f�O�������T����E�x�����1_������3JwH��oH�L�q|&������7+?s����N��C�^(G����0��|1}ZS?vS��Y����W~�G���;����������3$6��j�����W?�jHo���/����W������[�������q|W(]���;x.�I�3���h,�_��G���~ 8�O^{-�__��Fy|��4�����-���~��7C�+�����������������.�-��*�|�a�3w�����6���[��������mo�f���_\7�����������|)��i`1��b>�3����
��������w���X����*�����J�'N�l^U����?����4�5?�)��!���U!}���L�s���by���H��<N���x/ @���7�{�A @� @`(nn�����Q�^�_�<�*����#�Y���33����M���k��t���q����y<F@w<�"�qMf����Z-<TS����s�X�l��u������lj���3b\�Z���~vxM�o����������3�nWS����d��p���y/����/�^t������w��(��Gb���,a{E<~��D������u�o��?��@H���!�����n��B�/]�����vzQ���b9��>�;���������/��/���x�A~��$]�[���=��']���5������O�E��#>kc���Dj^��kIy���M�_����q�d<����_��m�>��0e���>�*�������u�������������y��t��.�6���1��b�|���kv|�4����%O��M
H��������~O��~%��R�oz�4��O����~���Y>�
�������q��A�!,;���,�^5}l<�/��[S[�����v:�������������.^��;�	��s��/�?7������z���<n���7@ @��"�<M'@� @��nn���5to��v���������?�!��r��~�gC9��?�-���	[W����v�g���U�/����_* ���F��a��Jx���������&���D�kU����%w�=�w.�����]Kf%���8.�]y�M���j
�7*��_�(�������<7��8p:?�
x+/hE�����x~8[�!lm���7�Og��)���`8~~��,[�K��Ogy�XW:��x����^��������
����������d������;0��o�6_�����1-�1b���8^��8�|���q���^�#\y�a��������F�����x*�g^\�t�E
}�(���~������<B_��E��C��E��s���3����GV��x���x}���Tzz��p~��|����}��4o��M��V��mk�F��% �_���Z @� �����r����#(�?�I[1��#��H��W����}?+������C���>�����G���=����<���#�W��l�q�y�1��e��w����.�yY������^x%>������tA��^m�U{:����fy��L��������+�,0mw^�[��[��jb��9��i\�Y��t�\��Q0�o���[��������n��=p \�����a]^R�["E|K
Y�?�`�?0#�����������t�b���f���,�WjV��.�/�����g��������/=J4�tg����d;�/�	s��x�J�t��}�g�q+���H% @��"�8�&@� @��T'�1�m�p�����O�~oH_�X���."�1��J�����E�_}����*�l�w�?
�z���~�����'v����1;����f
��(����3a�x��+a���w��6 �Z��b�l�'��dQ�;��X��|u������[z�{���5��R�kk�����z�z�����F=y!��}:����b|����<#�����������+*�Y��~��X4.=���Ik�������ui	t��oM�C�����H���a<����b�So4���x�.kv|����}��oM��'�bj^������u���iHw��Ky�;��Sj��"��"��	�f����x?��W���i�
y!7H��0_\��q��$9x�kzq�<n��^�A @��"�U9�&@� @�M��(O�Qoy�����M�R�������V~6����B��|-�{'���K��}��C�C�\��1��#��������}6f����
�+*��p�+�n���y^b��y�3=�{��tI�2X��=�>~��gW����7>����4]���t]�������Q��f��-�L���(�����<��1u����y���1����b_���N�H�t���O�_��w��1�?��@8rk���~�iM�D������/y���e��P�}+�����T���mn�����f�-\G���8^[�G��z]1��[������<]�ouX�f�w �Z����|��jv|���,^w0�j�5oo�u������i�<_��=kV�����m"4��mq�>��D1����~�5����~.z��y��xI���4]RG3�������F��L@��Tw @� @���cG��y���+W��s���t���!����C������YV�Z����=�.q~��x4�n��O�����yH����<����r�x�`���_��_��oM���S���E�/��������������
�����S����uVP����^�g~��G���b������5���q��D�M @� 0�77�[�k��~��FE;?�W���y+���|\�>����A�an[y����������1b���������O�~y��������������t(kP�<*�[y�Wb�!\]#@� @�]����Tc1X�>��o�sL���o(Tsc�"E�&������v���U��v�U-����>X�t����R��L-�SJ�7�wL���V���j@�M"@� @������r*%P���J
_f��5^��Z�g�F�������R\E�FC@�4�Y/	 @� @`D��92�N��\���;��k�����U�V�z��z&��w�*T @��, ���P= @���@�5�"���Wv���^��� @��~���{�O� @��(��qM� @��-���G@� @� @��
��{
z�M� @��, ��e`� @� @��~
4��_�r���S7 @������;`-��	���H�9 @� Pq���������Mi�z��P�q�~�4��TT����AW`|��;���_�9��p�{������B�t�ZO	 @� @`���'���/�Mi�C�;X�q� ���.`>�}����U��/���)`�Gs���?"��qW+ @�����=aV	 @������qW+ @�����=aV	 @������qW+ @���@�O��I�T2������r�Tl��3!������'7�|^K�8�xh������
�����:����o���Ka�?�
�u~
j�pV�4����vN@��s�J"@� @�' �?pC�A @�������P���/�t���Czr���T����
��{��!��&B������o30����
4�tY@�����'@� @�������	 @�]X��d(���.V�hx��"
$@� @�����o7�W��RZn������'�?�����f_�Z�r{V�U�|1�5��������GC��+�����f_j�*���W_Z��� �?=9]nO:^�O:��z�����-��� ��q,?5�<��|��k�T����y����Y�j�TO�i��t}>��/�}.w����rE�����>���I�}qo8���d����x�v6�?�{%_��w��O����u�"�E����Tn������5�-��W��������.�K�����h^�Zv��m<-���vL<s)4��o(������4�{�{M���U��'�����?�w�S{����q*l�KL���RZ��b����T|�i������ls�|M���;���S��qk�5�}xe��p���W�4���j�{r���=M�#}^H�I�K�)pS5��� @� @�@3"��(U!O�/w�/�E�����G��Hd�����f)��I��K����;���~����#e���}�T�Mn����E�y?6�����b���#o���xG8�/�oI�
��?C����d��*�gI~B�+��<y�r�n�����[~j�qny�5l��>��cY�gE���S��4�m��q62Q�/m��R���/����A�����������b�f~��+1���>���X_�zq�D8����/�/,�^��?��|_l�}(V{]����]��{�&�;�����_�;���}or\����t�G���6��d^Oz����T��������#o����Am��6�����ML���D��;����j��#���v�������T��G�����k���x���yq/-~���=#��������$�A
m!@� @���0h��;uljN��_���:g�d�Ka�l��[�~S��-���TH����@Nn���~�#�T�Z�<`V��Fkp�^�N��-l-I��t�m����X��k��	qK���|m���e��5Y�=`�e���>�c��h��������9����x'���2��K����y��O�Q��5^M�������������a<�^���cd?9O��y?h�}����r��t��w����^j�������&��W[��9�R�w{��vv��o��������W���^3��J������)�X`���������gY���!�����D��=5u,\rj2�~:������P����,,UT������wt���Rs���M�� @� @��  ��TE.\���rD5��P�1\x�-�PnOK�P����4�7�^��7���W�gF|��A������x�#3�������o{,���8
|$���=��HM���p�
^����EQ
��)�
�F�N������(	������Fi��k�����g�L��
���ndS�-c+��X��mU4�E�q^��=(�?�C�c @� @ �D��d���?����������O�����
�o�5k��PUo""_I�b��Qz�v9S��k�J�$�qj�dH;�X�����S���qC��-Yz�q������k+��M�9���^<v����;7�����;������#6�k��3L��E�����p`*=Myq����{�����gT����gs���������5���N��z��d:F��A^���n�����^�'����v��5�Z��fP�����z�s5��-�k������-�'�;�r�wyjj*� ���wOk?��~�X\�������:�/�~��� @��@@���=�"E"��,}����c����=�1ry���C�V����[���6����N�����-���
���-�����2Z/��+����x��y���2X^zr;�����z�c{�������8>��
%�}Jr���������?��<N��N�e�~�}����������f>�^-������������L�K���c�[���3��8�:n����St[�R{Z�w-���L���V�Z����������P��������a�)��Z��G���k������b����)��X^c>���D�V�\��xk��jX~ju>f��nX�uk�D�}�����yb_�h����Y��1o�d�D�k<�� @�tT`���#3��x���P��s�B�v�������o��/_���
<��s�B��[�N�f;-:������;N���/8�; �6�d ����%��-6������'BOS���,�kh'�
;f����~b��g.�����ty��H�x����I+  �_�A�D @� ���5����� 0rq���[����j������������Y�������a���
����q?@fGD�;��( @� 0h"��6"�C�@��������W�Cz@��$C�����������Z���������C$ �?D��+ @� @�,��Y�> @�"��h0u� @����/��'0B���z{�T�t���!]����\���r @��"���U: @�����_�UN�3�?�1�b�����'w/�LJ!�C��������T�~����g.�>��K	 @�@�7 @� @���������,�}2t������sO��j��q��8i%xG@��< @� @�C, �?,�{jo��-���+W���/�5���������O����
���CZ�{�/5k�����/��<�L,����Tt�=�x�?�xJ�]��W<-��-w�f<�^����pi�i���������M�>�]�}g����V�=����p�T���u�-��D8S��/��^�R���f�k�����j�������Jh�������uM�yM��]����8���`��;Z��^}~��#�����C��!P+ �_k� @����rG���~_,��=F�9#��bz�fq����G7�������=��xU8_^�#�����O��
��?�G���3�F\J�Y�����P���/���]��������KO���E���q�;~)�2�����W�hQ���y�u��B���
��M�{4����J�������x�������#������/��t�>�w����������M�#��4��T�^���������8 @� �0���
��w���-�[x�AK��mp��g��,��q�m���������H��dyd���������������d���S����wbK\��n�27��B:u,~����x�����r~�:)�h�������Z���QO��w��+Ss�.���9y�N��e���������Uhs~����k�g��Q�^�!�������2 @� �`�V���_��k�g���������j%@��Ah������F��e�O�����qs3�kW��5��U�:�^���������Y- @� @�/"�}a�J/�R��/5*>�����.�.��pm�~�����)��vO��a_Yw������k���;2Kn[���/O�q�6�3����#`>�PUC��w����v�*�
u��5�6��wSQC+ �?�C�c @� @ �D�G|l(or��)^���r�#����o	��">���[��mA�k-��z��?�p��b���}����~O�[ ���k:�x�c�������b|k�:@���s�M���������?<S��Bog��'��3���w����v�]*?�?��K��^�m��,����h�`	���xh
 @������#Gf�)���+��s���t���!M��o��/_�R/�x���B��������8vZTy�0������Gg|��O�����D�Mw���/>Z5����qm�[��H���8�{���h�V� @���5�C<��F�$��0����g�L��E�-������������. @� @��z"��d'@��H ��'/]
}�q�!��� @������) @� Pu��>��O� @�n ���
p�"@� @�U;r���;��r�J���s�B�v�����a� @�������;�U���hi+ @�hQ����o�����e���SO=�3�T�}Y/��B�t��u��\�:,`>wt��3�6 C��k�����&�<[�w����R��^@��z
� @� @`�����~_�|9mJ	 @� @�����< @� ����Z @� 0�>��i @�X����s- @�p�|�4� @�,D������ @����>@�G� @�"p�B.�k_44o���!}q��!=rwH�W/ @� @`�D��{|�� @�F\`�"���P�����N�������967?�#��g���a����P���{Cz�T������3{�Kgz�;��T_�R�R}8j�9�9�Od���v��K'G��������:]����eW��p���!q� @���E�7�Q��t)��b�����g������g����m\����cGC���c=g:v+A����������^��C�����P����c�t^��8�&F����p�`s����Fv@:��8M^z�9;����}�D�kO����tG���jF����6�s,P@���.'@� @��,0D�Af�A�����'�V�#Fz&�-�RDh�����!��kgBZ^�0{Y�/j_k�9����������?�6��f���:������r��5cE�����;�Q���{��;nR5�����^w�R���@��t�������[�6��/?x,6u����N�_y�)���N
�"@������i! @�h[@��m��0�E/����_Z�^D���������G��#331��N_���5�c���O����!=�,^�(>��@(�x��4�3�	����p>}@Z�?Y~F����331r�s���{�����/���:'��E�DW	
����R%�)�(#����x�"
��D�SQ	�[EH7��7@M�w���!��G�����4��������q�����]�h!���rh����8U&@�����r�u�\����H��e��> @��	��O��6 @�(�����3�s?f���|�fe;>���,fvR��������fs3m����u�0>��?������������\��Q��Z/	 @���
�;�����L??�?����~� @��2�e��� @� @��	d�'�j���8��r{'!=Sf�Is
lf�Lgs
��PH�+=�G��l&@�@��S��q.s�W>���#��9��E��j	��W+^zK� @�N%P����a�����y��������X>x�5�n���X�������O�y�W�9�8���l��lXw����8�>	k�6�,���i���k���t����c��������ye!��V�+�Y�V�Q�mS���nAH=����l����-
���`*}�N!��yh���o6���{�[TN��]	 @���
��W4p�M� @���Q�?���_��q���8�'{F�q����O�Z���1�����t��������Y�c�6b��^�#�h�;����o���M���������p�����\_:�I�x�h.��lf�[n�H�m�5����%�n#e�����5�iM<����S������`��9��M7�v��A���~/��r�����q�d�z�0��>d�8-����/s���Fz��l�\�X��y9�aU'@���2��T#@� @�U�Q��
�g�����!O���G���J\�\1�TLqo���|n�����9��Q����`�U/���L����f ���������7�!9�O��d���-N[��y9��h������N @� @��.��7�&@� @�c	����N @� @��.��7�&@� @�c	����N @� @���/^�����F����P^�~=�i}5�W�^_�t�~�2" @�*%p���J�w�;+�?�g�� @� @�@�.�;���������@`gg'��?kg�;�&��{'�3�v��p>���y�.���z��U���������j�Zoe�� @� @��cg����o���� @�(�����{ @� @`����K� @�J.�����= @� 0���I��%@� @�%p�_�� @��D���$z� @� @�����/y�t� @�L"pa�����g������|>�s��������_�a5 @�����}bi$ @� @��@�2����
_�7�_B����P>z����oCY���^�zs5�����,��v�J(_6�ewc!�~ P����Z�no;�+�X���m8�������Z��a��8��h�6�������>�$�z��^��Ud��} @� @�g$P������y��,���l���a�?�������G�3������R���^�7���1���^A�@
:�x�O��oo��5����j�NS(��N+�a���^�����V�0�_q��b5O
=/G�\3���{�{�jL���/W<�� @�LU�F�._��
O����������/�^���?���2�iXq}/�i����lt��>iD���4�,Zox��N[�h����s����0��	]���&vu���i�l�+z^����f$Q-w�Z����% �_�x�
 @���@}3�Y����G,>������
��Q�g��ypx��,-�~ @��������x�X|�����06�		����5g[�f�����Z���"�A� @�N�_���8{����s#~^�z�0�5I����% @`�����Xe9li����@������/uxt� @�L&P��z�?����� ���f���������+����WBm�] >���q9���u������[|��������J! �_�0� @�8��d��|���_���nu�`e;��V+���'?�����_�����m����`�u�}/��M���������:���.�sM�#X���^�M-���?�]	 @� @�@�����5����k,��I���S;������m�S�k��EO��'��!�ie���i������r��JoE��C�:�(��������.�Y�=�_���|=-z^�;�k����~�^�xM�d���!@� @�S�O��,l����VPR�	TN`���8m��h��U������B�#_��>/���w\�z�'������J@��T�� @� 0]���� @�(���R�Cg @� @��t\�O�Sk @� @�T.�K�!@� @��h�x�"L�������By���P���=���
\�t�hU� @� 0�7nL���F@�6��B� @��E���G�������vvvB���v�3l���w�8Co�:[�����w��{�����_������� �j�Oq�V��V��9@� @�j,0v�?|��--*	 @� @������<@�G� @�&p�?��� @� @��.�K �#@� @�����DO] @� Pr�%�� @� @��I\�O��. @�(����H� @� @��$&�\��_������(�u�����k���=�'@� @�����M(
� @��O�?��XF�K�����P>z~7����������0���j(���'�X�
+{�+����/�������X�U;�����P��o���c���s�~��{n��������u7B����9��f�o_��������A������0���v(���?������YL��������1��1��9Fu&;/�;���=}�S����w���c�g�z���2����� @� @��������a�x�CP��m��6d�Jm�����q��O�B����w����������6�Ly/���C;��X.�2���/��{�c{�tG@�N��=O�����|~��ie�wO�Lnt��
���CSwr�l<�������a��5�Z
tZ����{����W�[���vm��@�8vZ�#����������:�a�J�}u���Z]����=|���h�>���|�}�;�=�' �?=K- @� @���	�'����s�bXs�y�� ,��3��6������:��F#f���3�)���Vb�s;f���+�����\���n/�����e�����f+�-�����D��^����q�#P]�t'MAg+-
/������(�7/����vso�+w��+[obW7��~=��k��E��i����iIV�q�V���\2����� @� @���
�6���5@e	�F������������?��px�v��3����ZYX���t��J���s/Ti-f����m��N���@8�w 4c����|�)�;�I �c^����n�jx��s��c����4B�k�Tc}>����F!��d��'�y��� @� @���	�6����o������a���/q����w���gqv�f�����,��B�_L8�A���g�?��&<�O����O��U�F���[$@�
��^o�]�_���>�;�N:�I�|�9I������16�������	 @� @���j�����VP�g��C��a�������O��'��i{ZS�r-���_h?�Y�����N��ew<^�������v���{�_��z�����f��`����3���U����O�j\#7����q����+��5e��l�#��qv������p, @���@m2�)p]
��5G�y�����z���y5N�����7
��f�=�qs���	���vO���z���t��.���z�����;z������f���������'@�@�n��o�H�/e��}<������Q�	������<-��<E�X'���Pu @� Pf��d�}�68}Xf���[�_<:+oV���H����{qN��f3t.��{��,������l�2?��v�n?����N+a3?}p�p��bf�����gY�����^vkBg+����\_:��`j,0����F����h�S�rhE��p;>��r1{���.��������1�������&���q����~G���d��g�% @� P:���/���������C(�_�������P��o�J7�y������0S�a�u��w���n��Q����	8��p��w|�{t������_���}�G�i���=��8;
 @�8����� @� @`6.�g��( @� @�\\���� @� @��������� @� @��s{V�s����t���uV @� @`���j���K�rC- @� @���
\��;w�����
���/3<�C @� @�@�d��A�'@� @�C\���� @�T]���#�� @� @`���!86 @� @������z�� @�p�?�& @� Pu�U��� @� @��!.����D� @��.����� @� 0D���� @� @�@�\�W=��O� @�����c @������GP�	 @� @���Cpl"@� @�Up�_��? @�"���M @� @��.��A�'@� @�C\���� @�T]���#�� @� @`���!86 @� @������z�� @�p�?�& @� Pu�U��� @� @��!.����D� @��.����� @� 0D���� @� @�@�\�W=��O� @���?�m���?IEND�B`�
error.jpgimage/jpeg; name=error.jpgDownload
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Murtuza Zabuawala (#1)
Re: [GENERAL] Not able to create collation on Windows

Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> writes:

I am trying to create collation on windows using default POSIX collation
with pgAdmin3 but I am getting error as shown in screenshot, Can someone
suggest how to fix this?

*Syntax:*
CREATE COLLATION public.test from pg_catalog."POSIX";

*Error:*
ERROR: could not create locale "POSIX". No error

Hmm. Evidently Windows' _create_locale() doesn't accept "POSIX".
You might find that "C" works instead, don't know for sure.

I think this is actually a bug, because the collations code clearly
means to allow clones of the C/POSIX locales --- see eg lc_collate_is_c,
which could be noticeably simpler if that case weren't contemplated.
However, DefineCollation checks validity of the new collation by
unconditionally calling pg_newlocale_from_collation(). That violates
the advice in pg_newlocale_from_collation's header comment:

* Also, callers should avoid calling this before going down a C/POSIX
* fastpath, because such a fastpath should work even on platforms without
* locale_t support in the C library.

Every other call site honors that.

So I think what we ought to do is change DefineCollation more or
less like this:

-	(void) pg_newlocale_from_collation(newoid);
+	if (!lc_collate_is_c(newoid) || !lc_ctype_is_c(newoid))
+		(void) pg_newlocale_from_collation(newoid);

Another issue exposed by this report is that we aren't reporting
_create_locale() failures in a useful way. It's possible this
could be improved by inserting

#ifdef WIN32
_dosmaperr(GetLastError());
#endif

into report_newlocale_failure in pg_locale.c, but I'm not really
sure. Microsoft's man page for _create_locale() fails to say much
of anything about its error-case behavior, and definitely does not
say that it sets the GetLastError indicator. Still, there's certainly
no chance that printing errno without doing this will be useful.
I would suggest that we do that for starters, and if we hear that
we're still getting silly errors, just hot-wire the code to assume
ENOENT on Windows.

regards, tom lane

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#3Peter Eisentraut
peter.eisentraut@2ndquadrant.com
In reply to: Tom Lane (#2)
Re: [GENERAL] Not able to create collation on Windows

On 8/1/17 10:53, Tom Lane wrote:

Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> writes:

I am trying to create collation on windows using default POSIX collation
with pgAdmin3 but I am getting error as shown in screenshot, Can someone
suggest how to fix this?

*Syntax:*
CREATE COLLATION public.test from pg_catalog."POSIX";

*Error:*
ERROR: could not create locale "POSIX". No error

Hmm. Evidently Windows' _create_locale() doesn't accept "POSIX".
You might find that "C" works instead, don't know for sure.

I think this is actually a bug, because the collations code clearly
means to allow clones of the C/POSIX locales --- see eg lc_collate_is_c,

You seem to say that we should support a "POSIX" locale even on systems
where the C library does not support that. I'm not convinced about that.

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#4Tom Lane
tgl@sss.pgh.pa.us
In reply to: Peter Eisentraut (#3)
Re: [GENERAL] Not able to create collation on Windows

Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:

On 8/1/17 10:53, Tom Lane wrote:

I think this is actually a bug, because the collations code clearly
means to allow clones of the C/POSIX locales --- see eg lc_collate_is_c,

You seem to say that we should support a "POSIX" locale even on systems
where the C library does not support that. I'm not convinced about that.

Uh, we already do. Note all the regression tests that unconditionally
assume that the POSIX collation works. Also, I am confused by your
apparent belief that there might somewhere be a version of libc that
fails to provide C-locale-compliant behavior. Surely nobody would
tolerate a version of strcmp() that fails to act per C spec.

regards, tom lane

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#5Murtuza Zabuawala
murtuza.zabuawala@enterprisedb.com
In reply to: Tom Lane (#4)
Re: [GENERAL] Not able to create collation on Windows

Hi Tom,

Yes, I was able to create collation using "C" instead of "POSIX" on windows,

CREATE COLLATION public.test from pg_catalog."C";

--
Regards,
Murtuza Zabuawala

On Tue, Aug 1, 2017 at 9:09 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

Show quoted text

Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:

On 8/1/17 10:53, Tom Lane wrote:

I think this is actually a bug, because the collations code clearly
means to allow clones of the C/POSIX locales --- see eg lc_collate_is_c,

You seem to say that we should support a "POSIX" locale even on systems
where the C library does not support that. I'm not convinced about that.

Uh, we already do. Note all the regression tests that unconditionally
assume that the POSIX collation works. Also, I am confused by your
apparent belief that there might somewhere be a version of libc that
fails to provide C-locale-compliant behavior. Surely nobody would
tolerate a version of strcmp() that fails to act per C spec.

regards, tom lane

#6Tom Lane
tgl@sss.pgh.pa.us
In reply to: Murtuza Zabuawala (#5)
Re: [GENERAL] Not able to create collation on Windows

Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> writes:

Yes, I was able to create collation using "C" instead of "POSIX" on windows,
CREATE COLLATION public.test from pg_catalog."C";

Yeah, I thought that might happen. So the point basically is that in
almost all of the collations code, the "C" and "POSIX" names are handled
by dedicated code paths that don't care what the system's locale support
thinks. But we missed that for CREATE COLLATION. Aside from the case
you ran into, this means you can't do CREATE COLLATION ... FROM "C"
at all on platforms that lack HAVE_LOCALE_T. There's no good reason
for that IMO; not if we're one line of code away from allowing it.

regards, tom lane

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers