From: Daniel Caune <daniel.caune@ubisoft.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: PostgreSQL server terminated by signal 11
Date: Thu, 27 Jul 2006 17:12:17 -0400
Message-ID: <1E293D3FF63A3740B10AD5AAD88535D202B64EC7@UBIMAIL1.ubisoft.org> (raw)
> De : Tom Lane [mailto:tgl@sss.pgh.pa.us]
> Envoyé : jeudi, juillet 27, 2006 16:06
> À : Daniel Caune
> Cc : pgsql-sql@postgresql.org
> Objet : Re: [SQL] PostgreSQL server terminated by signal 11
>
> "Daniel Caune" <daniel.caune@ubisoft.com> 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.
>
> 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).
>
> 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;
=> [CRASH]
select max(length(game_client_version))
from gslog_event
where game_client_version is not null;
=> [OK, max = 28]
select count(*)
from gslog_event
where length(game_client_version) >= 0;
=> [OK, count = 4463726]
select count(*)
from gslog_event
where upper(game_client_version) = 'FARCRYPC1.33';
=> [OK, count = 576318]
select count(*)
from gslog_event
where lower(player_username) = 'lythanhphu';
=> [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
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-sql@postgresql.org
Cc: daniel.caune@ubisoft.com, tgl@sss.pgh.pa.us
Subject: Re: PostgreSQL server terminated by signal 11
In-Reply-To: <1E293D3FF63A3740B10AD5AAD88535D202B64EC7@UBIMAIL1.ubisoft.org>
References: <1E293D3FF63A3740B10AD5AAD88535D202B64EC7@UBIMAIL1.ubisoft.org>
* 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