> Yes, that is true. As long as the storage manager relies on > the filesystem for > table names, this will be a problem, unless filesystem > deletions are delayed > until COMMIT, and filesystem creates are undone at a ROLLBACK. I like Bruce's idea of altering the filename from tablename_segnr to tablename_OID_segnr. Then a leftover new or old file will not be a problem, since it has a guaranteed different name. The cleanup of leftover old (or rolled back new files) could then be a job that vacuum does. Vadim needs _oid_ in the filenames for WAL anyway. This solves create and drop table. The alter table should imho keep an exclusive lock on the pg_class row for that table + exclusive on the usertable until transaction commit. (Thus fails if table access is not exclusive) Andreas
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера