Re: Display Pg buffer cache (WIP) - Mailing list pgsql-patches

From Neil Conway
Subject Re: Display Pg buffer cache (WIP)
Date
Msg-id 422D4582.3000208@samurai.com
Whole thread Raw
In response to Re: Display Pg buffer cache (WIP)  (Mark Kirkwood <markir@coretech.co.nz>)
Responses Re: Display Pg buffer cache (WIP)
Re: Display Pg buffer cache (WIP)
List pgsql-patches
Mark Kirkwood wrote:
> +         tupledesc = CreateTemplateTupleDesc(NUM_BUFFERCACHE_PAGES_ELEM, false);
> +         TupleDescInitEntry(tupledesc, (AttrNumber) 1, "bufferid",
> +                                     INT4OID, -1, 0);
> +         TupleDescInitEntry(tupledesc, (AttrNumber) 2, "relfilenode",
> +                                     OIDOID, -1, 0);
> +         TupleDescInitEntry(tupledesc, (AttrNumber) 3, "reltablespace",
> +                                     OIDOID, -1, 0);
> +         TupleDescInitEntry(tupledesc, (AttrNumber) 4, "reldatabase",
> +                                     OIDOID, -1, 0);
> +         TupleDescInitEntry(tupledesc, (AttrNumber) 5, "relblockbumber",
> +                                     NUMERICOID, -1, 0);

I think this should be an int4, not numeric.

Otherwise, looks good to me. Barring any objections, I'll apply this
with a few stylistic tweaks and the numeric -> int4 change tomorrow.

-Neil

pgsql-patches by date:

Previous
From: Mark Kirkwood
Date:
Subject: Re: Display Pg buffer cache (WIP)
Next
From: Tom Lane
Date:
Subject: Re: Display Pg buffer cache (WIP)