Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Jul 13, 2026 6:53:42 AM
Mar 16, 2021 10:33:39 AM
This article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.
The Qlik Sense Repository Database (QSR) can be moved to a dedicated, standalone PostgreSQL instance not hosted on the same machine as other Qlik Sense Services. It is also possible to move an already existing QSR from a local Sense install to a dedicated PostgreSQL database.
Content:
Instructions for this might vary slightly. Please refer to the Qlik Online Help for details. We recommend watching this video.
Qlik Sense Enterprise server has a set of five databases. For more details, visit Installing and configuring PostgreSQL on help.qlik.com.
1. The Qlik Sense repository database (QSR):
The QSR is the primary database in your Qlik Sense deployment.
2. The Qlik Sense services database (SenseServices):
The SenseServices database contains schemas for each of the Qlik Sense services and allows growth independently of the Qlik Sense Repository Database, while still sharing the same PostgreSQL instance and login role.
3. The Qlik Sense message queue database (QSMQ):
The QSMQ database provides a light-weight method of passing messages internally between services in Qlik Sense Enterprise. The NOTIFY and LISTEN functionality in PostgreSQL allows services to be notified about new messages that have been written to the messaging table.
4. The Qlik Sense logging database (QLogs): No longer supported after May 2021
The QLogs database centralizes logging by collecting log messages from all Qlik Sense nodes in your deployment and storing them in a PostgreSQL database.
5. The Qlik Sense license service database (Licenses):
The Licenses database is used to sync the assignments between the Qlik license backend and the local installation.
Follow How to change the shared path in Qlik Sense
Depending on the version, you need to back up different databases. On the current Qlik Sense central node hosting the Qlik Sense Repository Database service, follow the backup instructions to obtain a database copy of each Qlik Sense Database Present.
On the dedicated remote PostgreSQL host, perform a restore of the backed-up databases of previous point.
Execute steps in Moved Postgress database to new host, but some qliksense is still accessing the SenseServices old da...; check if different versions of the article are present for different Qlik Sense version.
Starting from April 2019, the new License Service implementation is using this database.
It will look like this:
repeat this for:
C:\Program Files\Qlik\Sense\NotifierService\install\Configure-Service.ps1
C:\Program Files\Qlik\Sense\AppDistributionService\Configure-Service.ps1
C:\Program Files\Qlik\Sense\HybridDeploymentService\Configure-Service.ps1
C:\Program Files\Qlik\Sense\MobilityRegistrarService\install\Configure-Service.ps1
C:\Program Files\Qlik\Sense\PrecedentsService\install\Configure-Service.ps1
C:\Program Files\Qlik\Sense\NLAppSearch\install\Configure-Service.ps1
there might come new services or disappear with new releases, please check in the C:\Program Files\Qlik\Sense\ folder for "Configure-Service.ps1" to find additional one in your version of Qlik Sense.
Note: If you have installed Qlik Sense in a different directory the Configure-Service.ps1 would have to be updated as in this example:
File: Configure-Service.ps1 Folders: Various (9 microservices)
Before:
11 | [string] $senseInstallPath
"$env:ProgramFiles\Qlik Sense",
After:
11
[string] $senseInstallPath = "D:\Qlik",
After successfully verifying your new setup, remove the Qlik Sense Repository service dependencies and the old Postgres database. This is done to avoid issues with future upgrades of the environment.
In a multi-node scenario, you need to repeat steps "Changing the Connection Strings to Databases" on all Rim nodes (QlikSenseUtil for Repository.exe.config and Configure-Service.ps1 for the micro services), and if required, configure "Update the Qlik Logging Service Connection String" (note that is EOL with Qlik Sense Enterprise on Windows February 2022).
Hello.
We have a database cluster of two servers hostdb1 and hostdb2. Is it possible to configure QS to use two servers simultaneously? If hostdb1 is not available, then QS switches to hostdb2.
hello,
no that is not implemented out of the box. You will have to adjust the connection string from the Repository to talk to database2.
Here are some ways to use replication
regards
Sebastian
Hello @Sebastian_Linser , @Sonja_Bauernfeind ,
Currently, we are using dedicated postgres DB running on windows servers with default port and superuser. However, due to new controls, we have to migrate the postgres DB from windows to Linux server with custom port and may be different version. This article Configure Postgres , suggests on how to migrate to dedicated postgres DB on windows server with default port and superuser, however does not include information about custom port and different version of DB on Linux servers.
Kindly help to understand on what steps and changes are required to migrate to Linux server with custom port, different DB version?
Thanks.
Hello @AkashPohare_HB
If Qlik Sense uses a PostgreSQL database on a dedicated infrastructure, then it can use supported versions of PostgreSQL. To know which versions of PostgreSQL are supported in Qlik Sense, see: System requirements for Qlik Sense Enterprise.
You can run the instance of PostgreSQL on platforms including Windows, Linux or cloud hosted services, such as Amazon RDS. However, Qlik will only offer configuration support when PostgreSQL is running on Windows. If you use Linux or Amazon RDS, it is your own responsibility to install and configure a running instance of PostgreSQL for Qlik Sense to use.
As for your port question: You choose the port you wish to use when you set up Qlik Sense. What port you set on PostgreSQL is up to you in that case.
All the best,
Sonja
Hi @Sonja_Bauernfeind ,
I am aware that you don't support postgres on Linux, however my query is around configuration.
This article demonstrates the steps to migrate the repository database to standalone postgres on windows with default port and superuser, however I am looking what are steps to follow if a custom port is used on the postgres server. Any additional steps needs to be followed or we have to change the port in the util.exe file and for microservices need to run ".\Configure-Service.ps1 pghostname customport qliksenserepository qlik" ?
Thanks.
Hello @AkashPohare_HB
The configuration on the Qlik Sense side remains the same, regardless of the platform, meaning the steps remain the same overall. As for changing the port afterwards, yes, that is correct! You already have the right way forward here.
If you need more detailed help, I suggest posting follow-up questions on the Management & Governance forum for Qlik Sense.
All the best,
Sonja