return true;
}
- pktbuf_write_RowDescription(buf, "ssissiisii",
+ pktbuf_write_RowDescription(buf, "ssissiisiiii",
"name", "host", "port",
"database", "force_user", "pool_size", "reserve_pool",
- "pool_mode", "max_connections", "current_connections");
+ "pool_mode", "max_connections", "current_connections", "paused", "disabled");
statlist_for_each(item, &database_list) {
db = container_of(item, PgDatabase, head);
cv.value_p = &db->pool_mode;
if (db->pool_mode != POOL_INHERIT)
pool_mode_str = cf_get_lookup(&cv);
- pktbuf_write_DataRow(buf, "ssissiisii",
+ pktbuf_write_DataRow(buf, "ssissiisiiii",
db->name, db->host, db->port,
db->dbname, f_user,
db->pool_size,
db->res_pool_size,
pool_mode_str,
database_max_connections(db),
- db->connection_count);
+ db->connection_count,
+ db->db_paused,
+ db->db_disabled);
}
admin_flush(admin, buf, "SHOW");
return true;