pgsql: Make worker_spi sample code more complete

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Make worker_spi sample code more complete
Date: 2013-04-10 16:35:49
Message-ID: E1UPxzx-0003rb-Uq@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Make worker_spi sample code more complete

Make use of some GUC variables, and add SIGHUP handling to reload
the config file. Patch submitted by Guillaume Lelarge.

Also, report to pg_stat_activity. Per report from Marc Cousin, add
setting of statement start time.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/e543631f3c162ab5f6020b1d0209e0353ca2229a

Modified Files
--------------
contrib/worker_spi/worker_spi.c | 153 ++++++++++++++++++++++++++++++---------
1 files changed, 120 insertions(+), 33 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2013-04-10 17:31:15 pgsql: Make contrib/pg_trgm also support regex searches with GiST index
Previous Message Andrew Dunstan 2013-04-10 13:29:19 pgsql: Fix hstore_to_json_loose example in docs.