fix: #9668, add raw info to psql database page

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 6650c0bbf7
commit 6c47a060c1

@ -370,7 +370,10 @@ postgresModule.info = async function (db) {
current_setting('server_version') "version", current_setting('server_version') "version",
EXTRACT(EPOCH FROM NOW() - pg_postmaster_start_time()) * 1000 "uptime" EXTRACT(EPOCH FROM NOW() - pg_postmaster_start_time()) * 1000 "uptime"
`); `);
return res.rows[0]; return {
...res.rows[0],
raw: JSON.stringify(res.rows[0], null, 4),
};
}; };
postgresModule.close = async function () { postgresModule.close = async function () {

Loading…
Cancel
Save