A restore test on a real 105-table Supabase database failed a few weeks ago. The tool doing it restores in a strict mode, so it stopped on the first error: a function with a parameter defaulting to auth.uid() . Fixing that was quick. The interesting part came when I reproduced it locally with plain pg_restore , the way most people test a backup by hand. There it didn't stop at all. It ran to the end, and one table simply wasn't there. Here's why, how to reproduce it in two minutes, and the ...