First patch -- somewhat trivial feature

From: Robert Berry <berrydigital(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: First patch -- somewhat trivial feature
Date: 2013-11-13 23:50:45
Message-ID: CAM=RetE2AKdErB9fM497tL8BUoMoKZN-PrU97mi27LjbsJ4Myg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

This is my first attempt at writing a patch, so it's pretty simple.

Commit log sums it up:

Adds a convenience feature to the explain command which prints out GUC cost
parameters in explain text output.

For example:

explain (params) select * from table;

will include text output like the following:

Cost Params:
seq_page: 1.000000, rnd_page: 4.000000, cpu_tup: 0.010000,
cpu_ind: 0.005000, cpu_op: 0.002500
amenabled: 11111111111

The bit vector is enable variables in the order listed in cost.h,
though mainly provides a high level view on whether or not any strategies
are disabled.

------

I recognize that this is kind of a frivolous feature which may not be worth
any potential maintenance burden, so submitted for what it's worth as an
initial effort.

Best Regards,
Robert

Attachment Content-Type Size
0001-Adds-a-convenience-feature-to-the-explain-command-wh.patch text/x-patch 2.9 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2013-11-13 23:59:13 Re: nested hstore patch
Previous Message Josh Berkus 2013-11-13 23:37:28 -d option for pg_isready is broken