commit b0084db91e45849d2f061139979aab3f1ce92ccd
Author: Devrim Gunduz <devrim@gunduz.org>
Date:   Mon Oct 12 21:50:32 2026 +0300

    Fix "plprofiler import": use correct s_functions_overflow column
    
    load_dataset_from_report() inserted into pl_profiler_saved using the
    column name "s_function_overflow", but the table (and the other two
    INSERTs in plprofiler.py) use "s_functions_overflow". As a result
    every "plprofiler import" failed with:
    
      column "s_function_overflow" of relation "pl_profiler_saved" does
      not exist
    
    Tested: export -> delete -> import round trip on PostgreSQL 19beta4;
    the imported data set can be listed, edited and reported on.
    
    Hacked by Claude, tested by me.

diff --git a/python-plprofiler/plprofiler/plprofiler.py b/python-plprofiler/plprofiler/plprofiler.py
index 210a01f..be36cf4 100644
--- a/python-plprofiler/plprofiler/plprofiler.py
+++ b/python-plprofiler/plprofiler/plprofiler.py
@@ -253,7 +253,7 @@ class plprofiler:
                                 WHERE s_name = %s""", (opt_name, ))
             cur.execute("""INSERT INTO pl_profiler_saved
                                 (s_name, s_options, s_callgraph_overflow,
-                                 s_function_overflow, s_lines_overflow)
+                                 s_functions_overflow, s_lines_overflow)
                             VALUES (%s, %s, %s, %s, %s)""",
                         (opt_name, json.dumps(config),
                          report_data['callgraph_overflow'],
