Is direct access to PostgreSQL provided?
You can query your database, perform audits, connect external reporting tools, or carry out advanced technical operations with your own tools, without going through us. Maintain full control and complete operational freedom over your Odoo environment!
Everything is on the instance's "PostgreSQL config" page, in three tabs: "Settings" (PostgreSQL's configuration), "SQL query" (read your data without opening anything) and "Remote access" (open a port for your own tools).
How you open it
- Log in to Hodiploy from your Client Area
- On the instance's row, open the "Actions" menu, then "PostgreSQL config", and pick the "Remote access" tab
- Enter the allowed IP addresses that may reach the port, one per line (for example
192.0.2.10or203.0.113.0/24) - Click "Open the access"
The tab then hands you the host, the port, the user, the password and the connection URL, to paste as-is into pgAdmin, DBeaver, Metabase, a spreadsheet or any PostgreSQL client. While an access is open, a small green database icon shows under the instance's name in the list: clicking it takes you straight to this tab.
What happens on the server
The port is only reachable FROM the addresses you listed. A firewall rule is placed on your server when you open the access; the rest of the internet gets a refusal, including our own machines. You decide who gets in.
One access per instance, with a fixed user: hodiploy. The port is allocated automatically in the 5433–5533 range, so you can have several instances open on the same server without collisions.
The password is randomly generated, 32 characters. It's encrypted at rest and shown in clear only in your screen, so you can copy it into your tool.
Close without losing
The "Close" button shuts the port and removes the firewall rule. The port and password are kept: if you reopen the access later, exactly the same ones come back, and your pgAdmin favourites keep working.
On a production instance, only the account's administrators can open or change the remote access and change the settings. On a locked instance ("Actions" menu, "Lock"), the settings become read-only and the database cannot be restarted, by anyone: that is what the lock is for on a sensitive instance.
Two things to know
The hodiploy user is a database owner, which is what makes audits, extracts and maintenance operations possible. That's also what makes you responsible for what you do with it: a clumsy query can damage production data. Take a backup before a risky operation.
This is not an end-to-end encrypted tunnel. It's PostgreSQL over TCP, as-is. For internal reporting from a known workstation, the allowed-address list is the right safeguard. To look at your data from a roaming machine without a fixed IP, the "SQL query" tab (below) is often enough; for anything else, use a terminal inside the Odoo container and run psql locally on the machine.
Query your data without opening a port
The "SQL query" tab runs one read-only query (SELECT, WITH, EXPLAIN) on an Odoo database of the instance and shows the result as a table, without opening any port.
- The query runs as a dedicated role that reads every table and can write nothing: it cannot change data, interrupt a session or read a file on the server.
- It is limited to 20 seconds and the result to the first rows; very long values are shortened.
- Every query is recorded in the instance's log (who, on which database, the start of the query).
It's the right tool to check a counter, find a stuck record or understand an inconsistent state, with no risk to production.
Tune PostgreSQL
The "Settings" tab shows PostgreSQL's current configuration, read live from the database, one setting per line as in a postgresql.conf. Change a value, add a line, then save. For example, so that transactions left open by a dropped connection end on their own after 30 seconds:
idle_in_transaction_session_timeout = 30s- Only the lines you changed are written, and the instance's PostgreSQL checks every name and value before applying them: if a line is refused, nothing is changed and the reason shows under the field.
- Most settings take effect immediately. Some are only read at start-up (
shared_buffers,max_connections…): the page tells you and offers to restart the database. Odoo restarts with it and the instance is unavailable for a few seconds; nothing restarts until you click. - Removing a line you added restores the original value.
- A few settings are managed by Hodi (listening address, port, or
max_locks_per_transaction, which the nightly backup needs): they are not offered, and the page warns you if you type one. - Every change, with the lines changed, is recorded in the instance's log.
A question?
If you're unsure which addresses to allow or which setting to pick, or your PostgreSQL client won't connect, contact us and our team will look at it with you.
Updated on: 14/11/2026
Thank you!