Re: Question about savepoint level?

From: Richard Guo <guofenglinux(at)gmail(dot)com>
To: Japin Li <japinli(at)hotmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Question about savepoint level?
Date: 2022-10-24 09:32:35
Message-ID: CAMbWs49waby3g6h=pQih9egPZ+E5UZYoc1jFGnRXrNQ-4c+s8A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Oct 24, 2022 at 3:00 PM Japin Li <japinli(at)hotmail(dot)com> wrote:

> On Mon, 24 Oct 2022 at 12:19, Japin Li <japinli(at)hotmail(dot)com> wrote:
> > The TransactionStateData has savepointLevel field, however, I do not
> understand
> > what is savepoint level, it seems all savepoints have the same
> savepointLevel,
> > I want to know how the savepoint level changes.
>
> I try to remove the savepointLevel, and it seems harmless. Any thoughts?

ISTM the savepointLevel always remains the same as what is in
TopTransactionStateData after looking at the codes. Now I also get
confused. Maybe what we want is nestingLevel?

Thanks
Richard

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2022-10-24 09:39:19 Re: Crash after a call to pg_backup_start()
Previous Message Aleksander Alekseev 2022-10-24 09:10:18 Re: Pluggable toaster