Re: BUG #16667: COMMIT AND CHAIN does not udpates database metrics ie. xact_commit - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #16667: COMMIT AND CHAIN does not udpates database metrics ie. xact_commit
Date
Msg-id 3100749.1602516088@sss.pgh.pa.us
Whole thread Raw
In response to BUG #16667: COMMIT AND CHAIN does not udpates database metrics ie. xact_commit  (PG Bug reporting form <noreply@postgresql.org>)
Responses Re: BUG #16667: COMMIT AND CHAIN does not udpates database metrics ie. xact_commit  (adam grech <axgrech@gmail.com>)
List pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> We have an application that uses a new feature COMMIT AND CHAIN, the
> application works generaly OK, but we have noticed that the pg_stat_database
> (xact_commit/xact_rollback) are not updated, as they are if we used
> BEGIN/COMMIT/BEGIN.

I can't reproduce that here.  Indeed, in a quick check I'd say the
opposite: it looks like xact_commit advances twice where I'd only
have expected it to advance once.

            regards, tom lane



pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #16666: Slight memory leak when running pg_ctl reload
Next
From: Pavel Borisov
Date:
Subject: Re: BUG #16329: Valgrind detects an invalid read when building a gist index with buffering