Thread: BUG #14917: process hang on create index

BUG #14917: process hang on create index

From
sagadin@gmail.com
Date:
The following bug has been logged on the website:

Bug reference:      14917
Logged by:          Boris Sagadin
Email address:      sagadin@gmail.com
PostgreSQL version: 9.5.10
Operating system:   Ubuntu 16.04, CentOS 7
Description:

This happens just on one customer table, UTF-8 is used. Can recreate and
provide more details.

CREATE INDEX on this table never ends. Data can be inserted into table.
Table can be dumped and recreated, but creating index always hangs the
process.

perf top -u postgres on CenOS 7.4, on Ubuntu is very similar.

97.24%  libc-2.17.so      [.] get_next_seq
   0.94%  libc-2.17.so      [.] __strcoll_l
   0.50%  postgres          [.] pg_detoast_datum_packed
   0.21%  libc-2.17.so      [.] __memcpy_ssse3_back



Re: BUG #14917: process hang on create index

From
Michael Paquier
Date:
On Fri, Nov 17, 2017 at 8:26 PM,  <sagadin@gmail.com> wrote:
> This happens just on one customer table, UTF-8 is used. Can recreate and
> provide more details.

Self-contained examples aimed at reproducing a problem or a set of
problems are always welcome if you think that there is a bug of some
kind. Without more details, there is not much that can be done anyway.
-- 
Michael


Re: BUG #14917: process hang on create index

From
Boris Sagadin
Date:
I don't know how to create a small, reproducible example, customer personal data is contained. Sorry for the long listing.
We have about 12k tables in this DB. Problem has only been observed with one user's table.

After a fresh DB start and CREATE INDEX idx_table123_fast ON table123 USING btree (k, n), strace looks normal to a point:

[...snip...]
read(41, "\20\317\0\0\270Y\372v\0\0\0\0\330\0X\1\0 \4 \0\0\0\0h\237.\1\310\236@\1"..., 8192) = 8192
read(41, "\20\317\0\0`g\372v\0\0\0\0x\0\330\20\0 \4 \0\0\0\0`\237:\1\300\236>\1"..., 8192) = 8192

(stops for a minute)

--- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL} ---
rt_sigreturn()                          = 2

(after a few minutes, I press CTRL+C in pgsql shell to stop the operation)

--- SIGINT {si_signo=SIGINT, si_code=SI_USER, si_pid=4264, si_uid=106} ---
rt_sigreturn()                          = 8
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
write(2, "2017-11-18 08:27:59 UTC [4239-1]"..., 221) = 221
sendto(11, "E\0\0\0aSERROR\0C57014\0Mcanceling st"..., 98, 0, NULL, 0) = 98
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
munmap(0x7f138b926000, 8392704)         = 0
munmap(0x7f138c127000, 8392704)         = 0
...

Now I rerun the CREATE INDEX...  and all I get now is:

) = 1 ([{fd=11, revents=POLLIN}])
recvfrom(11, "Q\0\0\0ICREATE INDEX idx_space02448"..., 8192, 0, NULL, NULL) = 74
gettimeofday({1510993750, 627472}, NULL) = 0
gettimeofday({1510993750, 627541}, NULL) = 0
open("base/82144111/82144135", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("base/82144111", {st_mode=S_IFDIR|0700, st_size=267, ...}) = 0
open("base/82144111/82144135", O_RDWR|O_CREAT|O_EXCL, 0600) = 32
close(32)                               = 0
open("base/82144111/82144135", O_RDWR)  = 32
lseek(32, 0, SEEK_END)                  = 0
lseek(41, 0, SEEK_END)                  = 734953472
brk(0x7f13d5b92000)                     = 0x7f13d5b92000
brk(0x7f13d5bd2000)                     = 0x7f13d5bd2000
brk(0x7f13d5c6a000)                     = 0x7f13d5c6a000
brk(0x7f13d5c9a000)                     = 0x7f13d5c9a000
brk(0x7f13d5cfa000)                     = 0x7f13d5cfa000
brk(0x7f13d5dca000)                     = 0x7f13d5dca000
brk(0x7f13d5e8a000)                     = 0x7f13d5e8a000
brk(0x7f13d608a000)                     = 0x7f13d608a000
brk(0x7f13d620a000)                     = 0x7f13d620a000
brk(0x7f13d660a000)                     = 0x7f13d660a000
brk(0x7f13d6e0a000)                     = 0x7f13d6e0a000
brk(0x7f13d710a000)                     = 0x7f13d710a000
brk(0x7f13d790a000)                     = 0x7f13d790a000
brk(0x7f13d7f0a000)                     = 0x7f13d7f0a000
brk(0x7f13d870a000)                     = 0x7f13d870a000
brk(0x7f13d8f0a000)                     = 0x7f13d8f0a000
brk(0x7f13d970a000)                     = 0x7f13d970a000
mmap(NULL, 12587008, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f13cc2c2000
brk(0x7f13d9f0a000)                     = 0x7f13d9f0a000
brk(0x7f13da70a000)                     = 0x7f13da70a000
brk(0x7f13daf0a000)                     = 0x7f13daf0a000
brk(0x7f13db70a000)                     = 0x7f13db70a000
brk(0x7f13dbf0a000)                     = 0x7f13dbf0a000
mremap(0x7f13cc2c2000, 12587008, 25169920, MREMAP_MAYMOVE) = 0x7f13caac1000
brk(0x7f13dc70a000)                     = 0x7f13dc70a000
brk(0x7f13dcf0a000)                     = 0x7f13dcf0a000
brk(0x7f13dd70a000)                     = 0x7f13dd70a000
brk(0x7f13ddf0a000)                     = 0x7f13ddf0a000
brk(0x7f13de70a000)                     = 0x7f13de70a000
brk(0x7f13def0a000)                     = 0x7f13def0a000
brk(0x7f13df70a000)                     = 0x7f13df70a000
brk(0x7f13dff0a000)                     = 0x7f13dff0a000
brk(0x7f13e070a000)                     = 0x7f13e070a000
brk(0x7f13e0f0a000)                     = 0x7f13e0f0a000
brk(0x7f13e170a000)                     = 0x7f13e170a000
mremap(0x7f13caac1000, 25169920, 50335744, MREMAP_MAYMOVE) = 0x7f13c7ac0000
brk(0x7f13e1f0a000)                     = 0x7f13e1f0a000
brk(0x7f13e270a000)                     = 0x7f13e270a000
brk(0x7f13e2f0a000)                     = 0x7f13e2f0a000
brk(0x7f13e370a000)                     = 0x7f13e370a000
brk(0x7f13e3f0a000)                     = 0x7f13e3f0a000
brk(0x7f13e470a000)                     = 0x7f13e470a000
brk(0x7f13e4f0a000)                     = 0x7f13e4f0a000
brk(0x7f13e570a000)                     = 0x7f13e570a000
brk(0x7f13e5f0a000)                     = 0x7f13e5f0a000
brk(0x7f13e670a000)                     = 0x7f13e670a000
brk(0x7f13e6f0a000)                     = 0x7f13e6f0a000
brk(0x7f13e770a000)                     = 0x7f13e770a000
brk(0x7f13e7f0a000)                     = 0x7f13e7f0a000
brk(0x7f13e870a000)                     = 0x7f13e870a000
brk(0x7f13e8f0a000)                     = 0x7f13e8f0a000
brk(0x7f13e970a000)                     = 0x7f13e970a000
brk(0x7f13e9f0a000)                     = 0x7f13e9f0a000
brk(0x7f13ea70a000)                     = 0x7f13ea70a000
brk(0x7f13eaf0a000)                     = 0x7f13eaf0a000
brk(0x7f13eb70a000)                     = 0x7f13eb70a000
brk(0x7f13ebf0a000)                     = 0x7f13ebf0a000
mremap(0x7f13c7ac0000, 50335744, 100667392, MREMAP_MAYMOVE) = 0x7f13c1abf000
brk(0x7f13ec70a000)                     = 0x7f13ec70a000
brk(0x7f13ecf0a000)                     = 0x7f13ecf0a000
brk(0x7f13ed70a000)                     = 0x7f13ed70a000
brk(0x7f13edf0a000)                     = 0x7f13edf0a000
brk(0x7f13ee70a000)                     = 0x7f13ee70a000
brk(0x7f13eef0a000)                     = 0x7f13eef0a000
brk(0x7f13ef70a000)                     = 0x7f13ef70a000
brk(0x7f13eff0a000)                     = 0x7f13eff0a000
brk(0x7f13f070a000)                     = 0x7f13f070a000
brk(0x7f13f0f0a000)                     = 0x7f13f0f0a000
brk(0x7f13f170a000)                     = 0x7f13f170a000
brk(0x7f13f1f0a000)                     = 0x7f13f1f0a000
brk(0x7f13f270a000)                     = 0x7f13f270a000
brk(0x7f13f2f0a000)                     = 0x7f13f2f0a000
brk(0x7f13f370a000)                     = 0x7f13f370a000
brk(0x7f13f3f0a000)                     = 0x7f13f3f0a000
brk(0x7f13f470a000)                     = 0x7f13f470a000
brk(0x7f13f4f0a000)                     = 0x7f13f4f0a000
brk(0x7f13f570a000)                     = 0x7f13f570a000
brk(0x7f13f5f0a000)                     = 0x7f13f5f0a000
brk(0x7f13f670a000)                     = 0x7f13f670a000
brk(0x7f13f6f0a000)                     = 0x7f13f6f0a000
brk(0x7f13f770a000)                     = 0x7f13f770a000
brk(0x7f13f7f0a000)                     = 0x7f13f7f0a000
brk(0x7f13f870a000)                     = 0x7f13f870a000
brk(0x7f13f8f0a000)                     = 0x7f13f8f0a000
brk(0x7f13f970a000)                     = 0x7f13f970a000
brk(0x7f13f9f0a000)                     = 0x7f13f9f0a000
brk(0x7f13fa70a000)                     = 0x7f13fa70a000
brk(0x7f13faf0a000)                     = 0x7f13faf0a000
brk(0x7f13fb70a000)                     = 0x7f13fb70a000
brk(0x7f13fbf0a000)                     = 0x7f13fbf0a000
brk(0x7f13fc70a000)                     = 0x7f13fc70a000
brk(0x7f13fcf0a000)                     = 0x7f13fcf0a000
brk(0x7f13fd70a000)                     = 0x7f13fd70a000
brk(0x7f13fdf0a000)                     = 0x7f13fdf0a000
brk(0x7f13fe70a000)                     = 0x7f13fe70a000
brk(0x7f13fef0a000)                     = 0x7f13fef0a000
brk(0x7f13ff70a000)                     = 0x7f13ff70a000
brk(0x7f13fff0a000)                     = 0x7f13fff0a000
brk(0x7f140070a000)                     = 0x7f140070a000
brk(0x7f1400f0a000)                     = 0x7f1400f0a000
mremap(0x7f13c1abf000, 100667392, 201330688, MREMAP_MAYMOVE) = 0x7f13b5abe000
brk(0x7f140170a000)                     = 0x7f140170a000
brk(0x7f1401f0a000)                     = 0x7f1401f0a000
brk(0x7f140270a000)                     = 0x7f140270a000
brk(0x7f1402f0a000)                     = 0x7f1402f0a000
brk(0x7f140370a000)                     = 0x7f140370a000
brk(0x7f1403f0a000)                     = 0x7f1403f0a000
brk(0x7f140470a000)                     = 0x7f140470a000
brk(0x7f1404f0a000)                     = 0x7f1404f0a000
brk(0x7f140570a000)                     = 0x7f140570a000
brk(0x7f1405f0a000)                     = 0x7f1405f0a000
brk(0x7f140670a000)                     = 0x7f140670a000
brk(0x7f1406f0a000)                     = 0x7f1406f0a000
brk(0x7f140770a000)                     = 0x7f140770a000
brk(0x7f1407f0a000)                     = 0x7f1407f0a000
brk(0x7f140870a000)                     = 0x7f140870a000
brk(0x7f1408f0a000)                     = 0x7f1408f0a000
brk(0x7f140970a000)                     = 0x7f140970a000

(hangs until CTRL+C)

If I restart the DB, everything can be repeated.

I tried exporting the table and importing into a new database, no change. Tested with Ubuntu 14.04 and 16.04, also CentOS 7.4, 3.x and 4.4.x kernels.
AWS i3.4xlarge instance, 128GB RAM, 16 cores.


Boris 

On Fri, Nov 17, 2017 at 2:58 PM, Michael Paquier <michael.paquier@gmail.com> wrote:
On Fri, Nov 17, 2017 at 8:26 PM,  <sagadin@gmail.com> wrote:
> This happens just on one customer table, UTF-8 is used. Can recreate and
> provide more details.

Self-contained examples aimed at reproducing a problem or a set of
problems are always welcome if you think that there is a bug of some
kind. Without more details, there is not much that can be done anyway.
--
Michael

Re: BUG #14917: process hang on create index

From
Tom Lane
Date:
Boris Sagadin <sagadin@gmail.com> writes:
>  I don't know how to create a small, reproducible example, customer
> personal data is contained.

Well, then you're going to have to do your own debugging, because the
information you've provided so far is just about useless for identifying
the problem.

One place to start is by collecting a few stack traces while it seems to
be looping:

https://wiki.postgresql.org/wiki/Generating_a_stack_trace_of_a_PostgreSQL_backend
        regards, tom lane


Re: BUG #14917: process hang on create index

From
Boris Sagadin
Date:
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.

Continuing.

Program received signal SIGINT, Interrupt.
get_next_seq (seq=0x7ffedb17ec10, nrules=nrules@entry=4, rulesets=rulesets@entry=0x7f5307925f88 "\001\002\001\005\001\001\001\005\002\002\002\005", weights=weights@entry=0x7f5307926394 "", table=0x7f5307925f94, extra=0x7f5307953d18 "", indirect=indirect@entry=0x7f530795bb7c) at strcoll_l.c:196
196 strcoll_l.c: No such file or directory.
#0  get_next_seq (seq=0x7ffedb17ec10, nrules=nrules@entry=4, rulesets=rulesets@entry=0x7f5307925f88 "\001\002\001\005\001\001\001\005\002\002\002\005", weights=weights@entry=0x7f5307926394 "", table=0x7f5307925f94, extra=0x7f5307953d18 "", indirect=indirect@entry=0x7f530795bb7c) at strcoll_l.c:196
#1  0x00007f530bcb8cd4 in __GI___strcoll_l (s1=<optimized out>, s2=<optimized out>, l=<optimized out>) at strcoll_l.c:598
#2  0x00007f530bcab810 in __GI_strcoll (s1=<optimized out>, s2=<optimized out>) at strcoll.c:36
#3  0x00007f530dd3671d in bttextfastcmp_locale (x=139995244067904, y=139994821917520, ssup=0x7f530e7268b8) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/adt/varlena.c:1957
#4  0x00007f530dd845b0 in ApplySortComparator (ssup=0x7f530e7268b8, isNull2=<optimized out>, datum2=<optimized out>, isNull1=<optimized out>, datum1=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/include/utils/sortsupport.h:238
#5  comparetup_index_btree (a=0x7f4abbe940c8, b=0x7f4ab76ba048, state=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/tuplesort.c:3537
#6  0x00007f530dd81e0b in qsort_tuple (a=0x7f4ab76ba048, n=<optimized out>, cmp_tuple=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:150
#7  0x00007f530dd86644 in tuplesort_performsort (state=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/tuplesort.c:1599
#8  0x00007f530da5127d in _bt_leafbuild (btspool=0x7f530e723c70, btspool2=0x0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/access/nbtree/nbtsort.c:213
#9  0x00007f530da4c531 in btbuild (fcinfo=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/access/nbtree/nbtree.c:137
#10 0x00007f530dd619fc in OidFunctionCall3Coll (functionId=functionId@entry=338, collation=collation@entry=0, arg1=arg1@entry=139994693811608, arg2=arg2@entry=139994693838656, arg3=arg3@entry=139994701390800) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/fmgr/fmgr.c:1649
#11 0x00007f530da9360d in index_build (heapRelation=heapRelation@entry=0x7f530dfebd98, indexRelation=indexRelation@entry=0x7f530dff2740, indexInfo=indexInfo@entry=0x7f530e7263d0, isprimary=isprimary@entry=0 '\000', isreindex=isreindex@entry=0 '\000') at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/catalog/index.c:2025
#12 0x00007f530da94d0f in index_create (heapRelation=heapRelation@entry=0x7f530dfebd98, indexRelationName=indexRelationName@entry=0x7f530e7261d8 "idx_space024484_fast", indexRelationId=82152332, indexRelationId@entry=0, relFileNode=<optimized out>, indexInfo=indexInfo@entry=0x7f530e7263d0, indexColNames=indexColNames@entry=0x7f530e7228c8, accessMethodObjectId=accessMethodObjectId@entry=403, tableSpaceId=tableSpaceId@entry=0, collationObjectId=collationObjectId@entry=0x7f530e722948, classObjectId=classObjectId@entry=0x7f530e722960, coloptions=coloptions@entry=0x7f530e722978, reloptions=reloptions@entry=0, isprimary=0 '\000', isconstraint=0 '\000', deferrable=0 '\000', initdeferred=0 '\000', allow_system_table_mods=0 '\000', skip_build=0 '\000', concurrent=0 '\000', is_internal=0 '\000', if_not_exists=0 '\000') at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/catalog/index.c:1100
#13 0x00007f530db1f472 in DefineIndex (relationId=relationId@entry=82144139, stmt=stmt@entry=0x7f530e726148, indexRelationId=indexRelationId@entry=0, is_alter_table=is_alter_table@entry=0 '\000', check_rights=check_rights@entry=1 '\001', skip_build=skip_build@entry=0 '\000', quiet=quiet@entry=0 '\000') at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/commands/indexcmds.c:607
#14 0x00007f530dc6b638 in ProcessUtilitySlow (parsetree=parsetree@entry=0x7f530e6f0778, queryString=queryString@entry=0x7f530e6efb18 "CREATE INDEX idx_space024484_fast ON space024484 USING btree (k, n);", context=<optimized out>, params=params@entry=0x0, completionTag=completionTag@entry=0x7ffedb180150 "", dest=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/utility.c:1259
#15 0x00007f530dc6a3b9 in standard_ProcessUtility (parsetree=0x7f530e6f0778, queryString=0x7f530e6efb18 "CREATE INDEX idx_space024484_fast ON space024484 USING btree (k, n);", context=<optimized out>, params=0x0, dest=<optimized out>, completionTag=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/utility.c:892
#16 0x00007f530dc67501 in PortalRunUtility (portal=0x7f530e6646b8, utilityStmt=0x7f530e6f0778, isTopLevel=<optimized out>, dest=0x7f530e6f0b18, completionTag=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/pquery.c:1183
#17 0x00007f530dc68146 in PortalRunMulti (portal=portal@entry=0x7f530e6646b8, isTopLevel=isTopLevel@entry=1 '\001', dest=dest@entry=0x7f530e6f0b18, altdest=altdest@entry=0x7f530e6f0b18, completionTag=completionTag@entry=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/pquery.c:1314
#18 0x00007f530dc68d15 in PortalRun (portal=portal@entry=0x7f530e6646b8, count=count@entry=9223372036854775807, isTopLevel=isTopLevel@entry=1 '\001', dest=dest@entry=0x7f530e6f0b18, altdest=altdest@entry=0x7f530e6f0b18, completionTag=completionTag@entry=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/pquery.c:812
#19 0x00007f530dc66815 in exec_simple_query (query_string=0x7f530e6efb18 "CREATE INDEX idx_space024484_fast ON space024484 USING btree (k, n);") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/postgres.c:1096
#20 PostgresMain (argc=<optimized out>, argv=argv@entry=0x7f530e646578, dbname=0x7f530e646428 "postgres", username=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/postgres.c:4049
#21 0x00007f530da0795c in BackendRun (port=0x7f530e68b9c0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:4264
#22 BackendStartup (port=0x7f530e68b9c0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:3938
#23 ServerLoop () at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:1703
#24 0x00007f530dc0b53d in PostmasterMain (argc=5, argv=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:1311
#25 0x00007f530da08662 in main (argc=5, argv=0x7f530e6451f0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/main/main.c:228
Continuing.

Program received signal SIGINT, Interrupt.
findidx (len=18446744073709551614, cpp=<synthetic pointer>) at ../locale/weight.h:59
59 ../locale/weight.h: No such file or directory.
#0  findidx (len=18446744073709551614, cpp=<synthetic pointer>) at ../locale/weight.h:59
#1  get_next_seq (seq=0x7ffedb17ec00, nrules=nrules@entry=4, rulesets=rulesets@entry=0x7f5307925f88 "\001\002\001\005\001\001\001\005\002\002\002\005", weights=weights@entry=0x7f5307926394 "", table=0x7f5307925f94, extra=0x7f5307953d18 "", indirect=indirect@entry=0x7f530795bb7c) at strcoll_l.c:198
#2  0x00007f530bcb8cfb in __GI___strcoll_l (s1=<optimized out>, s2=<optimized out>, l=<optimized out>) at strcoll_l.c:600
#3  0x00007f530bcab810 in __GI_strcoll (s1=<optimized out>, s2=<optimized out>) at strcoll.c:36
#4  0x00007f530dd3671d in bttextfastcmp_locale (x=139994913656534, y=139994895554246, ssup=0x7f530e7268f8) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/adt/varlena.c:1957
#5  0x00007f530dd8478d in ApplySortComparator (ssup=0x7f530e7268f8, isNull2=0 '\000', datum2=<optimized out>, isNull1=<optimized out>, datum1=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/include/utils/sortsupport.h:238
#6  comparetup_index_btree (a=<optimized out>, b=<optimized out>, state=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/tuplesort.c:3571
#7  0x00007f530dd81e0b in qsort_tuple (a=a@entry=0x7f4ab76ba048, n=<optimized out>, n@entry=1077010, cmp_tuple=cmp_tuple@entry=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:150
#8  0x00007f530dd81cd0 in qsort_tuple (a=0x7f4ab76ba048, n=<optimized out>, cmp_tuple=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:177
#9  0x00007f530dd86644 in tuplesort_performsort (state=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/tuplesort.c:1599
#10 0x00007f530da5127d in _bt_leafbuild (btspool=0x7f530e723c70, btspool2=0x0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/access/nbtree/nbtsort.c:213
#11 0x00007f530da4c531 in btbuild (fcinfo=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/access/nbtree/nbtree.c:137
#12 0x00007f530dd619fc in OidFunctionCall3Coll (functionId=functionId@entry=338, collation=collation@entry=0, arg1=arg1@entry=139994693811608, arg2=arg2@entry=139994693838656, arg3=arg3@entry=139994701390800) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/fmgr/fmgr.c:1649
#13 0x00007f530da9360d in index_build (heapRelation=heapRelation@entry=0x7f530dfebd98, indexRelation=indexRelation@entry=0x7f530dff2740, indexInfo=indexInfo@entry=0x7f530e7263d0, isprimary=isprimary@entry=0 '\000', isreindex=isreindex@entry=0 '\000') at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/catalog/index.c:2025
#14 0x00007f530da94d0f in index_create (heapRelation=heapRelation@entry=0x7f530dfebd98, indexRelationName=indexRelationName@entry=0x7f530e7261d8 "idx_space024484_fast", indexRelationId=82152332, indexRelationId@entry=0, relFileNode=<optimized out>, indexInfo=indexInfo@entry=0x7f530e7263d0, indexColNames=indexColNames@entry=0x7f530e7228c8, accessMethodObjectId=accessMethodObjectId@entry=403, tableSpaceId=tableSpaceId@entry=0, collationObjectId=collationObjectId@entry=0x7f530e722948, classObjectId=classObjectId@entry=0x7f530e722960, coloptions=coloptions@entry=0x7f530e722978, reloptions=reloptions@entry=0, isprimary=0 '\000', isconstraint=0 '\000', deferrable=0 '\000', initdeferred=0 '\000', allow_system_table_mods=0 '\000', skip_build=0 '\000', concurrent=0 '\000', is_internal=0 '\000', if_not_exists=0 '\000') at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/catalog/index.c:1100
#15 0x00007f530db1f472 in DefineIndex (relationId=relationId@entry=82144139, stmt=stmt@entry=0x7f530e726148, indexRelationId=indexRelationId@entry=0, is_alter_table=is_alter_table@entry=0 '\000', check_rights=check_rights@entry=1 '\001', skip_build=skip_build@entry=0 '\000', quiet=quiet@entry=0 '\000') at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/commands/indexcmds.c:607
#16 0x00007f530dc6b638 in ProcessUtilitySlow (parsetree=parsetree@entry=0x7f530e6f0778, queryString=queryString@entry=0x7f530e6efb18 "CREATE INDEX idx_space024484_fast ON space024484 USING btree (k, n);", context=<optimized out>, params=params@entry=0x0, completionTag=completionTag@entry=0x7ffedb180150 "", dest=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/utility.c:1259
#17 0x00007f530dc6a3b9 in standard_ProcessUtility (parsetree=0x7f530e6f0778, queryString=0x7f530e6efb18 "CREATE INDEX idx_space024484_fast ON space024484 USING btree (k, n);", context=<optimized out>, params=0x0, dest=<optimized out>, completionTag=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/utility.c:892
#18 0x00007f530dc67501 in PortalRunUtility (portal=0x7f530e6646b8, utilityStmt=0x7f530e6f0778, isTopLevel=<optimized out>, dest=0x7f530e6f0b18, completionTag=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/pquery.c:1183
#19 0x00007f530dc68146 in PortalRunMulti (portal=portal@entry=0x7f530e6646b8, isTopLevel=isTopLevel@entry=1 '\001', dest=dest@entry=0x7f530e6f0b18, altdest=altdest@entry=0x7f530e6f0b18, completionTag=completionTag@entry=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/pquery.c:1314
#20 0x00007f530dc68d15 in PortalRun (portal=portal@entry=0x7f530e6646b8, count=count@entry=9223372036854775807, isTopLevel=isTopLevel@entry=1 '\001', dest=dest@entry=0x7f530e6f0b18, altdest=altdest@entry=0x7f530e6f0b18, completionTag=completionTag@entry=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/pquery.c:812
#21 0x00007f530dc66815 in exec_simple_query (query_string=0x7f530e6efb18 "CREATE INDEX idx_space024484_fast ON space024484 USING btree (k, n);") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/postgres.c:1096
#22 PostgresMain (argc=<optimized out>, argv=argv@entry=0x7f530e646578, dbname=0x7f530e646428 "postgres", username=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/postgres.c:4049
#23 0x00007f530da0795c in BackendRun (port=0x7f530e68b9c0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:4264
#24 BackendStartup (port=0x7f530e68b9c0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:3938
#25 ServerLoop () at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:1703
#26 0x00007f530dc0b53d in PostmasterMain (argc=5, argv=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:1311
#27 0x00007f530da08662 in main (argc=5, argv=0x7f530e6451f0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/main/main.c:228
Continuing.

Program received signal SIGINT, Interrupt.
findidx (len=18446744073709551614, cpp=<synthetic pointer>) at ../locale/weight.h:82
82 in ../locale/weight.h
#0  findidx (len=18446744073709551614, cpp=<synthetic pointer>) at ../locale/weight.h:82
#1  get_next_seq (seq=0x7ffedb17eb10, nrules=nrules@entry=4, rulesets=rulesets@entry=0x7f5307925f88 "\001\002\001\005\001\001\001\005\002\002\002\005", weights=weights@entry=0x7f5307926394 "", table=0x7f5307925f94, extra=0x7f5307953d18 "", indirect=indirect@entry=0x7f530795bb7c) at strcoll_l.c:198
#2  0x00007f530bcb8cd4 in __GI___strcoll_l (s1=<optimized out>, s2=<optimized out>, l=<optimized out>) at strcoll_l.c:598
#3  0x00007f530bcab810 in __GI_strcoll (s1=<optimized out>, s2=<optimized out>) at strcoll.c:36
#4  0x00007f530dd3671d in bttextfastcmp_locale (x=139994815226649, y=139994751671529, ssup=0x7f530e7268f8) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/adt/varlena.c:1957
#5  0x00007f530dd8478d in ApplySortComparator (ssup=0x7f530e7268f8, isNull2=0 '\000', datum2=<optimized out>, isNull1=<optimized out>, datum1=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/include/utils/sortsupport.h:238
#6  comparetup_index_btree (a=<optimized out>, b=<optimized out>, state=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/tuplesort.c:3571
#7  0x00007f530dd81dd6 in qsort_tuple (a=a@entry=0x7f4ab849b788, n=<optimized out>, n@entry=470554, cmp_tuple=cmp_tuple@entry=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:140
#8  0x00007f530dd81ef1 in qsort_tuple (a=a@entry=0x7f4ab76ba048, n=<optimized out>, n@entry=1077010, cmp_tuple=cmp_tuple@entry=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:191
#9  0x00007f530dd81cd0 in qsort_tuple (a=0x7f4ab76ba048, n=<optimized out>, cmp_tuple=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:177
#10 0x00007f530dd86644 in tuplesort_performsort (state=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/tuplesort.c:1599
#11 0x00007f530da5127d in _bt_leafbuild (btspool=0x7f530e723c70, btspool2=0x0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/access/nbtree/nbtsort.c:213
#12 0x00007f530da4c531 in btbuild (fcinfo=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/access/nbtree/nbtree.c:137
#13 0x00007f530dd619fc in OidFunctionCall3Coll (functionId=functionId@entry=338, collation=collation@entry=0, arg1=arg1@entry=139994693811608, arg2=arg2@entry=139994693838656, arg3=arg3@entry=139994701390800) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/fmgr/fmgr.c:1649
#14 0x00007f530da9360d in index_build (heapRelation=heapRelation@entry=0x7f530dfebd98, indexRelation=indexRelation@entry=0x7f530dff2740, indexInfo=indexInfo@entry=0x7f530e7263d0, isprimary=isprimary@entry=0 '\000', isreindex=isreindex@entry=0 '\000') at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/catalog/index.c:2025
#15 0x00007f530da94d0f in index_create (heapRelation=heapRelation@entry=0x7f530dfebd98, indexRelationName=indexRelationName@entry=0x7f530e7261d8 "idx_space024484_fast", indexRelationId=82152332, indexRelationId@entry=0, relFileNode=<optimized out>, indexInfo=indexInfo@entry=0x7f530e7263d0, indexColNames=indexColNames@entry=0x7f530e7228c8, accessMethodObjectId=accessMethodObjectId@entry=403, tableSpaceId=tableSpaceId@entry=0, collationObjectId=collationObjectId@entry=0x7f530e722948, classObjectId=classObjectId@entry=0x7f530e722960, coloptions=coloptions@entry=0x7f530e722978, reloptions=reloptions@entry=0, isprimary=0 '\000', isconstraint=0 '\000', deferrable=0 '\000', initdeferred=0 '\000', allow_system_table_mods=0 '\000', skip_build=0 '\000', concurrent=0 '\000', is_internal=0 '\000', if_not_exists=0 '\000') at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/catalog/index.c:1100
#16 0x00007f530db1f472 in DefineIndex (relationId=relationId@entry=82144139, stmt=stmt@entry=0x7f530e726148, indexRelationId=indexRelationId@entry=0, is_alter_table=is_alter_table@entry=0 '\000', check_rights=check_rights@entry=1 '\001', skip_build=skip_build@entry=0 '\000', quiet=quiet@entry=0 '\000') at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/commands/indexcmds.c:607
#17 0x00007f530dc6b638 in ProcessUtilitySlow (parsetree=parsetree@entry=0x7f530e6f0778, queryString=queryString@entry=0x7f530e6efb18 "CREATE INDEX idx_space024484_fast ON space024484 USING btree (k, n);", context=<optimized out>, params=params@entry=0x0, completionTag=completionTag@entry=0x7ffedb180150 "", dest=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/utility.c:1259
#18 0x00007f530dc6a3b9 in standard_ProcessUtility (parsetree=0x7f530e6f0778, queryString=0x7f530e6efb18 "CREATE INDEX idx_space024484_fast ON space024484 USING btree (k, n);", context=<optimized out>, params=0x0, dest=<optimized out>, completionTag=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/utility.c:892
#19 0x00007f530dc67501 in PortalRunUtility (portal=0x7f530e6646b8, utilityStmt=0x7f530e6f0778, isTopLevel=<optimized out>, dest=0x7f530e6f0b18, completionTag=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/pquery.c:1183
#20 0x00007f530dc68146 in PortalRunMulti (portal=portal@entry=0x7f530e6646b8, isTopLevel=isTopLevel@entry=1 '\001', dest=dest@entry=0x7f530e6f0b18, altdest=altdest@entry=0x7f530e6f0b18, completionTag=completionTag@entry=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/pquery.c:1314
#21 0x00007f530dc68d15 in PortalRun (portal=portal@entry=0x7f530e6646b8, count=count@entry=9223372036854775807, isTopLevel=isTopLevel@entry=1 '\001', dest=dest@entry=0x7f530e6f0b18, altdest=altdest@entry=0x7f530e6f0b18, completionTag=completionTag@entry=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/pquery.c:812
#22 0x00007f530dc66815 in exec_simple_query (query_string=0x7f530e6efb18 "CREATE INDEX idx_space024484_fast ON space024484 USING btree (k, n);") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/postgres.c:1096
#23 PostgresMain (argc=<optimized out>, argv=argv@entry=0x7f530e646578, dbname=0x7f530e646428 "postgres", username=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/postgres.c:4049
#24 0x00007f530da0795c in BackendRun (port=0x7f530e68b9c0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:4264
#25 BackendStartup (port=0x7f530e68b9c0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:3938
#26 ServerLoop () at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:1703
#27 0x00007f530dc0b53d in PostmasterMain (argc=5, argv=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:1311
#28 0x00007f530da08662 in main (argc=5, argv=0x7f530e6451f0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/main/main.c:228
Continuing.

Program received signal SIGINT, Interrupt.
findidx (len=18446744073709551614, cpp=<synthetic pointer>) at ../locale/weight.h:42
42 in ../locale/weight.h
Continuing.

Program received signal SIGINT, Interrupt.
findidx (len=18446744073709551614, cpp=<synthetic pointer>) at ../locale/weight.h:42
42 in ../locale/weight.h
#0  findidx (len=18446744073709551614, cpp=<synthetic pointer>) at ../locale/weight.h:42
#1  get_next_seq (seq=0x7ffedb17eb10, nrules=nrules@entry=4, rulesets=rulesets@entry=0x7f5307925f88 "\001\002\001\005\001\001\001\005\002\002\002\005", weights=weights@entry=0x7f5307926394 "", table=0x7f5307925f94, extra=0x7f5307953d18 "", indirect=indirect@entry=0x7f530795bb7c) at strcoll_l.c:198
#2  0x00007f530bcb8cd4 in __GI___strcoll_l (s1=<optimized out>, s2=<optimized out>, l=<optimized out>) at strcoll_l.c:598
#3  0x00007f530bcab810 in __GI_strcoll (s1=<optimized out>, s2=<optimized out>) at strcoll.c:36
#4  0x00007f530dd3671d in bttextfastcmp_locale (x=139995304437865, y=139994751671529, ssup=0x7f530e7268f8) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/adt/varlena.c:1957
#5  0x00007f530dd8478d in ApplySortComparator (ssup=0x7f530e7268f8, isNull2=0 '\000', datum2=<optimized out>, isNull1=<optimized out>, datum1=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/include/utils/sortsupport.h:238
#6  comparetup_index_btree (a=<optimized out>, b=<optimized out>, state=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/tuplesort.c:3571
#7  0x00007f530dd81dd6 in qsort_tuple (a=a@entry=0x7f4ab849b788, n=<optimized out>, n@entry=470554, cmp_tuple=cmp_tuple@entry=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:140
#8  0x00007f530dd81ef1 in qsort_tuple (a=a@entry=0x7f4ab76ba048, n=<optimized out>, n@entry=1077010, cmp_tuple=cmp_tuple@entry=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:191
#9  0x00007f530dd81cd0 in qsort_tuple (a=0x7f4ab76ba048, n=<optimized out>, cmp_tuple=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:177
#10 0x00007f530dd86644 in tuplesort_performsort (state=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/tuplesort.c:1599
#11 0x00007f530da5127d in _bt_leafbuild (btspool=0x7f530e723c70, btspool2=0x0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/access/nbtree/nbtsort.c:213
#12 0x00007f530da4c531 in btbuild (fcinfo=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/access/nbtree/nbtree.c:137
#13 0x00007f530dd619fc in OidFunctionCall3Coll (functionId=functionId@entry=338, collation=collation@entry=0, arg1=arg1@entry=139994693811608, arg2=arg2@entry=139994693838656, arg3=arg3@entry=139994701390800) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/fmgr/fmgr.c:1649
#14 0x00007f530da9360d in index_build (heapRelation=heapRelation@entry=0x7f530dfebd98, indexRelation=indexRelation@entry=0x7f530dff2740, indexInfo=indexInfo@entry=0x7f530e7263d0, isprimary=isprimary@entry=0 '\000', isreindex=isreindex@entry=0 '\000') at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/catalog/index.c:2025
#15 0x00007f530da94d0f in index_create (heapRelation=heapRelation@entry=0x7f530dfebd98, indexRelationName=indexRelationName@entry=0x7f530e7261d8 "idx_space024484_fast", indexRelationId=82152332, indexRelationId@entry=0, relFileNode=<optimized out>, indexInfo=indexInfo@entry=0x7f530e7263d0, indexColNames=indexColNames@entry=0x7f530e7228c8, accessMethodObjectId=accessMethodObjectId@entry=403, tableSpaceId=tableSpaceId@entry=0, collationObjectId=collationObjectId@entry=0x7f530e722948, classObjectId=classObjectId@entry=0x7f530e722960, coloptions=coloptions@entry=0x7f530e722978, reloptions=reloptions@entry=0, isprimary=0 '\000', isconstraint=0 '\000', deferrable=0 '\000', initdeferred=0 '\000', allow_system_table_mods=0 '\000', skip_build=0 '\000', concurrent=0 '\000', is_internal=0 '\000', if_not_exists=0 '\000') at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/catalog/index.c:1100
#16 0x00007f530db1f472 in DefineIndex (relationId=relationId@entry=82144139, stmt=stmt@entry=0x7f530e726148, indexRelationId=indexRelationId@entry=0, is_alter_table=is_alter_table@entry=0 '\000', check_rights=check_rights@entry=1 '\001', skip_build=skip_build@entry=0 '\000', quiet=quiet@entry=0 '\000') at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/commands/indexcmds.c:607
#17 0x00007f530dc6b638 in ProcessUtilitySlow (parsetree=parsetree@entry=0x7f530e6f0778, queryString=queryString@entry=0x7f530e6efb18 "CREATE INDEX idx_space024484_fast ON space024484 USING btree (k, n);", context=<optimized out>, params=params@entry=0x0, completionTag=completionTag@entry=0x7ffedb180150 "", dest=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/utility.c:1259
#18 0x00007f530dc6a3b9 in standard_ProcessUtility (parsetree=0x7f530e6f0778, queryString=0x7f530e6efb18 "CREATE INDEX idx_space024484_fast ON space024484 USING btree (k, n);", context=<optimized out>, params=0x0, dest=<optimized out>, completionTag=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/utility.c:892
#19 0x00007f530dc67501 in PortalRunUtility (portal=0x7f530e6646b8, utilityStmt=0x7f530e6f0778, isTopLevel=<optimized out>, dest=0x7f530e6f0b18, completionTag=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/pquery.c:1183
#20 0x00007f530dc68146 in PortalRunMulti (portal=portal@entry=0x7f530e6646b8, isTopLevel=isTopLevel@entry=1 '\001', dest=dest@entry=0x7f530e6f0b18, altdest=altdest@entry=0x7f530e6f0b18, completionTag=completionTag@entry=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/pquery.c:1314
#21 0x00007f530dc68d15 in PortalRun (portal=portal@entry=0x7f530e6646b8, count=count@entry=9223372036854775807, isTopLevel=isTopLevel@entry=1 '\001', dest=dest@entry=0x7f530e6f0b18, altdest=altdest@entry=0x7f530e6f0b18, completionTag=completionTag@entry=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/pquery.c:812
#22 0x00007f530dc66815 in exec_simple_query (query_string=0x7f530e6efb18 "CREATE INDEX idx_space024484_fast ON space024484 USING btree (k, n);") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/postgres.c:1096
#23 PostgresMain (argc=<optimized out>, argv=argv@entry=0x7f530e646578, dbname=0x7f530e646428 "postgres", username=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/postgres.c:4049
#24 0x00007f530da0795c in BackendRun (port=0x7f530e68b9c0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:4264
#25 BackendStartup (port=0x7f530e68b9c0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:3938
#26 ServerLoop () at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:1703
#27 0x00007f530dc0b53d in PostmasterMain (argc=5, argv=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:1311
#28 0x00007f530da08662 in main (argc=5, argv=0x7f530e6451f0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/main/main.c:228
Continuing.

Program received signal SIGINT, Interrupt.
0x00007f530bcb7c0a in findidx (len=18446744073709551614, cpp=<synthetic pointer>) at ../locale/weight.h:93
93 in ../locale/weight.h
#0  0x00007f530bcb7c0a in findidx (len=18446744073709551614, cpp=<synthetic pointer>) at ../locale/weight.h:93
#1  get_next_seq (seq=0x7ffedb17ea90, nrules=nrules@entry=4, rulesets=rulesets@entry=0x7f5307925f88 "\001\002\001\005\001\001\001\005\002\002\002\005", weights=weights@entry=0x7f5307926394 "", table=0x7f5307925f94, extra=0x7f5307953d18 "", indirect=indirect@entry=0x7f530795bb7c) at strcoll_l.c:198
#2  0x00007f530bcb8cd4 in __GI___strcoll_l (s1=<optimized out>, s2=<optimized out>, l=<optimized out>) at strcoll_l.c:598
#3  0x00007f530bcab810 in __GI_strcoll (s1=<optimized out>, s2=<optimized out>) at strcoll.c:36
#4  0x00007f530dd3671d in bttextfastcmp_locale (x=139995151449433, y=139995298339177, ssup=0x7f530e7268f8) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/adt/varlena.c:1957
#5  0x00007f530dd8478d in ApplySortComparator (ssup=0x7f530e7268f8, isNull2=0 '\000', datum2=<optimized out>, isNull1=<optimized out>, datum1=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/include/utils/sortsupport.h:238
#6  comparetup_index_btree (a=<optimized out>, b=<optimized out>, state=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/tuplesort.c:3571
#7  0x00007f530dd81dd6 in qsort_tuple (a=a@entry=0x7f4ab849b788, n=<optimized out>, n@entry=187172, cmp_tuple=cmp_tuple@entry=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:140
#8  0x00007f530dd81cd0 in qsort_tuple (a=a@entry=0x7f4ab849b788, n=<optimized out>, n@entry=470554, cmp_tuple=cmp_tuple@entry=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:177
#9  0x00007f530dd81ef1 in qsort_tuple (a=a@entry=0x7f4ab76ba048, n=<optimized out>, n@entry=1077010, cmp_tuple=cmp_tuple@entry=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:191
#10 0x00007f530dd81cd0 in qsort_tuple (a=0x7f4ab76ba048, n=<optimized out>, cmp_tuple=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:177
#11 0x00007f530dd86644 in tuplesort_performsort (state=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/tuplesort.c:1599
#12 0x00007f530da5127d in _bt_leafbuild (btspool=0x7f530e723c70, btspool2=0x0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/access/nbtree/nbtsort.c:213
#13 0x00007f530da4c531 in btbuild (fcinfo=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/access/nbtree/nbtree.c:137
#14 0x00007f530dd619fc in OidFunctionCall3Coll (functionId=functionId@entry=338, collation=collation@entry=0, arg1=arg1@entry=139994693811608, arg2=arg2@entry=139994693838656, arg3=arg3@entry=139994701390800) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/fmgr/fmgr.c:1649
#15 0x00007f530da9360d in index_build (heapRelation=heapRelation@entry=0x7f530dfebd98, indexRelation=indexRelation@entry=0x7f530dff2740, indexInfo=indexInfo@entry=0x7f530e7263d0, isprimary=isprimary@entry=0 '\000', isreindex=isreindex@entry=0 '\000') at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/catalog/index.c:2025
#16 0x00007f530da94d0f in index_create (heapRelation=heapRelation@entry=0x7f530dfebd98, indexRelationName=indexRelationName@entry=0x7f530e7261d8 "idx_space024484_fast", indexRelationId=82152332, indexRelationId@entry=0, relFileNode=<optimized out>, indexInfo=indexInfo@entry=0x7f530e7263d0, indexColNames=indexColNames@entry=0x7f530e7228c8, accessMethodObjectId=accessMethodObjectId@entry=403, tableSpaceId=tableSpaceId@entry=0, collationObjectId=collationObjectId@entry=0x7f530e722948, classObjectId=classObjectId@entry=0x7f530e722960, coloptions=coloptions@entry=0x7f530e722978, reloptions=reloptions@entry=0, isprimary=0 '\000', isconstraint=0 '\000', deferrable=0 '\000', initdeferred=0 '\000', allow_system_table_mods=0 '\000', skip_build=0 '\000', concurrent=0 '\000', is_internal=0 '\000', if_not_exists=0 '\000') at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/catalog/index.c:1100
#17 0x00007f530db1f472 in DefineIndex (relationId=relationId@entry=82144139, stmt=stmt@entry=0x7f530e726148, indexRelationId=indexRelationId@entry=0, is_alter_table=is_alter_table@entry=0 '\000', check_rights=check_rights@entry=1 '\001', skip_build=skip_build@entry=0 '\000', quiet=quiet@entry=0 '\000') at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/commands/indexcmds.c:607
#18 0x00007f530dc6b638 in ProcessUtilitySlow (parsetree=parsetree@entry=0x7f530e6f0778, queryString=queryString@entry=0x7f530e6efb18 "CREATE INDEX idx_space024484_fast ON space024484 USING btree (k, n);", context=<optimized out>, params=params@entry=0x0, completionTag=completionTag@entry=0x7ffedb180150 "", dest=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/utility.c:1259
#19 0x00007f530dc6a3b9 in standard_ProcessUtility (parsetree=0x7f530e6f0778, queryString=0x7f530e6efb18 "CREATE INDEX idx_space024484_fast ON space024484 USING btree (k, n);", context=<optimized out>, params=0x0, dest=<optimized out>, completionTag=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/utility.c:892
#20 0x00007f530dc67501 in PortalRunUtility (portal=0x7f530e6646b8, utilityStmt=0x7f530e6f0778, isTopLevel=<optimized out>, dest=0x7f530e6f0b18, completionTag=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/pquery.c:1183
#21 0x00007f530dc68146 in PortalRunMulti (portal=portal@entry=0x7f530e6646b8, isTopLevel=isTopLevel@entry=1 '\001', dest=dest@entry=0x7f530e6f0b18, altdest=altdest@entry=0x7f530e6f0b18, completionTag=completionTag@entry=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/pquery.c:1314
#22 0x00007f530dc68d15 in PortalRun (portal=portal@entry=0x7f530e6646b8, count=count@entry=9223372036854775807, isTopLevel=isTopLevel@entry=1 '\001', dest=dest@entry=0x7f530e6f0b18, altdest=altdest@entry=0x7f530e6f0b18, completionTag=completionTag@entry=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/pquery.c:812
#23 0x00007f530dc66815 in exec_simple_query (query_string=0x7f530e6efb18 "CREATE INDEX idx_space024484_fast ON space024484 USING btree (k, n);") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/postgres.c:1096
#24 PostgresMain (argc=<optimized out>, argv=argv@entry=0x7f530e646578, dbname=0x7f530e646428 "postgres", username=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/postgres.c:4049
#25 0x00007f530da0795c in BackendRun (port=0x7f530e68b9c0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:4264
#26 BackendStartup (port=0x7f530e68b9c0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:3938
#27 ServerLoop () at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:1703
#28 0x00007f530dc0b53d in PostmasterMain (argc=5, argv=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:1311
#29 0x00007f530da08662 in main (argc=5, argv=0x7f530e6451f0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/main/main.c:228
Continuing.

Program received signal SIGINT, Interrupt.
findidx (len=18446744073709551614, cpp=<synthetic pointer>) at ../locale/weight.h:59
59 in ../locale/weight.h
#0  findidx (len=18446744073709551614, cpp=<synthetic pointer>) at ../locale/weight.h:59
#1  get_next_seq (seq=0x7ffedb17ea80, nrules=nrules@entry=4, rulesets=rulesets@entry=0x7f5307925f88 "\001\002\001\005\001\001\001\005\002\002\002\005", weights=weights@entry=0x7f5307926394 "", table=0x7f5307925f94, extra=0x7f5307953d18 "", indirect=indirect@entry=0x7f530795bb7c) at strcoll_l.c:198
#2  0x00007f530bcb8cfb in __GI___strcoll_l (s1=<optimized out>, s2=<optimized out>, l=<optimized out>) at strcoll_l.c:600
#3  0x00007f530bcab810 in __GI_strcoll (s1=<optimized out>, s2=<optimized out>) at strcoll.c:36
#4  0x00007f530dd3671d in bttextfastcmp_locale (x=139994775433737, y=139995035445657, ssup=0x7f530e7268f8) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/adt/varlena.c:1957
#5  0x00007f530dd8478d in ApplySortComparator (ssup=0x7f530e7268f8, isNull2=0 '\000', datum2=<optimized out>, isNull1=<optimized out>, datum1=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/include/utils/sortsupport.h:238
#6  comparetup_index_btree (a=<optimized out>, b=<optimized out>, state=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/tuplesort.c:3571
#7  0x00007f530dd81e0b in qsort_tuple (a=a@entry=0x7f4ab875ef00, n=<optimized out>, n@entry=66431, cmp_tuple=cmp_tuple@entry=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:150
#8  0x00007f530dd81ef1 in qsort_tuple (a=a@entry=0x7f4ab849b788, n=<optimized out>, n@entry=187172, cmp_tuple=cmp_tuple@entry=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:191
#9  0x00007f530dd81cd0 in qsort_tuple (a=a@entry=0x7f4ab849b788, n=<optimized out>, n@entry=470554, cmp_tuple=cmp_tuple@entry=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:177
#10 0x00007f530dd81ef1 in qsort_tuple (a=a@entry=0x7f4ab76ba048, n=<optimized out>, n@entry=1077010, cmp_tuple=cmp_tuple@entry=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:191
#11 0x00007f530dd81cd0 in qsort_tuple (a=0x7f4ab76ba048, n=<optimized out>, cmp_tuple=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:177
#12 0x00007f530dd86644 in tuplesort_performsort (state=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/tuplesort.c:1599
#13 0x00007f530da5127d in _bt_leafbuild (btspool=0x7f530e723c70, btspool2=0x0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/access/nbtree/nbtsort.c:213
#14 0x00007f530da4c531 in btbuild (fcinfo=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/access/nbtree/nbtree.c:137
#15 0x00007f530dd619fc in OidFunctionCall3Coll (functionId=functionId@entry=338, collation=collation@entry=0, arg1=arg1@entry=139994693811608, arg2=arg2@entry=139994693838656, arg3=arg3@entry=139994701390800) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/fmgr/fmgr.c:1649
#16 0x00007f530da9360d in index_build (heapRelation=heapRelation@entry=0x7f530dfebd98, indexRelation=indexRelation@entry=0x7f530dff2740, indexInfo=indexInfo@entry=0x7f530e7263d0, isprimary=isprimary@entry=0 '\000', isreindex=isreindex@entry=0 '\000') at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/catalog/index.c:2025
#17 0x00007f530da94d0f in index_create (heapRelation=heapRelation@entry=0x7f530dfebd98, indexRelationName=indexRelationName@entry=0x7f530e7261d8 "idx_space024484_fast", indexRelationId=82152332, indexRelationId@entry=0, relFileNode=<optimized out>, indexInfo=indexInfo@entry=0x7f530e7263d0, indexColNames=indexColNames@entry=0x7f530e7228c8, accessMethodObjectId=accessMethodObjectId@entry=403, tableSpaceId=tableSpaceId@entry=0, collationObjectId=collationObjectId@entry=0x7f530e722948, classObjectId=classObjectId@entry=0x7f530e722960, coloptions=coloptions@entry=0x7f530e722978, reloptions=reloptions@entry=0, isprimary=0 '\000', isconstraint=0 '\000', deferrable=0 '\000', initdeferred=0 '\000', allow_system_table_mods=0 '\000', skip_build=0 '\000', concurrent=0 '\000', is_internal=0 '\000', if_not_exists=0 '\000') at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/catalog/index.c:1100
#18 0x00007f530db1f472 in DefineIndex (relationId=relationId@entry=82144139, stmt=stmt@entry=0x7f530e726148, indexRelationId=indexRelationId@entry=0, is_alter_table=is_alter_table@entry=0 '\000', check_rights=check_rights@entry=1 '\001', skip_build=skip_build@entry=0 '\000', quiet=quiet@entry=0 '\000') at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/commands/indexcmds.c:607
#19 0x00007f530dc6b638 in ProcessUtilitySlow (parsetree=parsetree@entry=0x7f530e6f0778, queryString=queryString@entry=0x7f530e6efb18 "CREATE INDEX idx_space024484_fast ON space024484 USING btree (k, n);", context=<optimized out>, params=params@entry=0x0, completionTag=completionTag@entry=0x7ffedb180150 "", dest=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/utility.c:1259
#20 0x00007f530dc6a3b9 in standard_ProcessUtility (parsetree=0x7f530e6f0778, queryString=0x7f530e6efb18 "CREATE INDEX idx_space024484_fast ON space024484 USING btree (k, n);", context=<optimized out>, params=0x0, dest=<optimized out>, completionTag=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/utility.c:892
#21 0x00007f530dc67501 in PortalRunUtility (portal=0x7f530e6646b8, utilityStmt=0x7f530e6f0778, isTopLevel=<optimized out>, dest=0x7f530e6f0b18, completionTag=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/pquery.c:1183
#22 0x00007f530dc68146 in PortalRunMulti (portal=portal@entry=0x7f530e6646b8, isTopLevel=isTopLevel@entry=1 '\001', dest=dest@entry=0x7f530e6f0b18, altdest=altdest@entry=0x7f530e6f0b18, completionTag=completionTag@entry=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/pquery.c:1314
#23 0x00007f530dc68d15 in PortalRun (portal=portal@entry=0x7f530e6646b8, count=count@entry=9223372036854775807, isTopLevel=isTopLevel@entry=1 '\001', dest=dest@entry=0x7f530e6f0b18, altdest=altdest@entry=0x7f530e6f0b18, completionTag=completionTag@entry=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/pquery.c:812
#24 0x00007f530dc66815 in exec_simple_query (query_string=0x7f530e6efb18 "CREATE INDEX idx_space024484_fast ON space024484 USING btree (k, n);") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/postgres.c:1096
#25 PostgresMain (argc=<optimized out>, argv=argv@entry=0x7f530e646578, dbname=0x7f530e646428 "postgres", username=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/postgres.c:4049
#26 0x00007f530da0795c in BackendRun (port=0x7f530e68b9c0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:4264
#27 BackendStartup (port=0x7f530e68b9c0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:3938
#28 ServerLoop () at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:1703
#29 0x00007f530dc0b53d in PostmasterMain (argc=5, argv=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:1311
#30 0x00007f530da08662 in main (argc=5, argv=0x7f530e6451f0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/main/main.c:228
Continuing.

Program received signal SIGINT, Interrupt.
findidx (len=18446744073709551614, cpp=<synthetic pointer>) at ../locale/weight.h:48
48 in ../locale/weight.h
#0  findidx (len=18446744073709551614, cpp=<synthetic pointer>) at ../locale/weight.h:48
#1  get_next_seq (seq=0x7ffedb17ea00, nrules=nrules@entry=4, rulesets=rulesets@entry=0x7f5307925f88 "\001\002\001\005\001\001\001\005\002\002\002\005", weights=weights@entry=0x7f5307926394 "", table=0x7f5307925f94, extra=0x7f5307953d18 "", indirect=indirect@entry=0x7f530795bb7c) at strcoll_l.c:198
#2  0x00007f530bcb8cfb in __GI___strcoll_l (s1=<optimized out>, s2=<optimized out>, l=<optimized out>) at strcoll_l.c:600
#3  0x00007f530bcab810 in __GI_strcoll (s1=<optimized out>, s2=<optimized out>) at strcoll.c:36
#4  0x00007f530dd3671d in bttextfastcmp_locale (x=139995142867225, y=139995284610761, ssup=0x7f530e7268f8) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/adt/varlena.c:1957
#5  0x00007f530dd8478d in ApplySortComparator (ssup=0x7f530e7268f8, isNull2=0 '\000', datum2=<optimized out>, isNull1=<optimized out>, datum1=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/include/utils/sortsupport.h:238
#6  comparetup_index_btree (a=<optimized out>, b=<optimized out>, state=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/tuplesort.c:3571
#7  0x00007f530dd81e0b in qsort_tuple (a=a@entry=0x7f4ab875ef00, n=<optimized out>, n@entry=17292, cmp_tuple=cmp_tuple@entry=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:150
#8  0x00007f530dd81cd0 in qsort_tuple (a=a@entry=0x7f4ab875ef00, n=<optimized out>, n@entry=66431, cmp_tuple=cmp_tuple@entry=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:177
#9  0x00007f530dd81ef1 in qsort_tuple (a=a@entry=0x7f4ab849b788, n=<optimized out>, n@entry=187172, cmp_tuple=cmp_tuple@entry=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:191
#10 0x00007f530dd81cd0 in qsort_tuple (a=a@entry=0x7f4ab849b788, n=<optimized out>, n@entry=470554, cmp_tuple=cmp_tuple@entry=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:177
#11 0x00007f530dd81ef1 in qsort_tuple (a=a@entry=0x7f4ab76ba048, n=<optimized out>, n@entry=1077010, cmp_tuple=cmp_tuple@entry=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:191
#12 0x00007f530dd81cd0 in qsort_tuple (a=0x7f4ab76ba048, n=<optimized out>, cmp_tuple=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:177
#13 0x00007f530dd86644 in tuplesort_performsort (state=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/tuplesort.c:1599
#14 0x00007f530da5127d in _bt_leafbuild (btspool=0x7f530e723c70, btspool2=0x0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/access/nbtree/nbtsort.c:213
#15 0x00007f530da4c531 in btbuild (fcinfo=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/access/nbtree/nbtree.c:137
#16 0x00007f530dd619fc in OidFunctionCall3Coll (functionId=functionId@entry=338, collation=collation@entry=0, arg1=arg1@entry=139994693811608, arg2=arg2@entry=139994693838656, arg3=arg3@entry=139994701390800) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/fmgr/fmgr.c:1649
#17 0x00007f530da9360d in index_build (heapRelation=heapRelation@entry=0x7f530dfebd98, indexRelation=indexRelation@entry=0x7f530dff2740, indexInfo=indexInfo@entry=0x7f530e7263d0, isprimary=isprimary@entry=0 '\000', isreindex=isreindex@entry=0 '\000') at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/catalog/index.c:2025
#18 0x00007f530da94d0f in index_create (heapRelation=heapRelation@entry=0x7f530dfebd98, indexRelationName=indexRelationName@entry=0x7f530e7261d8 "idx_space024484_fast", indexRelationId=82152332, indexRelationId@entry=0, relFileNode=<optimized out>, indexInfo=indexInfo@entry=0x7f530e7263d0, indexColNames=indexColNames@entry=0x7f530e7228c8, accessMethodObjectId=accessMethodObjectId@entry=403, tableSpaceId=tableSpaceId@entry=0, collationObjectId=collationObjectId@entry=0x7f530e722948, classObjectId=classObjectId@entry=0x7f530e722960, coloptions=coloptions@entry=0x7f530e722978, reloptions=reloptions@entry=0, isprimary=0 '\000', isconstraint=0 '\000', deferrable=0 '\000', initdeferred=0 '\000', allow_system_table_mods=0 '\000', skip_build=0 '\000', concurrent=0 '\000', is_internal=0 '\000', if_not_exists=0 '\000') at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/catalog/index.c:1100
#19 0x00007f530db1f472 in DefineIndex (relationId=relationId@entry=82144139, stmt=stmt@entry=0x7f530e726148, indexRelationId=indexRelationId@entry=0, is_alter_table=is_alter_table@entry=0 '\000', check_rights=check_rights@entry=1 '\001', skip_build=skip_build@entry=0 '\000', quiet=quiet@entry=0 '\000') at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/commands/indexcmds.c:607
#20 0x00007f530dc6b638 in ProcessUtilitySlow (parsetree=parsetree@entry=0x7f530e6f0778, queryString=queryString@entry=0x7f530e6efb18 "CREATE INDEX idx_space024484_fast ON space024484 USING btree (k, n);", context=<optimized out>, params=params@entry=0x0, completionTag=completionTag@entry=0x7ffedb180150 "", dest=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/utility.c:1259
#21 0x00007f530dc6a3b9 in standard_ProcessUtility (parsetree=0x7f530e6f0778, queryString=0x7f530e6efb18 "CREATE INDEX idx_space024484_fast ON space024484 USING btree (k, n);", context=<optimized out>, params=0x0, dest=<optimized out>, completionTag=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/utility.c:892
#22 0x00007f530dc67501 in PortalRunUtility (portal=0x7f530e6646b8, utilityStmt=0x7f530e6f0778, isTopLevel=<optimized out>, dest=0x7f530e6f0b18, completionTag=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/pquery.c:1183
#23 0x00007f530dc68146 in PortalRunMulti (portal=portal@entry=0x7f530e6646b8, isTopLevel=isTopLevel@entry=1 '\001', dest=dest@entry=0x7f530e6f0b18, altdest=altdest@entry=0x7f530e6f0b18, completionTag=completionTag@entry=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/pquery.c:1314
#24 0x00007f530dc68d15 in PortalRun (portal=portal@entry=0x7f530e6646b8, count=count@entry=9223372036854775807, isTopLevel=isTopLevel@entry=1 '\001', dest=dest@entry=0x7f530e6f0b18, altdest=altdest@entry=0x7f530e6f0b18, completionTag=completionTag@entry=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/pquery.c:812
#25 0x00007f530dc66815 in exec_simple_query (query_string=0x7f530e6efb18 "CREATE INDEX idx_space024484_fast ON space024484 USING btree (k, n);") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/postgres.c:1096
#26 PostgresMain (argc=<optimized out>, argv=argv@entry=0x7f530e646578, dbname=0x7f530e646428 "postgres", username=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/postgres.c:4049
#27 0x00007f530da0795c in BackendRun (port=0x7f530e68b9c0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:4264
#28 BackendStartup (port=0x7f530e68b9c0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:3938
#29 ServerLoop () at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:1703
#30 0x00007f530dc0b53d in PostmasterMain (argc=5, argv=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:1311
#31 0x00007f530da08662 in main (argc=5, argv=0x7f530e6451f0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/main/main.c:228
Continuing.

Program received signal SIGINT, Interrupt.
findidx (len=18446744073709551614, cpp=<synthetic pointer>) at ../locale/weight.h:48
48 in ../locale/weight.h
#0  findidx (len=18446744073709551614, cpp=<synthetic pointer>) at ../locale/weight.h:48
#1  get_next_seq (seq=0x7ffedb17ea00, nrules=nrules@entry=4, rulesets=rulesets@entry=0x7f5307925f88 "\001\002\001\005\001\001\001\005\002\002\002\005", weights=weights@entry=0x7f5307926394 "", table=0x7f5307925f94, extra=0x7f5307953d18 "", indirect=indirect@entry=0x7f530795bb7c) at strcoll_l.c:198
#2  0x00007f530bcb8cfb in __GI___strcoll_l (s1=<optimized out>, s2=<optimized out>, l=<optimized out>) at strcoll_l.c:600
#3  0x00007f530bcab810 in __GI_strcoll (s1=<optimized out>, s2=<optimized out>) at strcoll.c:36
#4  0x00007f530dd3671d in bttextfastcmp_locale (x=139994798856841, y=139995455839593, ssup=0x7f530e7268f8) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/adt/varlena.c:1957
#5  0x00007f530dd8478d in ApplySortComparator (ssup=0x7f530e7268f8, isNull2=0 '\000', datum2=<optimized out>, isNull1=<optimized out>, datum1=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/include/utils/sortsupport.h:238
#6  comparetup_index_btree (a=<optimized out>, b=<optimized out>, state=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/tuplesort.c:3571
#7  0x00007f530dd81dd6 in qsort_tuple (a=a@entry=0x7f4ab8855590, n=<optimized out>, n@entry=24377, cmp_tuple=cmp_tuple@entry=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:140
#8  0x00007f530dd81ef1 in qsort_tuple (a=0x7f4ab87c4438, a@entry=0x7f4ab875ef00, n=<optimized out>, n@entry=66431, cmp_tuple=cmp_tuple@entry=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:191
#9  0x00007f530dd81ef1 in qsort_tuple (a=a@entry=0x7f4ab849b788, n=<optimized out>, n@entry=187172, cmp_tuple=cmp_tuple@entry=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:191
#10 0x00007f530dd81cd0 in qsort_tuple (a=a@entry=0x7f4ab849b788, n=<optimized out>, n@entry=470554, cmp_tuple=cmp_tuple@entry=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:177
#11 0x00007f530dd81ef1 in qsort_tuple (a=a@entry=0x7f4ab76ba048, n=<optimized out>, n@entry=1077010, cmp_tuple=cmp_tuple@entry=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:191
#12 0x00007f530dd81cd0 in qsort_tuple (a=0x7f4ab76ba048, n=<optimized out>, cmp_tuple=0x7f530dd84510 <comparetup_index_btree>, state=state@entry=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/qsort_tuple.c:177
#13 0x00007f530dd86644 in tuplesort_performsort (state=0x7f530e726598) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/sort/tuplesort.c:1599
#14 0x00007f530da5127d in _bt_leafbuild (btspool=0x7f530e723c70, btspool2=0x0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/access/nbtree/nbtsort.c:213
#15 0x00007f530da4c531 in btbuild (fcinfo=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/access/nbtree/nbtree.c:137
#16 0x00007f530dd619fc in OidFunctionCall3Coll (functionId=functionId@entry=338, collation=collation@entry=0, arg1=arg1@entry=139994693811608, arg2=arg2@entry=139994693838656, arg3=arg3@entry=139994701390800) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/utils/fmgr/fmgr.c:1649
#17 0x00007f530da9360d in index_build (heapRelation=heapRelation@entry=0x7f530dfebd98, indexRelation=indexRelation@entry=0x7f530dff2740, indexInfo=indexInfo@entry=0x7f530e7263d0, isprimary=isprimary@entry=0 '\000', isreindex=isreindex@entry=0 '\000') at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/catalog/index.c:2025
#18 0x00007f530da94d0f in index_create (heapRelation=heapRelation@entry=0x7f530dfebd98, indexRelationName=indexRelationName@entry=0x7f530e7261d8 "idx_space024484_fast", indexRelationId=82152332, indexRelationId@entry=0, relFileNode=<optimized out>, indexInfo=indexInfo@entry=0x7f530e7263d0, indexColNames=indexColNames@entry=0x7f530e7228c8, accessMethodObjectId=accessMethodObjectId@entry=403, tableSpaceId=tableSpaceId@entry=0, collationObjectId=collationObjectId@entry=0x7f530e722948, classObjectId=classObjectId@entry=0x7f530e722960, coloptions=coloptions@entry=0x7f530e722978, reloptions=reloptions@entry=0, isprimary=0 '\000', isconstraint=0 '\000', deferrable=0 '\000', initdeferred=0 '\000', allow_system_table_mods=0 '\000', skip_build=0 '\000', concurrent=0 '\000', is_internal=0 '\000', if_not_exists=0 '\000') at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/catalog/index.c:1100
#19 0x00007f530db1f472 in DefineIndex (relationId=relationId@entry=82144139, stmt=stmt@entry=0x7f530e726148, indexRelationId=indexRelationId@entry=0, is_alter_table=is_alter_table@entry=0 '\000', check_rights=check_rights@entry=1 '\001', skip_build=skip_build@entry=0 '\000', quiet=quiet@entry=0 '\000') at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/commands/indexcmds.c:607
#20 0x00007f530dc6b638 in ProcessUtilitySlow (parsetree=parsetree@entry=0x7f530e6f0778, queryString=queryString@entry=0x7f530e6efb18 "CREATE INDEX idx_space024484_fast ON space024484 USING btree (k, n);", context=<optimized out>, params=params@entry=0x0, completionTag=completionTag@entry=0x7ffedb180150 "", dest=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/utility.c:1259
#21 0x00007f530dc6a3b9 in standard_ProcessUtility (parsetree=0x7f530e6f0778, queryString=0x7f530e6efb18 "CREATE INDEX idx_space024484_fast ON space024484 USING btree (k, n);", context=<optimized out>, params=0x0, dest=<optimized out>, completionTag=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/utility.c:892
#22 0x00007f530dc67501 in PortalRunUtility (portal=0x7f530e6646b8, utilityStmt=0x7f530e6f0778, isTopLevel=<optimized out>, dest=0x7f530e6f0b18, completionTag=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/pquery.c:1183
#23 0x00007f530dc68146 in PortalRunMulti (portal=portal@entry=0x7f530e6646b8, isTopLevel=isTopLevel@entry=1 '\001', dest=dest@entry=0x7f530e6f0b18, altdest=altdest@entry=0x7f530e6f0b18, completionTag=completionTag@entry=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/pquery.c:1314
#24 0x00007f530dc68d15 in PortalRun (portal=portal@entry=0x7f530e6646b8, count=count@entry=9223372036854775807, isTopLevel=isTopLevel@entry=1 '\001', dest=dest@entry=0x7f530e6f0b18, altdest=altdest@entry=0x7f530e6f0b18, completionTag=completionTag@entry=0x7ffedb180150 "") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/pquery.c:812
#25 0x00007f530dc66815 in exec_simple_query (query_string=0x7f530e6efb18 "CREATE INDEX idx_space024484_fast ON space024484 USING btree (k, n);") at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/postgres.c:1096
#26 PostgresMain (argc=<optimized out>, argv=argv@entry=0x7f530e646578, dbname=0x7f530e646428 "postgres", username=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/tcop/postgres.c:4049
#27 0x00007f530da0795c in BackendRun (port=0x7f530e68b9c0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:4264
#28 BackendStartup (port=0x7f530e68b9c0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:3938
#29 ServerLoop () at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:1703
#30 0x00007f530dc0b53d in PostmasterMain (argc=5, argv=<optimized out>) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/postmaster/postmaster.c:1311
#31 0x00007f530da08662 in main (argc=5, argv=0x7f530e6451f0) at /build/postgresql-9.5-MJQSVS/postgresql-9.5-9.5.10/build/../src/backend/main/main.c:228
Detaching from program: /usr/lib/postgresql/9.5/bin/postgres, process 15726



On Sat, Nov 18, 2017 at 4:54 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Boris Sagadin <sagadin@gmail.com> writes:
>  I don't know how to create a small, reproducible example, customer
> personal data is contained.

Well, then you're going to have to do your own debugging, because the
information you've provided so far is just about useless for identifying
the problem.

One place to start is by collecting a few stack traces while it seems to
be looping:

https://wiki.postgresql.org/wiki/Generating_a_stack_trace_of_a_PostgreSQL_backend

                        regards, tom lane

Re: BUG #14917: process hang on create index

From
Tom Lane
Date:
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


Re: BUG #14917: process hang on create index

From
Peter Geoghegan
Date:
Boris Sagadin <sagadin@gmail.com> wrote:
>After a fresh DB start and CREATE INDEX idx_table123_fast ON table123 USING
>btree (k, n), strace looks normal to a point:

>brk(0x7f13d970a000)                     = 0x7f13d970a000
>mmap(NULL, 12587008, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,

Are these text strings individually very large?

-- 
Peter Geoghegan


Re: BUG #14917: process hang on create index

From
Boris Sagadin
Date:
No string is over 200 chars. By function name I assumed the get_next_seq is pgsql related, but now I've learned it's glibc. Sorting in shell with same locale is indeed very slow, I used just 1% of data in that column and it finishes sorting in a few minutes. Thanks, I'll check with glibc.


Regards,
Boris

On Mon, Nov 20, 2017 at 7:17 PM, Peter Geoghegan <pg@bowt.ie> wrote:
Boris Sagadin <sagadin@gmail.com> wrote:
After a fresh DB start and CREATE INDEX idx_table123_fast ON table123 USING
btree (k, n), strace looks normal to a point:

brk(0x7f13d970a000)                     = 0x7f13d970a000
mmap(NULL, 12587008, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,

Are these text strings individually very large?

--
Peter Geoghegan

Re: BUG #14917: process hang on create index

From
Peter Geoghegan
Date:
On Tue, Nov 21, 2017 at 12:19 AM, Boris Sagadin <sagadin@gmail.com> wrote:
> No string is over 200 chars. By function name I assumed the get_next_seq is
> pgsql related, but now I've learned it's glibc. Sorting in shell with same
> locale is indeed very slow, I used just 1% of data in that column and it
> finishes sorting in a few minutes. Thanks, I'll check with glibc.

If you upgrade to Postgres 10, you could then use ICU collations on
text columns, where CREATE INDEX can be expected to perform
significantly better:

https://blog.anayrat.info/en/2017/11/19/postgresql-10--icu--abbreviated-keys/

-- 
Peter Geoghegan