Re: Heap page diagnostic functions

Lists: pgsql-hackers
From: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Heap page diagnostic functions
Date: 2007-04-30 15:46:29
Message-ID: 46360F55.6050103@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

I'm taking over Simon's heap page diagnostic functions to get them into
shape for committing.

I'm thinking of having a new contrib-module for them: pgforensics. All
the new functions go there, and I'm also going to move bt_page_items,
bt_page_stats, and bt_metap functions from pgstattuple to the new
module. They're all low-level functions that no application should be
calling, so there shouldn't be any compatibility issues in moving them.

That'd leave only the functions that a DBA or tools should be concerned
with in pgstattuple, and all the low-level debugging aids to the new
module. Thoughts?

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


From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Heap page diagnostic functions
Date: 2007-04-30 22:33:18
Message-ID: 200704302233.l3UMXIS15312@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


Sounds good, though I am worried that "forensics" will not be a word
easily understood by non-native English speakers.

---------------------------------------------------------------------------

Heikki Linnakangas wrote:
> I'm taking over Simon's heap page diagnostic functions to get them into
> shape for committing.
>
> I'm thinking of having a new contrib-module for them: pgforensics. All
> the new functions go there, and I'm also going to move bt_page_items,
> bt_page_stats, and bt_metap functions from pgstattuple to the new
> module. They're all low-level functions that no application should be
> calling, so there shouldn't be any compatibility issues in moving them.
>
> That'd leave only the functions that a DBA or tools should be concerned
> with in pgstattuple, and all the low-level debugging aids to the new
> module. Thoughts?
>
> --
> Heikki Linnakangas
> EnterpriseDB http://www.enterprisedb.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +


From: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Heap page diagnostic functions
Date: 2007-05-01 12:26:00
Message-ID: 463731D8.70509@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Any suggestions? pgdiagnostics?

I'm happy with forensics myself.

Bruce Momjian wrote:
> Sounds good, though I am worried that "forensics" will not be a word
> easily understood by non-native English speakers.
>
> ---------------------------------------------------------------------------
>
> Heikki Linnakangas wrote:
>> I'm taking over Simon's heap page diagnostic functions to get them into
>> shape for committing.
>>
>> I'm thinking of having a new contrib-module for them: pgforensics. All
>> the new functions go there, and I'm also going to move bt_page_items,
>> bt_page_stats, and bt_metap functions from pgstattuple to the new
>> module. They're all low-level functions that no application should be
>> calling, so there shouldn't be any compatibility issues in moving them.
>>
>> That'd leave only the functions that a DBA or tools should be concerned
>> with in pgstattuple, and all the low-level debugging aids to the new
>> module. Thoughts?
>>
>> --
>> Heikki Linnakangas
>> EnterpriseDB http://www.enterprisedb.com
>>
>> ---------------------------(end of broadcast)---------------------------
>> TIP 4: Have you searched our list archives?
>>
>> http://archives.postgresql.org
>

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


From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Heap page diagnostic functions
Date: 2007-05-01 14:56:00
Message-ID: 200705011456.l41Eu0Q10809@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Heikki Linnakangas wrote:
> Any suggestions? pgdiagnostics?

Yes, I like "diagnostics", or "internals". I just think forensics isn't
going to be understood by the average native English speaker, let alone
non-English speakers.

---------------------------------------------------------------------------

>
> I'm happy with forensics myself.
>
> Bruce Momjian wrote:
> > Sounds good, though I am worried that "forensics" will not be a word
> > easily understood by non-native English speakers.
> >
> > ---------------------------------------------------------------------------
> >
> > Heikki Linnakangas wrote:
> >> I'm taking over Simon's heap page diagnostic functions to get them into
> >> shape for committing.
> >>
> >> I'm thinking of having a new contrib-module for them: pgforensics. All
> >> the new functions go there, and I'm also going to move bt_page_items,
> >> bt_page_stats, and bt_metap functions from pgstattuple to the new
> >> module. They're all low-level functions that no application should be
> >> calling, so there shouldn't be any compatibility issues in moving them.
> >>
> >> That'd leave only the functions that a DBA or tools should be concerned
> >> with in pgstattuple, and all the low-level debugging aids to the new
> >> module. Thoughts?
> >>
> >> --
> >> Heikki Linnakangas
> >> EnterpriseDB http://www.enterprisedb.com
> >>
> >> ---------------------------(end of broadcast)---------------------------
> >> TIP 4: Have you searched our list archives?
> >>
> >> http://archives.postgresql.org
> >
>
>
> --
> Heikki Linnakangas
> EnterpriseDB http://www.enterprisedb.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
> choose an index scan if your joining column's datatypes do not
> match

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Heap page diagnostic functions
Date: 2007-05-01 15:37:42
Message-ID: 17641.1178033862@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Bruce Momjian <bruce(at)momjian(dot)us> writes:
> Heikki Linnakangas wrote:
>> Any suggestions? pgdiagnostics?

> Yes, I like "diagnostics", or "internals". I just think forensics isn't
> going to be understood by the average native English speaker, let alone
> non-English speakers.

"diagnostics" is a two-dollar word also. It might be a bit more widely
known than "forensics", but it's longer and harder to spell. Not that
I have any great suggestions to make. Maybe "pgtestfuncs"?

regards, tom lane


From: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Heap page diagnostic functions
Date: 2007-05-01 15:48:17
Message-ID: 46376141.4060001@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Tom Lane wrote:
> Bruce Momjian <bruce(at)momjian(dot)us> writes:
>> Heikki Linnakangas wrote:
>>> Any suggestions? pgdiagnostics?
>
>> Yes, I like "diagnostics", or "internals". I just think forensics isn't
>> going to be understood by the average native English speaker, let alone
>> non-English speakers.
>
> "diagnostics" is a two-dollar word also. It might be a bit more widely
> known than "forensics", but it's longer and harder to spell. Not that
> I have any great suggestions to make. Maybe "pgtestfuncs"?

I thought about pgdebugfuncs myself at first. But that's so generic and
pgtestfuncs even more so. Diagnostics is pretty good, that word is in
use in other languages as well as a medical term, so it's meaning would
be clear to a lot of people even if they've never encountered the
English word before.

Besides, the audience for these functions is quite narrow: people
working on PostgreSQL internals, so I don't think the language issue
matters that much.

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


From: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
To: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Heap page diagnostic functions
Date: 2007-05-01 17:28:07
Message-ID: 463778A7.5010209@sun.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Heikki Linnakangas wrote:
> Tom Lane wrote:
>> Bruce Momjian <bruce(at)momjian(dot)us> writes:
>>> Heikki Linnakangas wrote:
>>>> Any suggestions? pgdiagnostics?
>>
>>> Yes, I like "diagnostics", or "internals". I just think forensics isn't
>>> going to be understood by the average native English speaker, let alone
>>> non-English speakers.
>>
>> "diagnostics" is a two-dollar word also. It might be a bit more widely
>> known than "forensics", but it's longer and harder to spell. Not that
>> I have any great suggestions to make. Maybe "pgtestfuncs"?
>
> I thought about pgdebugfuncs myself at first. But that's so generic and
> pgtestfuncs even more so. Diagnostics is pretty good, that word is in
> use in other languages as well as a medical term, so it's meaning would
> be clear to a lot of people even if they've never encountered the
> English word before.
>
> Besides, the audience for these functions is quite narrow: people
> working on PostgreSQL internals, so I don't think the language issue
> matters that much.

I did not find "forensics" in translator and It mentions in Oxford
vocabulary but explanation is not clear for me. I agree with Bruce It is
not good name. What about short form of diagnostic "diag"?

Zdenek


From: "Florian G(dot) Pflug" <fgp(at)phlo(dot)org>
To: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
Cc: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Heap page diagnostic functions
Date: 2007-05-01 17:58:23
Message-ID: 46377FBF.4010900@phlo.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Zdenek Kotala wrote:
> I did not find "forensics" in translator and It mentions in Oxford
> vocabulary but explanation is not clear for me. I agree with Bruce It is
> not good name. What about short form of diagnostic "diag"?

Doesn't forensics basically mean to find the cause of something
*after* it happened, based on traces that the event left behind?
Like finding the culprit of a crime done using for example
fingerprints he left, or tracing the actions of an intruder
by analyzing logfiles or modified binaries?

In that case, it doesn't accuratly describe those functions anyway
I think, because you call them from inside the database while it's
running, not from the outside after it was stopped or crashed.

Just the 2 eurocents of a non-native speaker...
Greetings, Florian Pflug


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Florian G(dot) Pflug" <fgp(at)phlo(dot)org>
Cc: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>, Heikki Linnakangas <heikki(at)enterprisedb(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Heap page diagnostic functions
Date: 2007-05-01 18:17:25
Message-ID: 23058.1178043445@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

"Florian G. Pflug" <fgp(at)phlo(dot)org> writes:
> Doesn't forensics basically mean to find the cause of something
> *after* it happened, based on traces that the event left behind?

Hmm ... the Oxford English Dictionary defines "forensic" as "pertaining
to, connected with, or used in courts of law". There are also some
senses related to argumentation, but nothing specifically about evidence
analysis, whether after-the-fact or not. So yeah, it doesn't seem like
a good name for these functions anyhow.

regards, tom lane


From: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
To: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Heap page diagnostic functions
Date: 2007-05-01 19:59:11
Message-ID: 46379C0F.3090201@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Zdenek Kotala wrote:
> Heikki Linnakangas wrote:
>> Tom Lane wrote:
>>> Bruce Momjian <bruce(at)momjian(dot)us> writes:
>>>> Heikki Linnakangas wrote:
>>>>> Any suggestions? pgdiagnostics?
>>>
>>>> Yes, I like "diagnostics", or "internals". I just think forensics
>>>> isn't
>>>> going to be understood by the average native English speaker, let alone
>>>> non-English speakers.
>>>
>>> "diagnostics" is a two-dollar word also. It might be a bit more widely
>>> known than "forensics", but it's longer and harder to spell. Not that
>>> I have any great suggestions to make. Maybe "pgtestfuncs"?
>>
>> I thought about pgdebugfuncs myself at first. But that's so generic
>> and pgtestfuncs even more so. Diagnostics is pretty good, that word is
>> in use in other languages as well as a medical term, so it's meaning
>> would be clear to a lot of people even if they've never encountered
>> the English word before.
>>
>> Besides, the audience for these functions is quite narrow: people
>> working on PostgreSQL internals, so I don't think the language issue
>> matters that much.
>
> I did not find "forensics" in translator and It mentions in Oxford
> vocabulary but explanation is not clear for me. I agree with Bruce It is
> not good name. What about short form of diagnostic "diag"?

Webster lists "scientific analysis of physical evidence (as from a crime
scene)" as one meaning: http://www.webster.com/dictionary/forensics.

I'm going to go with pgdiagnostics. We could short it to just "pgdiag",
but that feels too short :). We could make it "pgdiagfuncs", but that's
not much shorter than pgdiagnostics.

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


From: "Pavan Deolasee" <pavan(dot)deolasee(at)gmail(dot)com>
To: "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com>
Cc: "Zdenek Kotala" <Zdenek(dot)Kotala(at)sun(dot)com>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Bruce Momjian" <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Heap page diagnostic functions
Date: 2007-05-02 06:41:05
Message-ID: 2e78013d0705012341y3c32e880ha0f0f344b3c39fe1@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 5/2/07, Heikki Linnakangas <heikki(at)enterprisedb(dot)com> wrote:
>
>
>
> I'm going to go with pgdiagnostics. We could short it to just "pgdiag",
> but that feels too short :). We could make it "pgdiagfuncs", but that's
> not much shorter than pgdiagnostics.

Just to add more confusion :-), how about "pginspect" ?

Thanks,
Pavan

--

EnterpriseDB http://www.enterprisedb.com


From: "Zeugswetter Andreas ADI SD" <ZeugswetterA(at)spardat(dot)at>
To: "Bruce Momjian" <bruce(at)momjian(dot)us>, "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com>
Cc: "PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Heap page diagnostic functions
Date: 2007-05-02 09:42:09
Message-ID: E1539E0ED7043848906A8FF995BDA57901FD8DD7@m0143.s-mxs.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


> > Any suggestions? pgdiagnostics?
>
> Yes, I like "diagnostics", or "internals". I just think
> forensics isn't going to be understood by the average native
> English speaker, let alone non-English speakers.

I think forensics is ok. The world is currently beeing swamped with
related tv shows :-)

Andreas


From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Pavan Deolasee <pavan(dot)deolasee(at)gmail(dot)com>
Cc: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>, Zdenek Kotala <Zdenek(dot)Kotala(at)sun(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Heap page diagnostic functions
Date: 2007-05-02 11:26:27
Message-ID: 200705021126.l42BQRU11272@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Pavan Deolasee wrote:
> On 5/2/07, Heikki Linnakangas <heikki(at)enterprisedb(dot)com> wrote:
> >
> >
> >
> > I'm going to go with pgdiagnostics. We could short it to just "pgdiag",
> > but that feels too short :). We could make it "pgdiagfuncs", but that's
> > not much shorter than pgdiagnostics.
>
>
>
> Just to add more confusion :-), how about "pginspect" ?

I like it.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +


From: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
To: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Heap page diagnostic functions
Date: 2007-05-02 11:31:31
Message-ID: 46387693.2030907@sun.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Heikki Linnakangas wrote:

> I'm going to go with pgdiagnostics. We could short it to just "pgdiag",
> but that feels too short :). We could make it "pgdiagfuncs", but that's
> not much shorter than pgdiagnostics.

pgdiagfn? It is only 8 chars length ;).

Zdenek


From: Gregory Stark <stark(at)enterprisedb(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Florian G(dot) Pflug" <fgp(at)phlo(dot)org>, "Zdenek Kotala" <Zdenek(dot)Kotala(at)Sun(dot)COM>, "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com>, "Bruce Momjian" <bruce(at)momjian(dot)us>, "PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Heap page diagnostic functions
Date: 2007-05-02 12:09:15
Message-ID: 87d51jh1g4.fsf@oxford.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

> Hmm ... the Oxford English Dictionary defines "forensic" as "pertaining
> to, connected with, or used in courts of law". There are also some
> senses related to argumentation, but nothing specifically about evidence
> analysis, whether after-the-fact or not. So yeah, it doesn't seem like
> a good name for these functions anyhow.

"Zeugswetter Andreas ADI SD" <ZeugswetterA(at)spardat(dot)at> writes:

> I think forensics is ok. The world is currently beeing swamped with
> related tv shows :-)

Indeed, it's the only proprosal so far with connotation of the right level of
detail that the functions about the data. Police forensics laboratories spend
their time picking up fibres and laboriously fingerprinting every surface
which is about what it feels like to dig through every tuple of a heap page.

Incidentally, Tom, were you consulting the dead-tree edition of the OED? In
which case you would have naturally not seen this in 1993 additions:

ADDITIONS SERIES 1993

forensic, a. and n.

Add: [B.] 2. ellipt. use of the adj. A forensic science department,
laboratory, etc. colloq. 1963 Guardian 2 Sept. 8/5 When a police officer
hisses in my ear in court, `Are you from forensic?' I no longer protest. I
just weakly nod my head. 1971 W. J. BURLEY Guilt Edged iv. 74 A breakdown
truck is taking it to Division. Forensic can look at it in their garage.
1991 J. NEEL Death of Partner vi. 83 `Forensic rang,' Bruce reported
dourly. `The autopsy report is on its way.'

Though it seems like a poor definition. My English teachers would have chided
me for using the word in its definition...

--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gregory Stark <stark(at)enterprisedb(dot)com>
Cc: "Florian G(dot) Pflug" <fgp(at)phlo(dot)org>, "Zdenek Kotala" <Zdenek(dot)Kotala(at)Sun(dot)COM>, "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com>, "Bruce Momjian" <bruce(at)momjian(dot)us>, "PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Heap page diagnostic functions
Date: 2007-05-03 05:33:59
Message-ID: 27648.1178170439@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Gregory Stark <stark(at)enterprisedb(dot)com> writes:
> Incidentally, Tom, were you consulting the dead-tree edition of the OED?

I plead guilty to having blown some dust off it before opening it ...
but when looking for an authoritative reference, I like things that
have got heft to them ...

regards, tom lane