mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Cleanup the dashboard tables a little for readability
This commit is contained in:
parent
faf517e12b
commit
d0a9b25c57
@ -395,7 +395,7 @@ function(r, $, pgAdmin, _, Backbone) {
|
||||
|
||||
var server_activity_columns = [{
|
||||
name: "pid",
|
||||
label: "{{ _('Process ID') }}",
|
||||
label: "{{ _('PID') }}",
|
||||
editable: false,
|
||||
cell: "string"
|
||||
}, {
|
||||
@ -410,12 +410,12 @@ function(r, $, pgAdmin, _, Backbone) {
|
||||
cell: "string"
|
||||
}, {
|
||||
name: "application_name",
|
||||
label: "{{ _('Application name') }}",
|
||||
label: "{{ _('Application') }}",
|
||||
editable: false,
|
||||
cell: "string"
|
||||
}, {
|
||||
name: "client_addr",
|
||||
label: "{{ _('Client address') }}",
|
||||
label: "{{ _('Client') }}",
|
||||
editable: false,
|
||||
cell: "string"
|
||||
}, {
|
||||
@ -441,13 +441,13 @@ function(r, $, pgAdmin, _, Backbone) {
|
||||
} else {
|
||||
server_activity_columns = server_activity_columns.concat(
|
||||
[{
|
||||
name: "wait_event_type",
|
||||
label: "{{ _('Wait Event Type') }}",
|
||||
name: "wait_event",
|
||||
label: "{{ _('Wait Event') }}",
|
||||
editable: false,
|
||||
cell: "string"
|
||||
},{
|
||||
name: "wait_event",
|
||||
label: "{{ _('Wait Event') }}",
|
||||
name: "blocking_pids",
|
||||
label: "{{ _('Blocking PIDs') }}",
|
||||
editable: false,
|
||||
cell: "string"
|
||||
}]);
|
||||
@ -455,7 +455,7 @@ function(r, $, pgAdmin, _, Backbone) {
|
||||
|
||||
var server_locks_columns = [{
|
||||
name: "pid",
|
||||
label: "{{ _('Process ID') }}",
|
||||
label: "{{ _('PID') }}",
|
||||
editable: false,
|
||||
cell: "string"
|
||||
}, {
|
||||
@ -485,7 +485,7 @@ function(r, $, pgAdmin, _, Backbone) {
|
||||
cell: "string"
|
||||
}, {
|
||||
name: "virtualxid",
|
||||
label: "{{ _('Virtual XID (target)') }}",
|
||||
label: "{{ _('vXID (target)') }}",
|
||||
editable: false,
|
||||
cell: "string"
|
||||
}, {
|
||||
@ -505,7 +505,7 @@ function(r, $, pgAdmin, _, Backbone) {
|
||||
cell: "string"
|
||||
},{
|
||||
name: "virtualtransaction",
|
||||
label: "{{ _('Virtual XID (owner)') }}",
|
||||
label: "{{ _('vXID (owner)') }}",
|
||||
editable: false,
|
||||
cell: "string"
|
||||
},{
|
||||
@ -518,11 +518,6 @@ function(r, $, pgAdmin, _, Backbone) {
|
||||
label: "{{ _('Granted?') }}",
|
||||
editable: false,
|
||||
cell: "string"
|
||||
},{
|
||||
name: "fastpath",
|
||||
label: "{{ _('Fast path?') }}",
|
||||
editable: false,
|
||||
cell: "string"
|
||||
}];
|
||||
|
||||
var server_prepared_columns = [{
|
||||
@ -677,7 +672,7 @@ function(r, $, pgAdmin, _, Backbone) {
|
||||
|
||||
var database_activity_columns = [{
|
||||
name: "pid",
|
||||
label: "{{ _('Process ID') }}",
|
||||
label: "{{ _('PID') }}",
|
||||
editable: false,
|
||||
cell: "string"
|
||||
}, {
|
||||
@ -687,12 +682,12 @@ function(r, $, pgAdmin, _, Backbone) {
|
||||
cell: "string"
|
||||
}, {
|
||||
name: "application_name",
|
||||
label: "{{ _('Application name') }}",
|
||||
label: "{{ _('Application') }}",
|
||||
editable: false,
|
||||
cell: "string"
|
||||
}, {
|
||||
name: "client_addr",
|
||||
label: "{{ _('Client address') }}",
|
||||
label: "{{ _('Client') }}",
|
||||
editable: false,
|
||||
cell: "string"
|
||||
}, {
|
||||
@ -718,13 +713,13 @@ function(r, $, pgAdmin, _, Backbone) {
|
||||
} else {
|
||||
database_activity_columns = database_activity_columns.concat(
|
||||
[{
|
||||
name: "wait_event_type",
|
||||
label: "{{ _('Wait Event Type') }}",
|
||||
name: "wait_event",
|
||||
label: "{{ _('Wait Event') }}",
|
||||
editable: false,
|
||||
cell: "string"
|
||||
},{
|
||||
name: "wait_event",
|
||||
label: "{{ _('Wait Event') }}",
|
||||
name: "blocking_pids",
|
||||
label: "{{ _('Blocking PIDs') }}",
|
||||
editable: false,
|
||||
cell: "string"
|
||||
}]);
|
||||
@ -732,7 +727,7 @@ function(r, $, pgAdmin, _, Backbone) {
|
||||
|
||||
var database_locks_columns = [{
|
||||
name: "pid",
|
||||
label: "{{ _('Process ID') }}",
|
||||
label: "{{ _('PID') }}",
|
||||
editable: false,
|
||||
cell: "string"
|
||||
}, {
|
||||
@ -757,7 +752,7 @@ function(r, $, pgAdmin, _, Backbone) {
|
||||
cell: "string"
|
||||
}, {
|
||||
name: "virtualxid",
|
||||
label: "{{ _('Virtual XID (target)') }}",
|
||||
label: "{{ _('vXID (target)') }}",
|
||||
editable: false,
|
||||
cell: "string"
|
||||
}, {
|
||||
@ -777,7 +772,7 @@ function(r, $, pgAdmin, _, Backbone) {
|
||||
cell: "string"
|
||||
},{
|
||||
name: "virtualtransaction",
|
||||
label: "{{ _('Virtual XID (owner)') }}",
|
||||
label: "{{ _('vXID (owner)') }}",
|
||||
editable: false,
|
||||
cell: "string"
|
||||
},{
|
||||
@ -790,11 +785,6 @@ function(r, $, pgAdmin, _, Backbone) {
|
||||
label: "{{ _('Granted?') }}",
|
||||
editable: false,
|
||||
cell: "string"
|
||||
},{
|
||||
name: "fastpath",
|
||||
label: "{{ _('Fast path?') }}",
|
||||
editable: false,
|
||||
cell: "string"
|
||||
}];
|
||||
|
||||
var database_prepared_columns = [{
|
||||
|
@ -4,7 +4,7 @@ SELECT
|
||||
usename,
|
||||
application_name,
|
||||
client_addr,
|
||||
backend_start,
|
||||
to_char(backend_start, 'YYYY-MM-DD HH24:MM:SS TZ') AS backend_start,
|
||||
state,
|
||||
CASE WHEN waiting THEN '{{ _('yes') }}' ELSE '{{ _('no') }}' END AS waiting
|
||||
FROM
|
||||
|
@ -3,7 +3,7 @@ SELECT
|
||||
database,
|
||||
owner,
|
||||
transaction,
|
||||
prepared
|
||||
to_char(prepared, 'YYYY-MM-DD HH24:MM:SS TZ') AS prepared
|
||||
FROM
|
||||
pg_prepared_xacts
|
||||
{% if did %}WHERE
|
||||
|
@ -4,10 +4,10 @@ SELECT
|
||||
usename,
|
||||
application_name,
|
||||
client_addr,
|
||||
backend_start,
|
||||
to_char(backend_start, 'YYYY-MM-DD HH24:MM:SS TZ') AS backend_start,
|
||||
state,
|
||||
wait_event_type,
|
||||
wait_event
|
||||
wait_event_type || ': ' || wait_event AS wait_event,
|
||||
pg_blocking_pids(pid) AS blocking_pids
|
||||
FROM
|
||||
pg_stat_activity
|
||||
{% if did %}WHERE
|
||||
|
@ -3,7 +3,7 @@ SELECT
|
||||
database,
|
||||
owner,
|
||||
transaction,
|
||||
prepared
|
||||
to_char(prepared, 'YYYY-MM-DD HH24:MM:SS TZ') AS prepared
|
||||
FROM
|
||||
pg_prepared_xacts
|
||||
{% if did %}WHERE
|
||||
|
Loading…
Reference in New Issue
Block a user