summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql/operations.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/db/backends/postgresql/operations.py')
-rw-r--r--django/db/backends/postgresql/operations.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/django/db/backends/postgresql/operations.py b/django/db/backends/postgresql/operations.py
index d246638cca..4658eac7c1 100644
--- a/django/db/backends/postgresql/operations.py
+++ b/django/db/backends/postgresql/operations.py
@@ -202,16 +202,15 @@ class DatabaseOperations(BaseDatabaseOperations):
def max_name_length(self):
"""
- Returns the maximum length of an identifier.
+ Return the maximum length of an identifier.
- Note that the maximum length of an identifier is 63 by default, but can
- be changed by recompiling PostgreSQL after editing the NAMEDATALEN
- macro in src/include/pg_config_manual.h .
+ The maximum length of an identifier is 63 by default, but can be
+ changed by recompiling PostgreSQL after editing the NAMEDATALEN
+ macro in src/include/pg_config_manual.h.
- This implementation simply returns 63, but can easily be overridden by a
- custom database backend that inherits most of its behavior from this one.
+ This implementation returns 63, but can be overridden by a custom
+ database backend that inherits most of its behavior from this one.
"""
-
return 63
def distinct_sql(self, fields):