Re: [PATCH] Support for pg_stat_archiver view

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: Gabriele Bartolini <gabriele(dot)bartolini(at)2ndquadrant(dot)it>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] Support for pg_stat_archiver view
Date: 2014-01-08 17:56:00
Message-ID: CABUevEyPDEAF0z5t+XfGqCTHKqMRvWpY-9E8ThqKwWo-bMFnrA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Jan 8, 2014 at 6:42 PM, Simon Riggs <simon(at)2ndquadrant(dot)com> wrote:

> On 4 January 2014 13:01, Gabriele Bartolini
> <gabriele(dot)bartolini(at)2ndquadrant(dot)it> wrote:
>
> >> I'd suggest making the view on top of an SRF like pg_stat_replication
> >> and pg_stat_activity (for example), instead of a whole lot of separate
> >> function calls like the older stats views.
> >
> > Ok, good idea.
>
> Not sure I see why it needs to be an SRF. It only returns one row.
>

Good point, it could/should be a general function returning a composite
type.

--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2014-01-08 17:57:52 Re: BDR-project
Previous Message Simon Riggs 2014-01-08 17:42:26 Re: [PATCH] Support for pg_stat_archiver view