Re: Diagnostic functions - Mailing list pgsql-patches

From Heikki Linnakangas
Subject Re: Diagnostic functions
Date
Msg-id 463EF619.20703@enterprisedb.com
Whole thread Raw
In response to Re: Diagnostic functions  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Diagnostic functions
List pgsql-patches
Peter Eisentraut wrote:
> Heikki Linnakangas wrote:
>> Here's an update of Simon's Heap Page Diagnostic Functions. I now
>> consider it ready to commit.
>
> How is this better than pg_filedump?

It's handy to be able to inspect pages from within a live database. The
new functions work through shared_buffers, so you can see changes
without having to issue a checkpoint to flush them to disk. pg_filedump
takes a filename as argument, the new function takes relation name.

Having them as functions also allows you to do more advanced queries
like "... WHERE (t_infomask & 1) <> 0 " to show tuples with a null bitmap.

> "diagnostics" is an awfully general name, too.

We already played the name game on hackers. My original suggestion was
"pgforensics". "pgdiagfuncs" and "pginspect" were also suggested, among
others. I'm still open to suggestions, though. Have any?

--
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

pgsql-patches by date:

Previous
From: "Magnus Hagander"
Date:
Subject: Re: Clear up strxfrm() in UTF-8 with locale on Windows
Next
From: "Pavan Deolasee"
Date:
Subject: HOT patches