pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
reorg - pg_reorg: New Directory
2+ messages / 2 participants
[nested] [flat]

* reorg - pg_reorg: New Directory
@ 2009-04-22 07:25 User Itagaki <itagaki@pgfoundry.org>
  0 siblings, 0 replies; 2+ messages in thread

From: itagaki@pgfoundry.org @ 2009-04-22 07:25 UTC (permalink / raw)
  To: pgsql-committers

Update of /cvsroot/reorg/pg_reorg/bin/pgut
In directory pgfoundry.org:/tmp/cvs-serv53370/pgut

Log Message:
Directory /cvsroot/reorg/pg_reorg/bin/pgut added to the repository





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Add XLogCtl->logInsertResult
@ 2024-04-07 12:08 Alvaro Herrera <alvherre@alvh.no-ip.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Alvaro Herrera @ 2024-04-07 12:08 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Add XLogCtl->logInsertResult

This tracks the position of WAL that's been fully copied into WAL
buffers by all processes emitting WAL.  (For some reason we call that
"WAL insertion").  This is updated using atomic monotonic advance during
WaitXLogInsertionsToFinish, which is not when the insertions actually
occur, but it's the only place where we know where have all the
insertions have completed.

This value is useful in WALReadFromBuffers, which can verify that
callers don't try to read past what has been inserted.  (However, more
infrastructure is needed in order to actually use WAL after the flush
point, since it could be lost.)

The value is also useful in WaitXLogInsertionsToFinish() itself, since
we can now exit quickly when all WAL has been already inserted, without
even having to take any locks.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f3ff7bf83bce11709add9a6d31d4bebe95e086e3

Modified Files
--------------
src/backend/access/transam/xlog.c | 40 ++++++++++++++++++++++++++++++++++++++-
src/include/port/atomics.h        | 36 +++++++++++++++++++++++++++++++++++
2 files changed, 75 insertions(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2024-04-07 12:08 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-04-22 07:25 reorg - pg_reorg: New Directory User Itagaki <itagaki@pgfoundry.org>
2024-04-07 12:08 pgsql: Add XLogCtl->logInsertResult Alvaro Herrera <alvherre@alvh.no-ip.org>

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