yuqi1129 commented on code in PR #4885:
URL: https://github.com/apache/gravitino/pull/4885#discussion_r1749629070


##########
docs/how-to-use-relational-backend-storage.md:
##########
@@ -87,6 +91,81 @@ Finally, you can run the script in the distribution package 
directory to start t
 ./${GRAVITINO_HOME}/bin/gravitino.sh start
 ```
 
-## How to use H2
+## How to use PostgreSQL
+
+### Prerequisites
+
+- PostgreSQL 12 ~ 16. For other versions, the community has not tested fully 
and may not be compatible.
+- Gravitino distribution package with version `0.6.0` or above.
+- PostgreSQL connector Jar (Should be compatible with the version of 
PostgreSQL instance).
+
+### Step 1: Get the initialization script
+
+You need to `download` and `unzip` the distribution package firstly, please see
+[How to install Gravitino](how-to-install.md).
+
+Then you can get the initialization script in the directory:
+
+```text
+${GRAVITINO_HOME}/scripts/postgresql/
+```
+
+The script name is like `schema-{version}-postgresql.sql`, and the `version` 
depends on your Gravitino version.
+For example, if your Gravitino version is the latest release version, then you 
can choose the **latest version** script.
+If you used a legacy script, you can use `upgrade-{old version}-to-{new 
version}-postgresql.sql` to upgrade the schema.
+
+### Step 2: Initialize the database
+
+Please create a database and scheam in PostgreSQL in advance, and execute the 
initialization script obtained above in the database.
+
+```

Review Comment:
   Ok, it's better to do so.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to