Nominatim/docs/admin
Sarah Hoffmann a1f0fc1a10 improve deadlock detection for various versions of psycopg2
Psycopg2 has changed the kind of exception that is emitted on
deadlocks between versions 2.7 and 2.8. The code was already
trying to catch both kind of errors but because the
psycopg2.errors package is unknown in 2.7 and below, the
code would throw an exception on anything but a deadlock error.

This commit wraps the deadlock handling into a context manager
to avoid code duplication and uses module imports to detect if
the new error codes are available.

Also sets the required psycopg2 version to 2.7 or bigger as
versions below are difficult to test.
2021-02-25 18:11:16 +01:00
..
Advanced-Installations.md add 'make install' to installation instructions 2021-02-10 11:15:21 +01:00
Deployment.md docs: move webserver installation into separate chapter 2020-09-15 23:51:25 +02:00
Faq.md adapt documentation to new nominatim cli tool 2021-01-14 12:12:38 +01:00
Import.md documentation: 2020 TIGER data got released 2021-02-12 23:57:12 +01:00
Installation.md improve deadlock detection for various versions of psycopg2 2021-02-25 18:11:16 +01:00
Migration.md docs: adapt check-database command 2021-02-10 21:55:04 +01:00
Setup-Nominatim-UI.md updates to admin and develop documentation 2020-12-08 17:47:38 +01:00
Update.md change the default location for external data to project dir 2021-02-02 10:56:40 +01:00