Skip to content

Commit

Permalink
fix: #9668, add raw info to psql database page
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Jul 21, 2021
1 parent 6650c0b commit 6c47a06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/database/postgres.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,10 @@ postgresModule.info = async function (db) {
current_setting('server_version') "version",
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 () {
Expand Down

0 comments on commit 6c47a06

Please sign in to comment.