Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

added a note to the documentation regarding character limits of PostgreSQL

jonaswinkler70347bb8f3f2
diff --git a/docs/setup.rst b/docs/setup.rst
index e5e6526ea..e20b2e54a 100644
--- a/docs/setup.rst
+++ b/docs/setup.rst
@@ -460,6 +460,15 @@ management commands as below.
load data from an old database schema in SQLite into a newer database
schema in PostgreSQL, you will run into trouble.
+.. warning::
+
+ On some database fields, PostgreSQL enforces predefined limits on maximum
+ length, whereas SQLite does not. The fields in question are the title of documents
+ (128 characters), names of document types, tags and correspondents (128 characters),
+ and filenames (1024 characters). If you have data in these fields that surpasses these
+ limits, migration to PostgreSQL is not possible and will fail with an error.
+
+
1. Stop paperless, if it is running.
2. Tell paperless to use PostgreSQL: