Skip to content

The Unified and Autonomous Development Platform

Disable PostgreSQL support

Robin Shen6e6bcd0a6849
diff --git a/product/system/conf/hibernate.properties b/product/system/conf/hibernate.properties
index 67593b5cc3..42cf12d036 100644
--- a/product/system/conf/hibernate.properties
+++ b/product/system/conf/hibernate.properties
@@ -29,12 +29,12 @@ hibernate.connection.password=
#----------------------------------------------------------------------------------
-# To use PostgreSQL database, please follow these steps:
-# 1. Uncomment PostgreSQL settings below and comment out settings for other databases.
-# 2. Create an empty OneDev database at PostgreSQL side.
-# 3. Change the property "hibernate.connection.url", "hibernate.connection.username",
-# and "hibernate.connection.password" so that OneDev can connect and write to
-# the database created in step 3.
+# PostgreSQL is currently NOT supported as:
+# 1. Blobs are stored in a separate table and will not be removed automatically even
+# if the associating row is removed
+# 2. It can not load blobs in auto-commit mode, meaning that we can not lazy load
+# entities with blob fields out side of a transaction even if Hibernate session
+# is available
#----------------------------------------------------------------------------------
#hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect