| From: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
|---|---|
| To: | Ajin Cherian <itsajin(at)gmail(dot)com> |
| Cc: | Dilip Kumar <dilipbalaut(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: [HACKERS] logical decoding of two-phase transactions |
| Date: | 2020-09-21 11:54:41 |
| Message-ID: | CAA4eK1K5k-KDcRgdbspmO6ffwq1rrjzHO4WUJOPO4YDO7LUA5w@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Mon, Sep 21, 2020 at 5:23 PM Ajin Cherian <itsajin(at)gmail(dot)com> wrote:
>
> On Mon, Sep 21, 2020 at 9:24 PM Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
>
> > I think we need to call ReorderBufferAbort at least to clean up the
> > TXN. Also, if what you are saying is correct then that should be true
> > without this patch as well, no? If so, we don't need to worry about it
> > as far as this patch is concerned.
>
> Yes, that is true. So will change this check to:
>
> if (TransactionIdIsValid(xid) &&
> ReorderBufferTxnIsPrepared(ctx->reorder, xid, parsed->twophase_gid)
>
Yeah and add the Assert for skip conditions as asked above.
--
With Regards,
Amit Kapila.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Daniel Gustafsson | 2020-09-21 11:56:00 | Lift line-length limit for pg_service.conf |
| Previous Message | Bharath Rupireddy | 2020-09-21 11:52:25 | Re: make MaxBackends available in _PG_init |