From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Michael Guerin <guerin(at)rentec(dot)com> |
Cc: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: Function to blame? |
Date: | 2005-02-01 04:33:01 |
Message-ID: | 9812.1107232381@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
Michael Guerin <guerin(at)rentec(dot)com> writes:
> I'm trying to resolve an issue with the database crashing when under a
> heavy load. The error is hard to reproduce and happens once or twice a
> month. It's also been happening since Postgresql v7 and just happened
> again on v8. The database always crashes in the same way and always
> involves the function below. The log starts to fill with these messages:
Hmm, I suppose these messages are coming from several different
backends? It would be useful to adjust your logging configuration so
we can tell which messages are coming from which sessions. (See
log_pid or log_line_prefix depending on PG version.)
My first guess is that something is getting confused about which
temporary-table schema belongs to which backend, but it's hard to see
how ... and some attempts at creating a race condition during backend
entry/exit didn't show a problem, so that theory could be all wet.
It'd be helpful if you could develop a self-contained test case (even
one that takes a lot of repetitions to hit the error).
> I've included the schema for the table involved and the function code
> to see if I'm doing something in the function that I ought to do
> better.
You should be thinking in terms of how to make the error reproducible,
not how to avoid it ;-). This is surely a backend bug of some sort.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-02-01 05:20:44 | Re: Arrays of user-defined data types in other user-defined data types |
Previous Message | Michael Guerin | 2005-02-01 02:54:55 | Function to blame? |