Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZFprv-0001TW-9Z for pgsql-admin@arkaria.postgresql.org; Thu, 16 Jul 2015 20:34:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZFpru-0001V8-Hz for pgsql-admin@arkaria.postgresql.org; Thu, 16 Jul 2015 20:34:58 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZFpro-0001QT-V4 for pgsql-admin@postgresql.org; Thu, 16 Jul 2015 20:34:53 +0000 Received: from mail-pa0-x22a.google.com ([2607:f8b0:400e:c03::22a]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZFprm-0006R7-7R for pgsql-admin@postgresql.org; Thu, 16 Jul 2015 20:34:51 +0000 Received: by pactm7 with SMTP id tm7so48603325pac.2 for ; Thu, 16 Jul 2015 13:34:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=fVGfndJEutRewal5XL+avJlRFnoUGCyVSaZ2Ay8ign8=; b=VMUP7t2rMmlPzYJQig2eA5JNstoZinVI/+K2BfOMm2a+Gbf47pw2FcCkhRJrZ59w28 44JeU6MjRJ67IwZevkml/+irEFRJt2HhCit9zPH6P7FFqr5m/hkYfRsMcPwNdVLLgbeS bxTdABsBAAsSQT9SAOLutsDI+Ct8l3iroFSIVjBtdstMBu3F2BCb7G3I/MPLCEcO2srx C2pFFnn3p413lcs3ea9xuyAVb25lQzhDS3snLrMN+qPUY4KZM7gv2cZ1EANgt1c4L+sm KwOYCP10/Gq2NbXJy/8JrwYwyMZB2M7azkPDro+B0/y8DaCYEhsIYbTkTfUXt4U7bcDs l8hQ== X-Received: by 10.70.90.133 with SMTP id bw5mr22334140pdb.85.1437078888409; Thu, 16 Jul 2015 13:34:48 -0700 (PDT) Received: from [17.228.150.233] ([17.228.150.233]) by smtp.gmail.com with ESMTPSA id xz1sm8844849pbc.52.2015.07.16.13.34.47 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 16 Jul 2015 13:34:47 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Subject: Re: segfault when creating index on huge table From: Yiqing Jin In-Reply-To: <4948.1437070492@sss.pgh.pa.us> Date: Thu, 16 Jul 2015 13:34:47 -0700 Cc: pgsql-admin@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <2B30837D-16A9-40F1-A150-2F3511F54FB4@gmail.com> References: <4948.1437070492@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.2102) X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Hi Tom,=20 Thanks for your reply! I=E2=80=99m having trouble getting the full stack trace since it=E2=80=99s = a controlled environment and I need to figure out a way to install all the = debug info packages. but for now i have checked all core dumps which all seems crashed at same p= oint. warning: no loadable sections found in added symbol-file system-supplied DS= O at 0x7fffe2b31000 Core was generated by `postgres: osm osm_planet [local] ALTER TABLE = '. Program terminated with signal 11, Segmentation fault. #0 0x0000000000785180 in med3_tuple (a=3D0x7f31613f1028, b=3D0x7f31613f104= 0, c=3D0xffffffff3ffffffd, cmp_tuple=3D0x7f43613f1010, state=3D0x1) at qsor= t_tuple.c:66 66 { Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.149.el6_6.= 5.x86_64 I=E2=80=99ll try get help to get a full stack trace and post here as soon a= s possible. Thanks Yiqing > On Jul 16, 2015, at 11:14 AM, Tom Lane wrote: >=20 > Yiqing Jin writes: >> I'm trapped with a problem when trying to create an index on a table with >> about 2.8 billion records in it. >> ALTER TABLE ONLY nodes ADD CONSTRAINT pk_nodes PRIMARY KEY (id); >> or >> create index pknode on nodes(id); >=20 >> Postgres terminated with segfault during the proocess. >=20 > That shouldn't happen. Can you get a stack trace from the core dump? >=20 > https://wiki.postgresql.org/wiki/Generating_a_stack_trace_of_a_PostgreSQL= _backend >=20 > regards, tom lane --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin