NAME

Pg::Explain::Analyzer - Some helper methods to analyze explains

VERSION

Version 2.7

SYNOPSIS

This is to be used in analysis/statistical tools. Sample usage:

use Pg::Explain;
use Pg::Explain::Analyzer;
use Data::Dumper;

my $explain = Pg::Explain->new('source_file' => 'some_file.out');
my $analyzer = Pg::Explain::Analyzer->new( $explain );

print Dumper($analyzer->all_node_types);

FUNCTIONS

new

Object constructor.

Takes one argument - Pg::Explain object.

explain

Getter/setter of explain object.

all_node_types

Returns list (arrayref) with names of all nodes in analyzed explain.

all_node_paths

Returns list (arrayref) where each element is array of node types from top level to "current".

Elements in final arrays are node types.

AUTHOR

hubert depesz lubaczewski, <depesz at depesz.com>

BUGS

Please report any bugs or feature requests to depesz at depesz.com.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Pg::Explain

COPYRIGHT & LICENSE

Copyright 2008-2023 hubert depesz lubaczewski, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.