Force a checkpoint before committing a CREATE DATABASE command. This
Tom Lane <tgl@sss.pgh.pa.us>
Force a checkpoint before committing a CREATE DATABASE command. This should fix the recent reports of "index is not a btree" failures, as well as preventing a more obscure race condition involving changes to a template database just after copying it with CREATE DATABASE.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/backup.sgml | modified | +13 −1 |
| src/backend/commands/dbcommands.c | modified | +31 −1 |