Peter via Postfix-users:
> On 5/10/24 00:46, Wietse Venema via Postfix-users wrote:
> > Aleksandr Stankevi? via Postfix-users:
> >> Hi postfix-users!
> >>
> >>
> >> We've recently encountered an issue where postfix lookup does not find an
> >> entry in the hash table while postmap is running. Here?s some logs for a
> >> few emails for [email protected] before/during/after postmap:
> >
> > For safe Berkeley DB updates see
> >
> > https://www.postfix.org/DATABASE_README.html#safe_db
>
> Could we consider a config parameter that when set causes postmap to do
> the map to tempfile then move into place operation similar to what's
> described in the link above?
No, because a workaround is a kludge not a solution.
- It requires directory write permission.
- It works only with databases that are contained in one file.
- Suffers from tempfile name colliion; or pollutes the file system
with random tempfile nmes and does not prevent concurrent upates.
- Does not 'fix' changes made incrementally (delete/update one entry).
Just stop using BDB, use BDB version 2, or use LMDB which
has proper multiversion concurrency control and does not need
any of this kludgery.
Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]