ModifyTable EXPLAIN Node

Поиск
Список
Период
Сортировка
Искать

ModifyTable EXPLAIN Node

От:
David E. Wheeler <david@kineticode.com>
Дата:
Howdy,

I saw that Tom added the ModifyTable node to EXPLAIN output last week. I'd like to update my explanation extension to use it, but I've no idea what it would look like. Could someone send me an example in the XML format?

Thanks!

David

Re: ModifyTable EXPLAIN Node

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
"David E. Wheeler"  writes:
> I saw that Tom added the ModifyTable node to EXPLAIN output last week. I'd like to update my explanation extension to use it, but I've no idea what it would look like. Could someone send me an example in the XML format?

It's already there in 9.0 --- I just added the relation-name property.
But since you ask:

regression=# explain (format xml) update int8_tbl set q1 = q1+1;                        QUERY PLAN                          
-------------------------------------------------------------   +                                                    +                                                     +      ModifyTable                   +      Update                        +      int8_tbl              +      int8_tbl                              +      0.00                    +      1.06                        +      5                             +      22                          +                                                    +                                                     +          Seq Scan                  +          Member+          int8_tbl          +          int8_tbl                          +          0.00                +          1.06                    +          5                         +          22                      +                                                    +                                                   +                                                    +                                                   +
(1 row)

		regards, tom lane

Re: ModifyTable EXPLAIN Node

От:
"David E. Wheeler" <david@kineticode.com>
Дата:
On Mar 7, 2011, at 4:41 PM, Tom Lane wrote:

> "David E. Wheeler"  writes:
>> I saw that Tom added the ModifyTable node to EXPLAIN output last week. I'd like to update my explanation extension to use it, but I've no idea what it would look like. Could someone send me an example in the XML format?
> 
> It's already there in 9.0 --- I just added the relation-name property.
> But since you ask:
> 
> regression=# explain (format xml) update int8_tbl set q1 = q1+1;
>                         QUERY PLAN                          
> -------------------------------------------------------------
>    +
>                                                     +
>                                                      +
>       ModifyTable                   +
>       Update                        +

Oh, just new values for the Node-Type and Operation elements. That's okay, then. I thought it was a new  element. Great, nothing for me to change.

And thanks for sending this to me, much appreciated.

Best,

David



FAQ