Re: Constraint Exclusion on all tables

From: Sam Mason <sam(at)samason(dot)me(dot)uk>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Constraint Exclusion on all tables
Date: 2005-07-22 14:44:27
Message-ID: 20050722144427.GK62747@colo.samason.me.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Dawid Kuroczko wrote:
>Hmm, methinks it wouldn't be a very difficult "beginner's project" in
>PostgreSQL hacking, to add "script-friendly" format for EXPLAIN
>command. I am not sure if I'll make it, but I'm willing to try...

It occured to me that it may be good to create a new datatype for
the results. The data type's default textual format could be the
same as the current output, but you could then provide functions
that operate on these structures to extract the relavent bits in a
format that your extrnal analysis tool can use.

This would require that you can do

SELECT * FROM (EXPLAIN SELECT 1);

though -- I guess that may be quite a big job!

>If I'm jumping on a too big a beast, please tell me. :)

Me thinks I may have just made it a bit more difficult, but probably
(should that be hopefully?) more generally useful.

Sam

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Sam Mason 2005-07-22 14:51:22 Re: Planner doesn't look at LIMIT?
Previous Message Stephen Frost 2005-07-22 14:43:05 Re: [PATCHES] Roles - SET ROLE Updated