Re: Slow adding Large Indexes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 Hi Tom

Thanks for the quick response and useful information, having looked at
the current postgresql.conf file the locale settings are as follow

# These settings are initialized by initdb, but they can be changed.
lc_messages = 'en_US.UTF-8'                     # locale for system
error message
                                                # strings
lc_monetary = 'en_US.UTF-8'                     # locale for monetary
formatting
lc_numeric = 'en_US.UTF-8'                      # locale for number
formatting
lc_time = 'en_US.UTF-8'                         # locale for time
formatting

How can I go about changing these to the C locale, would a simple change
in postgresql.conf be o.k I have read that an initdb might be required ?
The postgres install is currently in use any hints on the best way to go
about doing this making sure all my other settings are maintained ?

Thanks again for your help in this matter
Fran

-----Original Message-----
From: Tom Lane [mailto:tgl@xxxxxxxxxxxxx] 
Sent: 27 July 2009 15:00
To: Thorne, Francis
Cc: pgsql-admin@xxxxxxxxxxxxxx
Subject: Re:  Slow adding Large Indexes

"Thorne, Francis" <thornef@xxxxxxxxxxxxxx> writes:
> The problem I have is that it takes around 15 mins to insert the data
> into the table which is a massive improvement from the old server but
it
> then takes 40 mins to create two indexes one 1GB index and another
that
> is a 2GB index this is considerably slower than on the older server.

If these are indexes on textual data, maybe you accidentally changed
from C locale to some other locale.  All the other ones are slower to
compare text strings, sometimes massively so.

			regards, tom lane

___________________________________________________ 
  
This email is intended for the named recipient. The information contained 
in it is confidential.  You should not copy it for any purposes, nor 
disclose its contents to any other party.  If you received this email 
in error, please notify the sender immediately via email, and delete it from
your computer. 
  
Any views or opinions presented are solely those of the author and do not 
necessarily represent those of the company. 
  
Cromwell Tools Limited, PO Box 14, 65 Chartwell Drive
Wigston, Leicester LE18 1AT. Tel 0116 2888000
Registered in England and Wales, Reg No 00986161
VAT GB 115 5713 87 900
__________________________________________________


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


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux