diff -cr pgmemcache_1.2beta1/pgmemcache.c pgmemcache_1.2beta1-memcached1.2.2/pgmemcache.c *** pgmemcache_1.2beta1/pgmemcache.c 2007-03-03 02:47:00.000000000 -0500 --- pgmemcache_1.2beta1-memcached1.2.2/pgmemcache.c 2007-06-03 16:50:40.000000000 -0400 *************** *** 798,803 **** --- 798,804 ---- appendStringInfo(&buf, "uptime: %lu\n", (unsigned long) stats->uptime); appendStringInfo(&buf, "time: %lu\n", (unsigned long) stats->time); appendStringInfo(&buf, "version: %s\n", stats->version); + appendStringInfo(&buf, "pointer_size: %u\n", stats->pointer_size); appendStringInfo(&buf, "rusage_user: %lu.%ld\n", (unsigned long) stats->rusage_user.tv_sec, (long) stats->rusage_user.tv_usec); *************** *** 814,822 **** --- 815,825 ---- appendStringInfo(&buf, "cmd_set: %" PRIu64 "\n", stats->cmd_set); appendStringInfo(&buf, "get_hits: %" PRIu64 "\n", stats->get_hits); appendStringInfo(&buf, "get_misses: %" PRIu64 "\n", stats->get_misses); + appendStringInfo(&buf, "evictions: %" PRIu64 "\n", stats->evictions); appendStringInfo(&buf, "bytes_read: %" PRIu64 "\n", stats->bytes_read); appendStringInfo(&buf, "bytes_written: %" PRIu64 "\n", stats->bytes_written); appendStringInfo(&buf, "limit_maxbytes: %" PRIu64 "\n", stats->limit_maxbytes); + appendStringInfo(&buf, "threads: %u\n", stats->threads); PG_RETURN_DATUM(DirectFunctionCall1(textin, CStringGetDatum(buf.data))); } *************** *** 853,858 **** --- 856,863 ---- appendStringInfo(&buf, "%lu", (unsigned long) stats->time); else if (pg_strncasecmp("version", stat_str, stat_len) == 0) appendStringInfo(&buf, "%s", stats->version); + else if (pg_strncasecmp("pointer_size", stat_str, stat_len) == 0) + appendStringInfo(&buf, "%u", stats->pointer_size); else if (pg_strncasecmp("rusage_user", stat_str, stat_len) == 0) appendStringInfo(&buf, "%lu.%ld", (unsigned long) stats->rusage_user.tv_sec, *************** *** 881,892 **** --- 886,901 ---- appendStringInfo(&buf, "%" PRIu64, stats->get_hits); else if (pg_strncasecmp("get_misses", stat_str, stat_len) == 0) appendStringInfo(&buf, "%" PRIu64, stats->get_misses); + else if (pg_strncasecmp("evicions", stat_str, stat_len) == 0) + appendStringInfo(&buf, "%" PRIu64, stats->evictions); else if (pg_strncasecmp("bytes_read", stat_str, stat_len) == 0) appendStringInfo(&buf, "%" PRIu64, stats->bytes_read); else if (pg_strncasecmp("bytes_written", stat_str, stat_len) == 0) appendStringInfo(&buf, "%" PRIu64, stats->bytes_written); else if (pg_strncasecmp("limit_maxbytes", stat_str, stat_len) == 0) appendStringInfo(&buf, "%" PRIu64, stats->limit_maxbytes); + else if (pg_strncasecmp("threads", stat_str, stat_len) == 0) + appendStringInfo(&buf, "%u", stats->threads); else elog(ERROR, "unknown memcache statistic \"%s\"", stat_str);