pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Use FullTransactionId for the transaction stack.
3+ messages / 3 participants
[nested] [flat]
* pgsql: Use FullTransactionId for the transaction stack.
@ 2019-03-28 05:27 Thomas Munro <tmunro@postgresql.org>
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Munro @ 2019-03-28 05:27 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Use FullTransactionId for the transaction stack.
Provide GetTopFullTransactionId() and GetCurrentFullTransactionId().
The intended users of these interfaces are access methods that use
xids for visibility checks but don't want to have to go back and
"freeze" existing references some time later before the 32 bit xid
counter wraps around.
Use a new struct to serialize the transaction state for parallel
query, because FullTransactionId doesn't fit into the previous
serialization scheme very well.
Author: Thomas Munro
Reviewed-by: Heikki Linnakangas
Discussion: https://postgr.es/m/CAA4eK1%2BMv%2Bmb0HFfWM9Srtc6MVe160WFurXV68iAFMcagRZ0dQ%40mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/ad308058cc8666c50b43179e64d6bb7aeb3ba169
Modified Files
--------------
src/backend/access/transam/varsup.c | 13 +-
src/backend/access/transam/xact.c | 229 ++++++++++++++++++++++++------------
src/include/access/transam.h | 3 +-
src/include/access/xact.h | 5 +
src/tools/pgindent/typedefs.list | 1 +
5 files changed, 170 insertions(+), 81 deletions(-)
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pgsql: Use FullTransactionId for the transaction stack.
@ 2019-03-28 10:51 Masahiko Sawada <sawada.mshk@gmail.com>
parent: Thomas Munro <tmunro@postgresql.org>
0 siblings, 1 reply; 3+ messages in thread
From: Masahiko Sawada @ 2019-03-28 10:51 UTC (permalink / raw)
To: Thomas Munro <tmunro@postgresql.org>; +Cc: pgsql-committers@lists.postgresql.org
On Thu, Mar 28, 2019 at 2:27 PM Thomas Munro <tmunro@postgresql.org> wrote:
>
> Use FullTransactionId for the transaction stack.
>
> Provide GetTopFullTransactionId() and GetCurrentFullTransactionId().
> The intended users of these interfaces are access methods that use
> xids for visibility checks but don't want to have to go back and
> "freeze" existing references some time later before the 32 bit xid
> counter wraps around.
>
> Use a new struct to serialize the transaction state for parallel
> query, because FullTransactionId doesn't fit into the previous
> serialization scheme very well.
>
> Author: Thomas Munro
> Reviewed-by: Heikki Linnakangas
> Discussion: https://postgr.es/m/CAA4eK1%2BMv%2Bmb0HFfWM9Srtc6MVe160WFurXV68iAFMcagRZ0dQ%40mail.gmail.com
>
> Branch
> ------
> master
>
> Details
> -------
> https://git.postgresql.org/pg/commitdiff/ad308058cc8666c50b43179e64d6bb7aeb3ba169
>
> Modified Files
> --------------
> src/backend/access/transam/varsup.c | 13 +-
> src/backend/access/transam/xact.c | 229 ++++++++++++++++++++++++------------
> src/include/access/transam.h | 3 +-
> src/include/access/xact.h | 5 +
> src/tools/pgindent/typedefs.list | 1 +
> 5 files changed, 170 insertions(+), 81 deletions(-)
>
/*
+ * Serialized representation used to transmit transaction state to parallel
+ * workers though shared memory.
The second line of the above comment must be "workers *through* shared
memory"? Attached the patch.
Regards,
--
Masahiko Sawada
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center
Attachments:
fix_typo.patch (application/octet-stream, 464B) download
diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c
index f8cc136..e9ed92b 100644
--- a/src/backend/access/transam/xact.c
+++ b/src/backend/access/transam/xact.c
@@ -198,7 +198,7 @@ typedef TransactionStateData *TransactionState;
/*
* Serialized representation used to transmit transaction state to parallel
- * workers though shared memory.
+ * workers through shared memory.
*/
typedef struct SerializedTransactionState
{
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pgsql: Use FullTransactionId for the transaction stack.
@ 2019-03-28 21:06 Thomas Munro <thomas.munro@gmail.com>
parent: Masahiko Sawada <sawada.mshk@gmail.com>
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Munro @ 2019-03-28 21:06 UTC (permalink / raw)
To: Masahiko Sawada <sawada.mshk@gmail.com>; +Cc: Thomas Munro <tmunro@postgresql.org>; pgsql-committers@lists.postgresql.org
On Thu, Mar 28, 2019 at 11:55 PM Masahiko Sawada <sawada.mshk@gmail.com> wrote:
> /*
> + * Serialized representation used to transmit transaction state to parallel
> + * workers though shared memory.
>
> The second line of the above comment must be "workers *through* shared
> memory"? Attached the patch.
Right, thanks. Pushed.
--
Thomas Munro
https://enterprisedb.com
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2019-03-28 21:06 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-03-28 05:27 pgsql: Use FullTransactionId for the transaction stack. Thomas Munro <tmunro@postgresql.org>
2019-03-28 10:51 ` Masahiko Sawada <sawada.mshk@gmail.com>
2019-03-28 21:06 ` Thomas Munro <thomas.munro@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox