From: | Rod Taylor <pg(at)rbt(dot)ca> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: 8.1.3 and unused files |
Date: | 2006-05-05 22:22:41 |
Message-ID: | 1146867761.8325.145.camel@home |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, 2006-05-05 at 16:11 -0400, Tom Lane wrote:
> Rod Taylor <pg(at)rbt(dot)ca> writes:
> > % 1960 2006-05-02 17:03:19 EDTLOG: 00000: server process (PID 10171) exited with exit code 1
>
> Hm. I wonder if there are any uses of "exit(1)" in the Slony triggers.
It doesn't appear so. It does have this though:
Datum
_Slony_I_killBackend(PG_FUNCTION_ARGS)
{
int32 pid;
int32 signo;
text *signame;
if (!superuser())
elog(ERROR, "Slony-I: insufficient privilege for killBackend");
pid = PG_GETARG_INT32(0);
signame = PG_GETARG_TEXT_P(1);
if (VARSIZE(signame) == VARHDRSZ + 4 &&
memcmp(VARDATA(signame), "NULL", 0) == 0)
{
signo = 0;
}
else if (VARSIZE(signame) == VARHDRSZ + 4 &&
memcmp(VARDATA(signame), "TERM", 0) == 0)
{
signo = SIGTERM;
}
else
{
elog(ERROR, "Slony-I: unsupported signal");
}
if (kill(pid, signo) < 0)
PG_RETURN_INT32(-1);
PG_RETURN_INT32(0);
}
--
From | Date | Subject | |
---|---|---|---|
Next Message | Jim C. Nasby | 2006-05-05 22:51:15 | Re: Transactions per second |
Previous Message | Dave Page | 2006-05-05 22:11:32 | Re: [pgsql-hackers-win32] Build with Visual Studio & |