Re: Drop down in connect time between 9.3.6 and 9.3.9 ?

From: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "'Marc Mamin *EXTERN*'" <M(dot)Mamin(at)intershop(dot)de>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Drop down in connect time between 9.3.6 and 9.3.9 ?
Date: 2015-07-22 11:18:22
Message-ID: A737B7A37273E048B164557ADEF4A58B50F75177@ntex2010a.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Marc Mamin wrote:
> We've just upgraded some productive servers from 9.3.6 to 9.3.9, and it seems that the time to get a
> connection (or possibly to disconnect) has become much slower.
> These tests are consistent when run against different servers.
>
> tests with 9.4.1 show fast times, but we don't have a later version to test yet.
>
> Is this a known issue ?
>
> 9.3.6:
> time { i=0; while [ $i -lt 1000 ]; do let i++; psql -c 'select 1' ; done; } >/dev/null
>
> real 0m4.994s
> user 0m0.088s
> sys 0m0.272s
>
> 9.3.9:
> time { i=0; while [ $i -lt 1000 ]; do let i++; psql -c 'select 1' ; done; } >/dev/null
>
> real 0m11.081s
> user 0m0.140s
> sys 0m0.208s

I guess you are hitting this bug:
http://www.postgresql.org/message-id/15290.1435103076@sss.pgh.pa.us

Fixed in this commit:
http://www.postgresql.org/message-id/E1Z8C3Z-0004Ko-1h@gemulon.postgresql.org

You could apply the patch on your system if necessary.

Yours,
Laurenz Albe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Fritz Meissner 2015-07-22 11:18:46 Re: Cannot reach pg server using -h localhost
Previous Message Marc Mamin 2015-07-22 10:50:59 Drop down in connect time between 9.3.6 and 9.3.9 ?