From: | Joshua Tolley <eggyknap(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Magnus Hagander <magnus(at)hagander(dot)net>, Balamurugan Mahendran <balamurugan(at)adaptavant(dot)com>, Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>, pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #5773: DEBUG: reaping dead processes DEBUG: server process (PID 10007) was terminated by signal 11: Segme |
Date: | 2010-11-27 21:11:50 |
Message-ID: | 4cf1742e.0f3dec0a.3014.ffffb065@mx.google.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Sat, Nov 27, 2010 at 11:23:46AM -0500, Tom Lane wrote:
> Magnus Hagander <magnus(at)hagander(dot)net> writes:
> > Where does your uniqueidentifier.so file come from? It's not a part of
> > standard PostgreSQL 9.0, and this is the part that's crashing..
>
> There used to be a project of that name on gborg. I can't find the
> source code anymore though.
How about
http://www.postgresql.org/ftp/projects/gborg/uniqueidentifier/stable/
> > Any chance it's a third party module that you didn't recompile for 9.0?
>
> The magic-block mechanism should prevent that. What I'm wondering about
> is whether the input function is (a) careless about null input and (b)
> not marked STRICT.
I think you're right:
PG_FUNCTION_INFO_V1(uniqueidentifier_out);
Datum
uniqueidentifier_out(PG_FUNCTION_ARGS)
{
char *result;
uniqueidentifier *in = (uniqueidentifier *) PG_GETARG_POINTER(0);
if (in == NULL)
PG_RETURN_CSTRING (NULL);
...and...
CREATE OR REPLACE FUNCTION uniqueidentifier_in(cstring)
returns uniqueidentifier
as 'MODULE_PATHNAME'
language 'c';
It should use PG_ARGISNULL(0), no?
--
Joshua Tolley / eggyknap
End Point Corporation
http://www.endpoint.com
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2010-11-27 21:24:55 | Re: BUG #5773: DEBUG: reaping dead processes DEBUG: server process (PID 10007) was terminated by signal 11: Segme |
Previous Message | Tom Lane | 2010-11-27 16:23:46 | Re: BUG #5773: DEBUG: reaping dead processes DEBUG: server process (PID 10007) was terminated by signal 11: Segme |