~/talk

Inside PostgreSQL Shared Memory

Talkat PostgresOpen 2013 · 2013-09-16..09-18· [databases]
slides:none on file

Explains concrete internals: data files live on the file system, rows packed into 8k pages with headers item pointers and a null bitmap (t‑bits), and primary types stored in native CPU formats (timestamps as 64‑bit). Memory uses a shared segment for the shared buffers cache (SysV POSIX or mmap since Postgres 9-3), processes fork from a postmaster and access the same buffers, dirty pages are written by background writer/checkpoint, and short locks use a test and set spinlock with semaphore sleep fallback.

AI-written summary · about

  1. 0:00Start
  2. 7:55File System/database/db
  3. 11:28File System Block Tuple
  4. 12:51Tuple Header C Structures
  5. 21:06Shared Memory Creation
  6. 25:10Shared Buffers
  7. 28:59Finding A Tuple Value in C
  8. 30:22Value Access in C
  9. 43:36Test And Set Lock x86 Assembler
  10. 43:53Spin Lock Always Succeeds
  11. 44:39Light Weight Locks
  12. 44:56Database Object Locks
  13. 45:34Other Shared Memory Structures
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.