From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Andres Freund <andres(at)anarazel(dot)de>, Dmitriy Sarafannikov <dimon99901(at)mail(dot)ru>, pgsql-bugs <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: Re[2]: [BUGS] Segfault in MemoryContextAlloc |
Date: | 2016-02-08 05:32:48 |
Message-ID: | CAFj8pRCHRZhe4kYd49wMpjKg220T=y+eg35fAqoMAT4D9iYFRg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
2016-02-07 0:30 GMT+01:00 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
> Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:
> > 2016-01-27 13:26 GMT+01:00 Andres Freund <andres(at)anarazel(dot)de>:
> >> What exactly does your extension do? And where did you add that null
> check?
>
> > this extension does some log preprocessing for syslog
> > extension and fix attached
>
> That extension is broken on its face. You cannot have an emit_log_hook
> that does catalog access, because elog() can be called outside a
> transaction or in an already-failed transaction. Whatever band-aids
> you put around that will just be band-aids that will fail regularly.
> You need to move the catalog lookup someplace else. (Actually, I wonder
> why you're doing a catalog lookup at all ... wouldn't it be sufficient to
> do a DirectFunctionCall to inet_out?)
>
yes - the design was unlucky - and I fixed it without the necessity to
touch system catalogue there.
The interesting on this issue is fact, so this extension in form, that I
sent (badly designed) worked without any problems on 9.1, and 9.2 and
failing with low probability on 9.4, 9.5.
Regards
Pavel
>
> I doubt this has much to do with the OP's issue.
>
> regards, tom lane
>
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2016-02-08 06:58:49 | Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby |
Previous Message | Andrew Gierth | 2016-02-07 23:21:57 | Re: BUG #13863: Select from views gives wrong results |