# Build one installation with 0001-0002 only. That is your "old" binary. # Build another with all patches applied. That is your "new" binary. $ export OLD=/path/to/old/bin $ export NEW=/path/to/new/bin $ export DEMO=/tmp/ipu-demo $ export PGHOST=/tmp # Step 1: initdb the primary with the old (v20) binary $ mkdir -p $DEMO/archive $ $OLD/pg_config --version PostgreSQL 20devel $ $NEW/pg_config --version PostgreSQL 21devel $ $OLD/initdb -D $DEMO/primary # Step 2: configure the primary and start it on the old version # WIP: nothing verifies a retention setting, so for the demo, # wal_keep_size is to keep the primary from removing upgrade # WAL after it's archived. restore_command should also work. $ cat >> $DEMO/primary/postgresql.conf <> $DEMO/standby/postgresql.conf <