pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pietro Pugni <pietro.pugni@gmail.com>
To: Jeff Janes <jeff.janes@gmail.com>
Cc: PostgreSQL Performance <pgsql-performance@postgresql.org>
Subject: Re: Can't get Dell PE T420 (Perc H710) perform better than a MacMini with PostgreSQL
Date: Tue, 7 Apr 2015 19:17:40 +0200
Message-ID: <697FB244-B9B8-4918-AEAC-20FD5539C0E8@gmail.com> (raw)
In-Reply-To: <051212BE-A86B-4874-8BAC-18F609DE8229@gmail.com>
References: <732B95A3-FEC8-4623-9AC5-98FD30F00863@gmail.com>
	<CAMkU=1wsRYdWrQ2m5wshTJw41wncOJeHXATxzVbCbYXbmoxTFQ@mail.gmail.com>
	<2F18FF84-5408-4AE8-9F2B-9110F76DED86@gmail.com>
	<CAMkU=1y2iifFf+EevByDdTouE+Yxc56Gs=t_-2ktCQ7OLhRzpQ@mail.gmail.com>
	<5CC78F3A-8FD3-447F-8AB3-98BE80658E79@gmail.com>
	<CAMkU=1wvEXOEtoiDM4M4_MTQ4aEG+rmBdbw19QLosvdDO1qH2w@mail.gmail.com>
	<051212BE-A86B-4874-8BAC-18F609DE8229@gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

I meant “collation”, not “collection”.

 Pietro

Il giorno 07/apr/2015, alle ore 18:49, Pietro Pugni <pietro.pugni@gmail.com> ha scritto:

> 	
>> On Tue, Apr 7, 2015 at 6:27 AM, Pietro Pugni <pietro.pugni@gmail.com> wrote:
>> Hi Jeff,
>> sorry for the latency but server was down due to a error I made in the sysctl.conf file.
>>> Yes, but are the defaults for those two systems?  on psql, use \l to see.
>>> 
>> 
>> \l returns the following:
>> 
>> T420 (Postgres 9.4.1)
>>                                   List of databases
>>    Name    |  Owner   | Encoding |   Collate   |    Ctype    |   Access privileges   
>> -----------+----------+----------+-------------+-------------+-----------------------
>>  grep      | grep     | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
>>  postgres  | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
>>  template0 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +
>>            |          |          |             |             | postgres=CTc/postgres
>>  template1 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +
>>            |          |          |             |             | postgres=CTc/postgres
>> (4 rows)
>> 
>> 
>> 
>> MacMini (Postgres 9.0.13)
>>                                     List of databases
>>        Name        |   Owner    | Encoding | Collation | Ctype |    Access privileges    
>> -------------------+------------+----------+-----------+-------+-------------------------
>>  caldav            | caldav     | UTF8     | C         | C     | 
>>  collab            | collab     | UTF8     | C         | C     | 
>>  device_management | _devicemgr | UTF8     | C         | C     | 
>>  pen               | pen        | UTF8     | C         | C     | 
>>  postgres          | _postgres  | UTF8     | C         | C     | 
>>  roundcubemail     | roundcube  | UTF8     | C         | C     | 
>>  template0         | _postgres  | UTF8     | C         | C     | =c/_postgres           +
>>                    |            |          |           |       | _postgres=CTc/_postgres
>>  template1         | _postgres  | UTF8     | C         | C     | =c/_postgres           +
>>                    |            |          |           |       | _postgres=CTc/_postgres
>> (8 rows)
>> 
>> 
>> The difference between the "C" and the "en_US" collation is entirely sufficient to explain the difference in performance.  "C" is the fastest possible collation as it never needs to look ahead or consult tables, it just compares raw bytes.
>> 
>> Cheers,
>> 
>> Jeff
> 
> Hi Jeff,
> is there a way to set a default collection during compiling or in the configuration file? I have never specified one, so I suppose that somewhere on MacMini “C” collation type is set as the default one.
> 
> Thank you a lot.
> Best regards,
>  Pietro

view thread (28+ messages)  latest in thread

Message-ID: <697FB244-B9B8-4918-AEAC-20FD5539C0E8@gmail.com>
Permalink:  ../697FB244-B9B8-4918-AEAC-20FD5539C0E8@gmail.com/
Also on:    postgresql.org/message-id/697FB244-B9B8-4918-AEAC-20FD5539C0E8@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: pietro.pugni@gmail.com, jeff.janes@gmail.com
  Subject: Re: Can't get Dell PE T420 (Perc H710) perform better than a MacMini with PostgreSQL
  In-Reply-To: <697FB244-B9B8-4918-AEAC-20FD5539C0E8@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox