Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZFni3-0004dB-Rp for pgsql-admin@arkaria.postgresql.org; Thu, 16 Jul 2015 18:16:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZFni3-00076h-E1 for pgsql-admin@arkaria.postgresql.org; Thu, 16 Jul 2015 18:16:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZFngR-0004or-O1 for pgsql-admin@postgresql.org; Thu, 16 Jul 2015 18:14:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZFngO-0004YC-9R for pgsql-admin@postgresql.org; Thu, 16 Jul 2015 18:14:59 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t6GIEqsX004949; Thu, 16 Jul 2015 14:14:52 -0400 From: Tom Lane To: Yiqing Jin cc: pgsql-admin@postgresql.org Subject: Re: segfault when creating index on huge table In-reply-to: References: Comments: In-reply-to Yiqing Jin message dated "Thu, 16 Jul 2015 10:29:27 -0700" Date: Thu, 16 Jul 2015 14:14:52 -0400 Message-ID: <4948.1437070492@sss.pgh.pa.us> X-Pg-Spam-Score: -3.2 (---) 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 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); > Postgres terminated with segfault during the proocess. That shouldn't happen. Can you get a stack trace from the core dump? https://wiki.postgresql.org/wiki/Generating_a_stack_trace_of_a_PostgreSQL_backend regards, tom lane -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin