From: Tom Lane <tgl@sss.pgh.pa.us>
To: Boris Sagadin <sagadin@gmail.com>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14917: process hang on create index
Date: Mon, 20 Nov 2017 12:55:18 -0500
Message-ID: <17458.1511200518@sss.pgh.pa.us> (raw)
In-Reply-To: <CAF8kEZu3f=RXJgLmbGD12TZ4CiBmmpEEfK=R8nikoNN20XCAxw@mail.gmail.com>
References: <20171117112600.1465.35972@wrigleys.postgresql.org>
<CAB7nPqTY+Rez4uAJtXQgO+11D5jwK4zeXiD53T3hytFUiu9mBw@mail.gmail.com>
<CAF8kEZvuOHLyxywQgtrTpSc2Qz2NoBC4AWKJBWdPfDVY=Ty3Tw@mail.gmail.com>
<7707.1511020457@sss.pgh.pa.us>
<CAF8kEZu3f=RXJgLmbGD12TZ4CiBmmpEEfK=R8nikoNN20XCAxw@mail.gmail.com>
Boris Sagadin <sagadin@gmail.com> writes:
> Thanks Tom, I made a few traces on the process, one at the beginning and a
> few later when it seems stuck, below is the output.
Well, it looks to me like it's not hung, it's just busy sorting.
It is making progress, since the successive traces show different
values being compared.
97% of the runtime in strcoll() is a bit weird. strcoll() is known
to be unpleasantly slow in some locales, but that seems excessive.
Perhaps you've discovered a performance bug in strcoll() for certain
input data. That wouldn't be our problem though --- you'd need to
complain to the glibc maintainers.
It'd be interesting to dump out the data in that column into a text file
and see if sorting that with sort(1) (in the same locale!) is equally
slow. If it is, that would confirm the assignment of blame to strcoll().
But the glibc folk would want to see sample data too, so one way or
another you're going to need to sanitize that data enough to show
it to somebody else.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, sagadin@gmail.com, michael.paquier@gmail.com
Subject: Re: BUG #14917: process hang on create index
In-Reply-To: <17458.1511200518@sss.pgh.pa.us>
References: <20171117112600.1465.35972@wrigleys.postgresql.org> <CAB7nPqTY+Rez4uAJtXQgO+11D5jwK4zeXiD53T3hytFUiu9mBw@mail.gmail.com> <CAF8kEZvuOHLyxywQgtrTpSc2Qz2NoBC4AWKJBWdPfDVY=Ty3Tw@mail.gmail.com> <7707.1511020457@sss.pgh.pa.us> <CAF8kEZu3f=RXJgLmbGD12TZ4CiBmmpEEfK=R8nikoNN20XCAxw@mail.gmail.com> <17458.1511200518@sss.pgh.pa.us>
* 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