From 70347bb8f3f2e6e91df8a726d94e465621705ab1 Mon Sep 17 00:00:00 2001
From: jonaswinkler <jonas.winkler@jpwinkler.de>
Date: Wed, 16 Dec 2020 23:26:29 +0100
Subject: [PATCH] added a note to the documentation regarding character limits
 of PostgreSQL

---
 docs/setup.rst | 9 +++++++++
 1 file changed, 9 insertions(+)

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: