Re: [PATCH] Add features to pg_stat_statements

From: legrand legrand <legrand_legrand(at)hotmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [PATCH] Add features to pg_stat_statements
Date: 2020-09-19 07:35:42
Message-ID: 1600500942767-0.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

+1 !

An other way is to log evictions, it provides informations about time and
amount :

for (i = 0; i < nvictims; i++)
{
hash_search(pgssp_hash, &entries[i]->key, HASH_REMOVE, NULL);
}

pfree(entries);

/* trace when evicting entries, if appening too often this can slow queries
...
* increasing pg_stat_sql_plans.max value could help */
ereport(LOG,
(errmsg("pg_stat_sql_plans evicting %d entries", nvictims),
errhidecontext(true), errhidestmt(true)));

--
Sent from: https://www.postgresql-archive.org/PostgreSQL-hackers-f1928748.html

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dilip Kumar 2020-09-19 07:49:48 Re: Re: [HACKERS] Custom compression methods
Previous Message Fabien COELHO 2020-09-19 07:17:31 Re: pgbench - rework variable management