Skip to content

Add UUID examples. Page density exploration. - #20

Merged
andyatkinson merged 2 commits into
mainfrom
chore/uuid-experiments
Jul 22, 2025
Merged

Add UUID examples. Page density exploration.#20
andyatkinson merged 2 commits into
mainfrom
chore/uuid-experiments

Conversation

@andyatkinson

@andyatkinson andyatkinson commented Jun 12, 2025

Copy link
Copy Markdown
Owner

Blog post

Avoid UUID Version 4 Primary Keys

UUID Experiments

PgPrewarm and Pageinspect

create extension if not exists pg_prewarm;
create extension if not exists pageinspect;

I run Postgres 16 on macOS using Postgres.app.

cd # into pg_uuidv7 directory
make
sudo make install PG_CONFIG=/Applications/Postgres.app/Contents/Versions/16/bin/pg_config

Then from psql, in the target database:

create extension pg_uuidv7;

For the page density comparison, see page_density.sql

Add page_density.sql exporation
@andyatkinson
andyatkinson force-pushed the chore/uuid-experiments branch from 5adcb4e to 7a3456c Compare July 2, 2025 17:06
@andyatkinson andyatkinson changed the title Add UUID examples from blog post Add UUID examples. Page density exploration. Jul 2, 2025
@andyatkinson
andyatkinson marked this pull request as ready for review July 2, 2025 17:07
@andyatkinson
andyatkinson merged commit 472e98b into main Jul 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant