From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Cc: | Robert Haas <robertmhaas(at)gmail(dot)com>, Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov> |
Subject: | Re: [PATCH] V3: Idle in transaction cancellation |
Date: | 2010-12-15 12:47:08 |
Message-ID: | 201012151347.08373.andres@anarazel.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wednesday 15 December 2010 13:33:30 Robert Haas wrote:
> On Wed, Dec 15, 2010 at 7:13 AM, Andres Freund <andres(at)anarazel(dot)de> wrote:
> >> It sort of looks to me like the LOG_NO_CLIENT error flag and the
> >> silent_error_while_idle flag are trying to cooperate to get the effect
> >> of throwing an error without actually throwing an error. I'm
> >> wondering if it would be at all sensible to do that more directly by
> >> making ProcessInterrupts() call AbortCurrentTransaction() in this
> >> case.
> >
> > Hm. I think you want the normal server-side error logging continuing to
> > work.
>
> I was thinking we could get around that by doing elog(LOG), but I
> guess that doesn't quite work either since we don't know what
> client_min_messages is. Hrm...
I thought about doing that first. Btw, LOG_NO_CLIENT is just a more abstracted
way of what COMERROR did before...
> >> I'm not sure if this would work, or if it's better. I'm just throwing
> >> it out there, because the current approach looks a little grotty to
> >> me.
> >
> > I with you on the grotty aspect... On the other hand the whole code is
> > not exactly nice...
>
> Yeah. I'll try to find some time to think about this some more. It
> would sure be nice if we could find a solution that's a bit
> conceptually cleaner, even if it basically works the same way as what
> you've done here.
I would like that as well. I am not sure you can achieve that in a reasonable
amount of work. At least I couldn't.
Andres
From | Date | Subject | |
---|---|---|---|
Next Message | Greg Smith | 2010-12-15 13:18:08 | Re: Re: Proposed Windows-specific change: Enable crash dumps (like core files) |
Previous Message | Robert Haas | 2010-12-15 12:36:03 | Re: ALTER TABLE ... REPLACE WITH |