| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Neil Conway <neilc(at)samurai(dot)com> |
| Cc: | Mark Kirkwood <markir(at)coretech(dot)co(dot)nz>, pgsql-patches(at)postgresql(dot)org |
| Subject: | Re: Display Pg buffer cache (WIP) |
| Date: | 2005-03-08 06:54:56 |
| Message-ID: | 3512.1110264896@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-patches |
Neil Conway <neilc(at)samurai(dot)com> writes:
> Mark Kirkwood wrote:
>> + TupleDescInitEntry(tupledesc, (AttrNumber) 5, "relblockbumber",
>> + NUMERICOID, -1, 0);
> I think this should be an int4, not numeric.
needs spell check too ;-)
More generally, BlockNumber is unsigned and so int4 is not at all an
accurate conversion. Perhaps OID would be a good choice even though
it's horribly wrong on one level.
> Otherwise, looks good to me. Barring any objections, I'll apply this
> with a few stylistic tweaks and the numeric -> int4 change tomorrow.
I would rather see this as a contrib module. There has been *zero*
consensus that we need this in core, nor any discussion about whether
it might be a security hole.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paesold | 2005-03-08 07:05:27 | Re: Continue transactions after errors in psql |
| Previous Message | Neil Conway | 2005-03-08 06:26:10 | Re: Display Pg buffer cache (WIP) |