X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 262839FB209 for ; Thu, 27 Jul 2006 18:12:27 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 57042-03 for ; Thu, 27 Jul 2006 18:12:19 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from relay01.mdc.ubisoft.com (relay01.mdc.ubisoft.com [216.98.56.134]) by postgresql.org (Postfix) with ESMTP id 87E129FA7B6 for ; Thu, 27 Jul 2006 18:12:19 -0300 (ADT) Received: from UBIMAIL1.ubisoft.org (unknown [10.129.1.15]) by smarthost.mdc.ubisoft.com (Postfix) with ESMTP id D85BC4BB44; Thu, 27 Jul 2006 17:12:17 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Re: PostgreSQL server terminated by signal 11 Date: Thu, 27 Jul 2006 17:12:17 -0400 Message-ID: <1E293D3FF63A3740B10AD5AAD88535D202B64EC7@UBIMAIL1.ubisoft.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [SQL] PostgreSQL server terminated by signal 11 Thread-Index: AcaxuBUpTgfx8Vl9RmyxphtnwZn56AAAewtQ From: "Daniel Caune" To: "Tom Lane" Cc: X-Ubisoft-MailScanner-Information: Please contact administrators@ubisoft.qc.ca X-Ubisoft-MailScanner: Found to be clean X-Ubisoft-MailScanner-SpamCheck: X-MailScanner-From: daniel.caune@ubisoft.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200607/344 X-Sequence-Number: 25918 > De=A0: Tom Lane [mailto:tgl@sss.pgh.pa.us] > Envoy=E9=A0: jeudi, juillet 27, 2006 16:06 > =C0=A0: Daniel Caune > Cc=A0: pgsql-sql@postgresql.org > Objet=A0: Re: [SQL] PostgreSQL server terminated by signal 11 >=20 > "Daniel Caune" writes: > > My PostgreSQL server running on a Linux machine is terminated by = signal > > 11 whenever I try to create some indexes on a table, which contains > > quite a lot of data. >=20 > Judging from your examples it's got something to do with the partial > index WHERE clause. What PG version is this exactly? If you leave = out > different parts of the WHERE, does it still crash? Does the crash > happen immediately after you give the command, or does it run for > awhile? It might be worth getting a stack trace from the failure > (best way is to attach to the running backend with gdb, provoke the > crash, and do "bt" --- search for "gdb" in the archives if you need > details). >=20 > regards, tom lane The postgres server version is 8.1.4. Yes, if leave the WHERE clause a simple index, I don't encounter any = problem: CREATE INDEX IDX_GSLOG_EVENTTIME ON GSLOG_EVENT (EVENT_DATE_CREATED); Anyway, I'm not sure, Tom, that is only related to the WHERE clause as = crash occur with composite index too, such as: CREATE INDEX IDX_GSLOG_EVENT_PLAYER_EVENT ON GSLOG_EVENT (PLAYER_USERNAME, EVENT_NAME); The crash may happen a while after sending the command. For example, = supposing I reboot the Linux machine and I immediately run the command = (i.e. most of memory is unused), it takes more than five minutes before = crash occurs. At such time the memory usage is the following (top every = second): Mem: 2075860k total, 1787600k used, 288260k free, 6300k buffers Swap: 369452k total, 0k used, 369452k free, 1748032k cached When reconnecting to the new postgres respawn, it takes approximately = the same time for having it crashing, whatever the number of times I = proceed like this. I did some other tests trying to detect any common denominator that may = make the postgres server crashing. Here some results are: select max(length(game_client_version)) from gslog_event; =3D> [CRASH] select max(length(game_client_version)) from gslog_event where game_client_version is not null; =3D> [OK, max =3D 28] select count(*) from gslog_event where length(game_client_version) >=3D 0; =3D> [OK, count =3D 4463726] select count(*) from gslog_event where upper(game_client_version) =3D 'FARCRYPC1.33'; =3D> [OK, count =3D 576318] select count(*) from gslog_event where lower(player_username) =3D 'lythanhphu'; =3D> [CRASH] I was thinking about nullable value, but finally, you know what? I have = strictly no idea! :-) I'll look at the archive for running postgres with gdb and provide more = accurate information. Thanks, -- Daniel