Skip to content

Exception: No profiling data found #25

Description

@dbcapps

Hello,

I am encountering the error "Exception: No profiling data found" while executing the command:

plprofiler run --command "select inventory_in_stock(1)" --output ./inventory_in_stock.html -h hostname.com -d dc01 -U $USERNAME
in plprofiler.py
connect
get_profiler_namespace
select inventory_in_stock(1)
-- row1:
inventory_in_stock: False

(1 rows)
SELECT 1 (0.338 seconds)

Traceback (most recent call last):
File "/home/ec2-user/.local/bin/plprofiler", line 8, in
sys.exit(main())
File "/home/ec2-user/.local/lib/python3.9/site-packages/plprofiler/plprofiler_tool.py", line 75, in main
return run_command(sys.argv[2:])
File "/home/ec2-user/.local/lib/python3.9/site-packages/plprofiler/plprofiler_tool.py", line 844, in run_command
report_data = plp.get_local_report_data(opt_name, opt_top, args)
File "/home/ec2-user/.local/lib/python3.9/site-packages/plprofiler/plprofiler.py", line 407, in get_local_report_data
raise Exception("No profiling data found")
Exception: No profiling data found

The code opens the below file for me to edit:
[current]
title = PL Profiler Report for current
tabstop = 8
svg_width = 1200
table_width = 80%
desc =

PL Profiler Report for current




The table structures and function definition are available at
https://aws.amazon.com/blogs/database/profile-amazon-rds-for-postgresql-or-amazon-aurora-postgresql-pl-pgsql-code-using-plprofiler/

The error is reproducible.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions