Re: How to crash postgres using savepoints

From: Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>
To: Jeff Davis <jdavis-pgsql(at)empires(dot)org>
Cc: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: How to crash postgres using savepoints
Date: 2004-08-03 12:25:08
Message-ID: Pine.LNX.4.58.0408032222120.13632@linuxworld.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, 3 Aug 2004, Jeff Davis wrote:

> On Tue, 2004-08-03 at 03:41, Gavin Sherry wrote:
> > Attached is a patch fixing this.
> >
> > One question I do have:
> >
> > if (target->savepointLevel != s->savepointLevel)
> >
> > Will this ever be true in the current code? I cannot see anything setting
> > savepointLevel explicitly.
>
> >From reading the lists, it seems like that's allowing for some
> functionality that was talked about but wasn't part of the semantics
> agreed upon by the end of the discussion.

Yes. Savepoint levels are covered in the spec I was more or less just
wondering if there was any more code to come or if I'd missed something.

>
> I have a question for you also. I just posted a patch at about the same
> time you did (I sent it to pgsql-patches, but I haven't seen it appear
> yet). Mine was a one-liner (appended to end of this email) and all it
> did was add a check into the aforementioned line for a non-null target
> pointer. My patch seemed to work, so I'd like to know why you changed
> the structure around more. I did notice some things were a little
> cleaner, so was it just clean-up or does my patch fail in some way?

Just a clean up.

Gavin

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Gavin Sherry 2004-08-03 12:43:04 Re: Anybody have an Oracle PL/SQL reference at hand?
Previous Message Oliver Elphick 2004-08-03 11:36:12 Unicode restriction