aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/explain.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2024-04-03 19:55:11 +0200
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2024-04-03 19:55:11 +0200
commitc9920a9068eac2e6c8fb34988d18c0b42b9bf811 (patch)
treef8dc3c0cbe86587d69d932f07ae882b0723ef8da /src/backend/commands/explain.c
parentdeb1486c7d36e5430b50b63e8c0f2d8405e24a2a (diff)
downloadpostgresql-c9920a9068eac2e6c8fb34988d18c0b42b9bf811.tar.gz
postgresql-c9920a9068eac2e6c8fb34988d18c0b42b9bf811.zip
Split XLogCtl->LogwrtResult into separate struct members
After this change we have XLogCtl->logWriteResult and ->logFlushResult. There's no functional change, other than the fact that the assignment from shared memory to local is no longer done via struct assignment, but instead using a macro that copies each member separately. The current representation is inconvenient going forward; notably, we would like to add a new member "Copy" (to keep track of the last position copied into WAL buffers), so the symmetry between the values in shared memory vs. those in local would be lost. This also gives us freedom to later change the concurrency model for the values in shared memory: we can make them use atomics instead of relying on the info_lck spinlock. Reviewed-by: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> Discussion: https://postgr.es/m/202404031119.cd2kugjk2vho@alvherre.pgsql
Diffstat (limited to 'src/backend/commands/explain.c')
0 files changed, 0 insertions, 0 deletions