Skip to main content

Databases

Liberty Next → Operate → Databases shows the PostgreSQL databases the installation's pools point at, as PostgreSQL sees them at the moment of the read: the framework's liberty database, which holds the job history, the applications' databases such as nomasx1 and nomajde, and any other PostgreSQL database a pool reaches (crm, dwh…). What the figures point at comes first — autovacuum off or behind, a table never analysed, a transaction left open, connections close to the limit, a database growing fast — then the size and growth of each database, its largest tables and the jobs of the last 30 days.

The figures are only read. PostgreSQL vacuums and analyses each table itself (autovacuum), so nothing is scheduled to do it: the page shows whether it keeps up. Two buttons on each database's row act on it: Back up downloads a copy of it, Drop removes it from its server.


At a glance​

⛁DatabasesThe PostgreSQL databases of the pools as PostgreSQL sees them now, and what the figures point at.Read againOverviewThe databases, their size and growthTablesThe largest tables, vacuum and analyseJobsThe runs of the last 30 days · 1 to review3 / 3DATABASES1.4 GBIN ALL212TABLES31 / 100CONNECTIONS (SERVER)64DAYS OF HISTORYWHAT THE FIGURES SAYMAINTENANCEcrm: customer_events has 48,210 dead rows for 120,400 live — autovacuum is behind (last vacuum 2026-10-02 03:10).SIZEdwh grew by 62 % in 30 days (632 MB → 1.0 GB).DATABASESliberty: nothing to flag.DATABASESPostgreSQL vacuums and analyses each table itself (autovacuum): nothing is scheduled here to do it.DATABASEPOOLSSIZEGROWTH (UP TO 30DAYS)SIZE, LAST 90 DAYSDEAD ROWSCONNECTIONSREAD FROMMEMORYVERSIONlibertydefault64 MB+4 %1,240999.9 %16.4⤓ Back upcrmcrm, bi292 MB+3 %49,870499.6 %16.4⤓ Back up🗑 Dropdwhdwh1.0 GB+62 %3,9001898.7 %16.4⤓ Back up🗑 DropTables: the 15 largest of each database, dead rows, changed since analyse, last vacuum and analyse. Jobs: runs by state, jobs that failed.Three tabswarnings counted on eachHeadline figuresorange near the limitFindings firstorange warn · blue info · green okOne row per databasepools that share it, togetherGrowth, up to 30 daysfrom the daily snapshotRead againPostgreSQL's figures, nowBack uppg_dump file, downloadedDropname typed · never Liberty's ownliberty: no DropLiberty's own database

Which databases​

The page lists every PostgreSQL database the installation's pools point at — the pools of Liberty Next → Administer → Pools (see Pools). A database is listed once: the pools that reach it are shown together in the Pools column, and the first of them that answers reads it — and is the one Back up and Drop go through. Pools on another database engine, HTTP servers and LDAP directories are left out.

A database that cannot be read is said in the findings, with its pools and the error; the others are still read.

Every figure is PostgreSQL's at the moment of the read. Read again, at the top right, reads them anew.


The three tabs​

TabShows
Overview — the databases, their size and growthThe headline figures, the findings about the databases, and one row per database.
Tables — the largest tables, vacuum and analyseThe findings about vacuum and analyse, and the largest tables of each database.
Jobs — the runs of the last 30 daysThe findings about the jobs, the runs by state and the jobs that failed, by their names.

Each tab card counts its warnings (N to review). The page remembers the last tab opened, in the browser.

Overview​

The headline figures:

FigureIs
DatabasesThe databases read, out of those listed — orange when one could not be read.
In allThe size of all the databases read.
TablesTheir tables.
Connections (server)The connections open on the PostgreSQL server, out of its max_connections — orange from 80 %.
Days of historyThe days kept by the snapshot job over the last 90 days.

Then one row per database:

ColumnShows
Database, PoolsThe database's name and the pools that reach it.
SizeIts size now.
Growth (up to 30 days)Its size now against the first snapshot of the last 30 days — orange from +50 %. While the history is shorter than 30 days, the oldest snapshot is taken and the cell says over how many days (in 12 days). A dash without a snapshot from before today.
Size, last 90 daysA line drawn from the snapshots; no snapshot yet before the job has run twice.
Dead rowsThe rows deleted or updated that vacuum has not cleaned yet, all tables together.
ConnectionsThe connections open on this database.
Read from memoryThe share of the blocks read that were found in PostgreSQL's memory.
VersionThe PostgreSQL version of the server.
Back up, DropBack up the database and drop it. Drop is not offered on Liberty's own databases nor on PostgreSQL's (postgres, template0, template1).

Tables​

One block per database, headed with its size and its number of tables, listing its 15 largest tables (indexes included): Table (with its schema when it is not public), Size, Rows, Dead rows (orange when autovacuum is behind on it), Changed since — the rows changed since the last analyse —, Last vacuum and Last analyse, whichever of the manual or automatic one is the latest.

Jobs​

The runs of the Nomaflow jobs over the last 30 days: one figure per state (succeeded, failed, missed…), then the jobs that failed, by their names, the most failures first, with their failed runs out of their runs. The detail of each run is in Operations → Job Runs — see Run history.


Back up a database​

Back up, on a database's row, downloads a dump of the database made by pg_dump in its custom format — the format pg_restore reads —, in a file named <database>-<date>-<time>.dump. The dump is taken through the pool that read the database, with that pool's account: the account must be allowed to read every table of it. While the dump runs, the button reads backing up… and the other rows' Back up wait for it.

pg_dump must be installed beside the server, of the PostgreSQL server's major version or newer. Where it is missing, a banner says so and gives the way:

InstallationBackup
DockerThe image does not carry pg_dump: ./liberty backup saves every database of the stack — see Backup and restore.
Python installInstall the PostgreSQL client tools (postgresql16 or newer) on the server, then click Back up again.

The file is restored with pg_restore on the PostgreSQL server, into an empty database — for example one made with New database….


Drop a database​

Drop removes a database from its PostgreSQL server: every table and row of it is gone, for good. Back up first if it may be needed.

Drop the database dwh?Every table and row of dwh is gone, for good: back it up first if it may be needed.The sessions on it are ended; its accounts are kept. The pool dwh stays in theconfiguration. Type its name to drop it.dwhDropCancelWhat is lost, what staystables gone · accounts and pools keptThe name, typedanything else: Drop refusedDropsessions ended, then dropped

The dialog asks for the database's name; anything else is refused. Then:

  1. Liberty closes its own connections to the database — the pools that reach it — so that none keeps it open.
  2. The database is dropped from the server's maintenance database (postgres, else template1); the other sessions on it are ended first.
  3. A banner says that the database is dropped and names the pool or pools that still point at it. They stay in the configuration: remove them in Liberty Next → Administer → Pools.

The accounts of the database are kept, since another database may use them. A database already gone from the server is said, not an error. The pool's account must own the database or be a PostgreSQL superuser.

What is never dropped​

DatabaseWhy
Liberty's own databasesThe database of the default pool, and those of the pools that hold the accounts, the job history, the notifications and the change packages. Drop is not offered on their row, and the server refuses them — including a database that such a pool shares with other pools.
PostgreSQL's own databasespostgres, template0 and template1: Drop is not offered on their row, and the server refuses them.

What the figures say​

Each finding has a level — orange to review, blue for information, green when a database or the jobs have nothing to flag — and an area; the warnings come first.

AreaFindingWhen
Databasescould not be readNo pool of the database answers; the error is given.
Maintenanceautovacuum is offThe server's autovacuum setting is off: dead rows are never cleaned and the statistics go stale.
Maintenanceautovacuum is behindA table has at least 10,000 dead rows, and more than 20 % of its live rows.
Maintenancehas never been analysed (information)A table of at least 10,000 rows has never been analysed: its query plans are guessed.
Maintenancetransactions since the last freezeThe database's oldest unfrozen transaction is a billion transactions old — half way to the limit where PostgreSQL stops to protect itself.
Activitya transaction has been open for N minutesA transaction has been open for an hour or more: vacuum cannot clean what it may still see.
Activityqueries running for more than 5 minutes (information)A query has been running for more than 5 minutes.
Activityconnections of the N their server allowsThe server's connections reach 80 % of max_connections. Said once per server, naming the databases it holds (liberty, nomajde: 85 connections of the 100 their server allows.).
Activitysession(s) of other accounts that the pool's account cannot see (information)PostgreSQL hides from the pool's account what the sessions of other accounts are doing: an open transaction or a long query in them is not checked. Granting pg_read_all_stats to that account lets the page see them.
Activity% of the reads come from memory (information)Less than 95 % of the reads are served from memory, over at least 100,000 block reads: the server may lack memory for its data.
Sizegrew by N % in N days (information)A database grew by 50 % or more over 30 days — or over the days of history kept, when there are fewer —, from the snapshots.
Jobsfailed N time(s)A job, named by its name, failed at least once in the last 30 days.
Jobsscheduled run(s) did not happenScheduled runs were missed in the last 30 days — see Missed schedules.

The snapshot job​

The growth comes from the job Databases snapshot (liberty-databases-snapshot, category Monitoring). The framework adds it to every installation: the Jobs page (Liberty Next → Operate → Jobs) lists it under Framework, and no application ships it. Once a day it keeps, for each database, its size, tables, rows, dead rows and connections — one line per database and day, next to the job history. Run again the same day, it replaces the day's line. It reads only, and keeps 400 days.

Shipped scheduleEvery night, at 02:40 (the server's time zone), active.
StepOne Python step, snapshot, stopped after 10 minutes.
Kept400 days; older lines are removed by the job itself.

Its schedule is changed, paused or resumed like any other — see Schedules. The job can be paused, not removed. Without it, the page still reads every database; only Growth (up to 30 days), Size, last 90 days and Days of history stay empty.


What the page does not do​

  • It runs no maintenance: no vacuum, no analyse, no setting changed, no session ended. What a finding calls for is done on the PostgreSQL server; PostgreSQL's autovacuum vacuums and analyses each table as it changes, and the page shows whether it keeps up.
  • It does not restore a backup: pg_restore does, on the PostgreSQL server.
  • It does not create a database: that is New database… in Liberty Next → Administer → Pools.
  • It does not read the JD Edwards database: that is Database audit in Nomajde.
  • It does not show the connection pools of the server process: that is the Database pools panel of the Monitoring page.

Access​

The page belongs to the Liberty Next workspace: superusers only. The server checks it on each call — reading the databases, backing one up, dropping one.


Tips & best practices​

  • Look at the warnings first. A table where autovacuum is behind, or a transaction left open for hours, slows every screen that reads it long before the disk fills up.
  • A transaction left open is often a session left idle in a transaction by a tool or a script: end it on the PostgreSQL server, then check that the dead rows go down at the next vacuum.
  • See every session. PostgreSQL shows another account's transaction start only to that account, a superuser or a member of pg_read_all_stats: the page says how many sessions it cannot see, and granting pg_read_all_stats to the pools' account lets it check every open transaction.
  • Keep the snapshot job active: the growth over 30 days needs 30 days of snapshots; until then it is measured over the days kept.
  • Back up before a drop, and keep the file away from the server: once dropped, a database comes back only from a backup.
  • Remove the pools of a dropped database in Administer → Pools: a screen, a job or a connector that still names them fails on a database that no longer exists.