Creating the Artifactory PostgreSQL Database
Supported PostgreSQL Versions
Artifactory supports PostgreSQL versions between 9.5 and 11.
The commands below create artifactory user and database with appropriate permissions.
Use the commands below to create an Artifactory user and database with appropriate permissions. Modify the relevant values to match your specific environment:
Once you have verified that the script is correct, you need to run it to create the database and proceed with configuring the database.
We recommend providing Artifactory with full privileges on the database.
Configuring Artifactory to use PostgreSQL
Download the JDBC driver corresponding to your PostgreSQL version from the PostgreSQL JDBC Driver Download site and copy the downloaded
Make sure your driver has read permissions for all users.
Adjust the database connection details in the
Storing BLOBs inside PostgreSQL is not recommended
The above recommended configuration keeps all artifact information in PostgreSQL while storing the artifact binary data on the file system (under
While it is possible, to store BLOBs inside PostgreSQL we do not recommended it. This is important because the PostgreSQL driver doesn't support streaming BLOBs with unknown length to the database. Therefore, Artifactory will temporarily save deployed files to the filesystem and only then save the BLOB to the database.
Enabling TLS Encryption
To enable Transport Layer Security (TLS) encryption for PostgreSQL, set the
sslmode property to
verify-full in the
JDBC connector URL.
For example, in the