summaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/commands.c b/commands.c
index 600bfe3..ea2f89d 100644
--- a/commands.c
+++ b/commands.c
@@ -74,8 +74,6 @@ char header_index_stats[43] = " I_SCANS I_READS I_FETCHES INDEXRELNAME";
char header_io_stats[64] =
" PID RCHAR WCHAR SYSCR SYSCW READS WRITES CWRITES COMMAND";
char header_statements[46] = " CALLS CALLS% TOTAL_TIME AVG_TIME QUERY";
-char header_table_stats[78] =
- "SEQ_SCANS SEQ_READS I_SCANS I_FETCHES INSERTS UPDATES DELETES RELNAME";
/* These macros get used to reset and log the errors */
#define ERR_RESET errcnt = 0
@@ -122,7 +120,6 @@ struct cmd cmd_map[] = {
#ifdef ENABLE_KILL
{'r', cmd_renice},
#endif /* ENABLE_KILL */
- {'R', cmd_tables},
{'s', cmd_delay},
{'S', cmd_statements},
{'t', cmd_toggle},
@@ -470,27 +467,6 @@ cmd_order(struct pg_top_context *pgtctx)
clear_message();
}
break;
- case MODE_TABLE_STATS:
- new_message(MT_standout, "Order to sort: ");
- if (readline(tempbuf, sizeof(tempbuf), No) > 0)
- {
- if ((i = string_index(tempbuf, table_ordernames)) == -1)
- {
- new_message(MT_standout, " %s: unrecognized sorting order",
- tempbuf);
- no_command = Yes;
- }
- else
- {
- pgtctx->table_order_index = i;
- }
- putchar('\r');
- }
- else
- {
- clear_message();
- }
- break;
case MODE_IO_STATS:
new_message(MT_standout, "Order to sort: ");
if (readline(tempbuf, sizeof(tempbuf), No) > 0)
@@ -697,23 +673,6 @@ cmd_statements(struct pg_top_context *pgtctx)
}
int
-cmd_tables(struct pg_top_context *pgtctx)
-{
- if (pgtctx->mode == MODE_TABLE_STATS)
- {
- pgtctx->mode = MODE_PROCESSES;
- pgtctx->header_text = pgtctx->header_processes;
- }
- else
- {
- pgtctx->mode = MODE_TABLE_STATS;
- pgtctx->header_text = header_table_stats;
- }
- reset_display(pgtctx);
- return No;
-}
-
-int
cmd_toggle(struct pg_top_context *pgtctx)
{
if (mode_stats == STATS_DIFF)