============================================================================ NESTED_STATEMENTS Feature - Comprehensive Test Suite ============================================================================ This test suite demonstrates: 1. Validation (NESTED_STATEMENTS requires ANALYZE) 2. Simple PL/pgSQL function (all level 1) 3. PERFORM pattern (creates deeper nesting levels) 4. Expression assignment pattern (stays at same level) 5. Comparison: PERFORM vs expression assignment 6. SQL function nesting (true SQL nesting) 7. Three-level chain with PERFORM 8. Recursive function (increasing levels) 9. Exception handling blocks 10. No nested statements (plain query) 11. Trigger-fired nested statements 12. Combined with VERBOSE and BUFFERS options 13. Statement numbering = start-time order (triggers demo) 14. BEGIN/ROLLBACK safety pattern 15. Error during EXPLAIN does not crash (Bug 1 fix) 16. Nested EXPLAIN does not crash (Bug 2 fix) 17. Memory context cleanup (Bug 3 fix) 18. Memory context does not grow across repeated calls 19. Stress test - 50 nested statements 20. Execution Time per nested statement (SUMMARY default) 21. SUMMARY OFF hides timing, percentages, and summary section 22. Structured output - JSON format 23. Structured output - XML format 24. Structured output - YAML format 25. SHOW_NESTED - limit displayed plans 26. SHOW_NESTED 0 - summary only 27. SHOW_NESTED validation (requires NESTED_STATEMENTS) 28. Nested Statements Summary with percentages 29. Statement timeout — hooks cleaned up 30. Dynamic SQL — query text captured correctly 31. Infinite recursion — graceful error 32. auto_explain compatibility 33. Deep nesting (20 levels) 34. All EXPLAIN options combined with SHOW_NESTED 35. Performance — zero overhead when disabled 36. Interpreting Total Nested Time percentage 37. Multiple triggers on separate tables 38. Direct DML with triggers (BEFORE + AFTER, cascading) 39. BEFORE and AFTER triggers in function context 40. Query Identifier integration (pg_stat_statements) 41. Level-1 only counting (no double-counting with deep nesting) 42. Parallel — nested plans inside parallel context 43. Parallel — nested PERFORM with parallel inner SQL 44. Parallel — INSERT...SELECT with trigger + parallel source 45. Parallel — PARALLEL SAFE function in WHERE (worker execution) 46. High-volume NOTICE (per-row function calls) 47. Prepared statements (SPI plan caching) 48. Security-definer function 49. Nested cursors (FOR loop and explicit OPEN/FETCH/CLOSE) 50. Cross-database queries (dblink) — known limitation 51. DDL inside function (CREATE/DROP TEMP TABLE) 52. Reentrancy DEBUG log (nested EXPLAIN NESTED_STATEMENTS) 53. SETTINGS inheritance (function with internal SET) 54. Slowest statement — trigger-only scenario 55. Trigger time — multi-level nesting -- ============================================================================ psql:comprehensive_nested_statements_test_v5.sql:75: NOTICE: table "products" does not exist, skipping DROP TABLE CREATE TABLE INSERT 0 3 ============================================================================ TEST 1: Validation - NESTED_STATEMENTS requires ANALYZE ============================================================================ Expected: ERROR message psql:comprehensive_nested_statements_test_v5.sql:92: ERROR: EXPLAIN option NESTED_STATEMENTS requires ANALYZE ============================================================================ TEST 2: Simple PL/pgSQL Function - All Statements at Level 1 ============================================================================ Purpose: SQL statements in a single function all execute at level 1 because they run sequentially in the same executor context. CREATE FUNCTION Expected: All 4 statements at level 1 QUERY PLAN ------------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=186 Planning Time: 0.023 ms Execution Time: 3.836 ms Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM products Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on products (actual rows=3.00 loops=1) Buffers: shared hit=1 Execution Time: 0.013 ms (4.7%) Nested Statement #2 (level 1): Query Text: INSERT INTO products VALUES (10, 'Temp', 1, 'Temp') Insert on products (actual rows=0.00 loops=1) Buffers: shared hit=1 -> Result (actual rows=1.00 loops=1) Execution Time: 0.011 ms (4.1%) Nested Statement #3 (level 1): Query Text: UPDATE products SET price = price + 1 WHERE id = 1 Update on products (actual rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on products (actual rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.248 ms (88.9%) Nested Statement #4 (level 1): Query Text: DELETE FROM products WHERE id = 10 Delete on products (actual rows=0.00 loops=1) Buffers: shared hit=2 -> Seq Scan on products (actual rows=1.00 loops=1) Filter: (id = 10) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.007 ms (2.3%) Nested Statements Summary: Total: 4 statements, max depth 1 Total Execution Time: 3.836 ms Total Nested Time: 0.280 ms (7.3% of total time) Slowest Statement: #3 (0.248 ms, 88.9%) (47 rows) ============================================================================ TEST 3: PERFORM Pattern - Creates Deeper Nesting Levels ============================================================================ Purpose: PERFORM func() creates a new executor call (SELECT func()), so statements inside the called function run at a deeper level. How it works internally: PERFORM func() → executes "SELECT func()" → ExecutorRun increments level → func() body runs its SQL at the elevated level CREATE FUNCTION CREATE FUNCTION Expected (start-time order): Statement #1 (level 1): SELECT COUNT in outer_perform Statement #2 (level 1): SELECT inner_perform() [the PERFORM call] Statement #3 (level 2): UPDATE in inner_perform Statement #4 (level 2): INSERT in inner_perform Statement #5 (level 2): DELETE in inner_perform Statement #6 (level 1): UPDATE in outer_perform QUERY PLAN --------------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=60 Planning Time: 0.018 ms Execution Time: 0.407 ms Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM products Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on products (actual rows=3.00 loops=1) Buffers: shared hit=1 Execution Time: 0.009 ms (5.0%) Nested Statement #2 (level 1): Query Text: SELECT inner_perform() Result (actual rows=1.00 loops=1) Buffers: shared hit=6 Execution Time: 0.167 ms (91.5%) Nested Statement #3 (level 2): Query Text: UPDATE products SET price = price + 1 WHERE id = 2 Update on products (actual rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on products (actual rows=1.00 loops=1) Filter: (id = 2) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.042 ms Nested Statement #4 (level 2): Query Text: INSERT INTO products VALUES (20, 'Inner', 50, 'Test') Insert on products (actual rows=0.00 loops=1) Buffers: shared hit=1 -> Result (actual rows=1.00 loops=1) Execution Time: 0.004 ms Nested Statement #5 (level 2): Query Text: DELETE FROM products WHERE id = 20 Delete on products (actual rows=0.00 loops=1) Buffers: shared hit=2 -> Seq Scan on products (actual rows=1.00 loops=1) Filter: (id = 20) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.005 ms Nested Statement #6 (level 1): Query Text: UPDATE products SET price = price - 1 WHERE id = 2 Update on products (actual rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on products (actual rows=1.00 loops=1) Filter: (id = 2) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.006 ms (3.5%) Nested Statements Summary: Total: 6 statements, max depth 2 Total Execution Time: 0.407 ms Total Nested Time: 0.182 ms (44.7% of total time) Slowest Statement: #2 (0.167 ms, 91.5%) (63 rows) ============================================================================ TEST 4: Expression Assignment (result := func()) - Same Level ============================================================================ Purpose: result := func() evaluates the function as an expression via ExecEvalFunc WITHOUT creating a new executor call. Statements inside the called function run at the SAME level as the caller. How it works internally: result := func() → ExecEvalFunc(func) → NO new ExecutorRun → func() body runs its SQL at the SAME level as caller CREATE FUNCTION CREATE FUNCTION Expected: ALL statements at level 1 (no deeper nesting) Statement #1 (level 1): SELECT COUNT in outer_expr Statement #2 (level 1): SELECT SUM in inner_expr ← same level! Statement #3 (level 1): UPDATE in inner_expr ← same level! Statement #4 (level 1): DELETE in outer_expr QUERY PLAN ------------------------------------------------------------------ Result (actual rows=1.00 loops=1) Buffers: shared hit=201 Planning Time: 0.014 ms Execution Time: 2.019 ms Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM products Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on products (actual rows=3.00 loops=1) Buffers: shared hit=1 Execution Time: 0.008 ms (13.9%) Nested Statement #2 (level 1): Query Text: SELECT SUM(price) FROM products Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on products (actual rows=3.00 loops=1) Buffers: shared hit=1 Execution Time: 0.028 ms (49.6%) Nested Statement #3 (level 1): Query Text: UPDATE products SET price = price + 1 WHERE id = 3 Update on products (actual rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on products (actual rows=1.00 loops=1) Filter: (id = 3) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.017 ms (30.2%) Nested Statement #4 (level 1): Query Text: DELETE FROM products WHERE price > 9999 Delete on products (actual rows=0.00 loops=1) Buffers: shared hit=1 -> Seq Scan on products (actual rows=0.00 loops=1) Filter: (price > '9999'::numeric) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.004 ms (6.3%) Nested Statements Summary: Total: 4 statements, max depth 1 Total Execution Time: 2.019 ms Total Nested Time: 0.056 ms (2.8% of total time) Slowest Statement: #2 (0.028 ms, 49.6%) (48 rows) ============================================================================ TEST 5: PERFORM vs Expression Assignment - Side by Side ============================================================================ Purpose: Same inner function called two different ways to show the nesting level difference. CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION --- Via PERFORM (expect level 2 for inner SELECT): --- QUERY PLAN ------------------------------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=27 Planning Time: 0.013 ms Execution Time: 0.169 ms Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT shared_inner() Result (actual rows=1.00 loops=1) Buffers: shared hit=21 Execution Time: 0.135 ms (100.0%) Nested Statement #2 (level 2): Query Text: SELECT COUNT(*) FROM products WHERE category = 'Electronics' Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on products (actual rows=2.00 loops=1) Filter: (category = 'Electronics'::text) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.012 ms Nested Statements Summary: Total: 2 statements, max depth 2 Total Execution Time: 0.169 ms Total Nested Time: 0.135 ms (79.6% of total time) Slowest Statement: #1 (0.135 ms, 100.0%) (28 rows) --- Via expression assignment (expect level 1 for inner SELECT): --- QUERY PLAN ------------------------------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=1 Planning Time: 0.002 ms Execution Time: 0.028 ms Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM products WHERE category = 'Electronics' Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on products (actual rows=2.00 loops=1) Filter: (category = 'Electronics'::text) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.004 ms (100.0%) Nested Statements Summary: Total: 1 statements, max depth 1 Total Execution Time: 0.028 ms Total Nested Time: 0.004 ms (14.8% of total time) Slowest Statement: #1 (0.004 ms, 100.0%) (22 rows) Notice: Same function, different nesting levels depending on call pattern. ============================================================================ TEST 6: SQL Functions - True SQL Execution Nesting ============================================================================ Purpose: SQL functions execute DURING the parent query, creating true SQL nesting where inner functions complete before outer. psql:comprehensive_nested_statements_test_v5.sql:284: NOTICE: table "t1" does not exist, skipping psql:comprehensive_nested_statements_test_v5.sql:284: NOTICE: table "t2" does not exist, skipping psql:comprehensive_nested_statements_test_v5.sql:284: NOTICE: table "t3" does not exist, skipping DROP TABLE CREATE TABLE CREATE TABLE CREATE TABLE INSERT 0 1 INSERT 0 1 INSERT 0 1 CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION Expected: Deepest-first execution order (3→2→1) Statement #1 (level 3): SELECT from t3 (sql_level3) Statement #2 (level 2): SELECT from t2 (sql_level2) Statement #3 (level 1): SELECT from t1 (plpgsql_sql_caller) QUERY PLAN ----------------------------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=30 Planning Time: 0.059 ms Execution Time: 0.773 ms Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT data || '+' || sql_level2() FROM t1 WHERE id = 1 Seq Scan on t1 (actual rows=1.00 loops=1) Filter: (id = 1) Buffers: shared hit=15 Execution Time: 0.645 ms (100.0%) Nested Statement #2 (level 2): Query Text: SELECT data || '+' || sql_level3() FROM t2 WHERE id = 1; Seq Scan on t2 (actual rows=1.00 loops=1) Filter: (id = 1) Buffers: shared hit=8 Execution Time: 0.472 ms Nested Statement #3 (level 3): Query Text: SELECT data FROM t3 WHERE id = 1; Seq Scan on t3 (actual rows=1.00 loops=1) Filter: (id = 1) Buffers: shared hit=1 Execution Time: 0.008 ms Nested Statements Summary: Total: 3 statements, max depth 3 Total Execution Time: 0.773 ms Total Nested Time: 0.645 ms (83.4% of total time) Slowest Statement: #1 (0.645 ms, 100.0%) (37 rows) ============================================================================ TEST 7: Three-Level PL/pgSQL Chain (via PERFORM) ============================================================================ Purpose: Each PERFORM adds one executor level CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION Expected: Statement #1 (level 1): SELECT COUNT(*) FROM products Statement #2 (level 2): SELECT COUNT(*) WHERE id = 1 Statement #3 (level 3): SELECT COUNT(*) WHERE category = Books Statement #4 (level 2): SELECT chain_level3() Statement #5 (level 1): SELECT chain_level2() QUERY PLAN ---------------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=18 Planning Time: 0.016 ms Execution Time: 0.244 ms Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM products Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on products (actual rows=3.00 loops=1) Buffers: shared hit=1 Execution Time: 0.009 ms (7.1%) Nested Statement #2 (level 1): Query Text: SELECT chain_level2() Result (actual rows=1.00 loops=1) Buffers: shared hit=8 Execution Time: 0.119 ms (92.9%) Nested Statement #3 (level 2): Query Text: SELECT COUNT(*) FROM products WHERE id = 1 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on products (actual rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.007 ms Nested Statement #4 (level 2): Query Text: SELECT chain_level3() Result (actual rows=1.00 loops=1) Buffers: shared hit=1 Execution Time: 0.047 ms Nested Statement #5 (level 3): Query Text: SELECT COUNT(*) FROM products WHERE category = 'Books' Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on products (actual rows=1.00 loops=1) Filter: (category = 'Books'::text) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.005 ms Nested Statements Summary: Total: 5 statements, max depth 3 Total Execution Time: 0.244 ms Total Nested Time: 0.128 ms (52.5% of total time) Slowest Statement: #2 (0.119 ms, 92.9%) (52 rows) ============================================================================ TEST 8: Recursive Function - Increasing Nesting Levels ============================================================================ Purpose: Recursive PERFORM calls increase the nesting level each time psql:comprehensive_nested_statements_test_v5.sql:372: NOTICE: table "counter_log" does not exist, skipping DROP TABLE CREATE TABLE CREATE FUNCTION Expected: Statement #1 (level 1): INSERT with n=3 Statement #2 (level 2): INSERT with n=2 Statement #3 (level 3): INSERT with n=1 + PERFORM calls at levels 2 and 1 QUERY PLAN ---------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=42 dirtied=1 written=1 Planning Time: 0.015 ms Execution Time: 0.764 ms Nested Plans: Nested Statement #1 (level 1): Query Text: INSERT INTO counter_log VALUES (n, n * 10) Insert on counter_log (actual rows=0.00 loops=1) Buffers: shared dirtied=1 written=1 -> Result (actual rows=1.00 loops=1) Execution Time: 0.535 ms (92.9%) Nested Statement #2 (level 1): Query Text: SELECT recursive_func(n - 1) Result (actual rows=1.00 loops=1) Buffers: shared hit=2 Execution Time: 0.041 ms (7.1%) Nested Statement #3 (level 2): Query Text: INSERT INTO counter_log VALUES (n, n * 10) Insert on counter_log (actual rows=0.00 loops=1) Buffers: shared hit=1 -> Result (actual rows=1.00 loops=1) Execution Time: 0.002 ms Nested Statement #4 (level 2): Query Text: SELECT recursive_func(n - 1) Result (actual rows=1.00 loops=1) Buffers: shared hit=1 Execution Time: 0.013 ms Nested Statement #5 (level 3): Query Text: INSERT INTO counter_log VALUES (n, n * 10) Insert on counter_log (actual rows=0.00 loops=1) Buffers: shared hit=1 -> Result (actual rows=1.00 loops=1) Execution Time: 0.001 ms Nested Statements Summary: Total: 5 statements, max depth 3 Total Execution Time: 0.764 ms Total Nested Time: 0.576 ms (75.5% of total time) Slowest Statement: #1 (0.535 ms, 92.9%) (45 rows) ============================================================================ TEST 9: Exception Handling - Statements in BEGIN/EXCEPTION Blocks ============================================================================ Purpose: Verify statements in exception handlers are captured psql:comprehensive_nested_statements_test_v5.sql:406: NOTICE: table "safe_table" does not exist, skipping DROP TABLE CREATE TABLE INSERT 0 1 CREATE FUNCTION Expected: - UPDATE (level 1): initial update - UPDATE (level 1): recovery in exception handler - The failed INSERT is rolled back and may not appear QUERY PLAN ----------------------------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=23 Planning Time: 0.016 ms Execution Time: 1.135 ms Nested Plans: Nested Statement #1 (level 1): Query Text: UPDATE safe_table SET data = 'updated' WHERE id = 1 Update on safe_table (actual rows=0.00 loops=1) Buffers: shared hit=4 -> Index Scan using safe_table_pkey on safe_table (actual rows=1.00 loops=1) Index Cond: (id = 1) Index Searches: 1 Buffers: shared hit=2 Execution Time: 0.037 ms (77.6%) Nested Statement #2 (level 1): Query Text: UPDATE safe_table SET data = 'recovered' WHERE id = 1 Update on safe_table (actual rows=0.00 loops=1) Buffers: shared hit=4 -> Index Scan using safe_table_pkey on safe_table (actual rows=1.00 loops=1) Index Cond: (id = 1) Index Searches: 1 Buffers: shared hit=2 Execution Time: 0.011 ms (22.4%) Nested Statements Summary: Total: 2 statements, max depth 1 Total Execution Time: 1.135 ms Total Nested Time: 0.048 ms (4.2% of total time) Slowest Statement: #1 (0.037 ms, 77.6%) (32 rows) ============================================================================ TEST 10: No Nested Statements - Plain Query ============================================================================ Purpose: When no nested statements execute, no "Nested Plans:" section Expected: Normal EXPLAIN output, no Nested Plans section QUERY PLAN ------------------------------------------------- Seq Scan on products (actual rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 2 Buffers: shared hit=1 (4 rows) ============================================================================ TEST 11: Trigger-Fired Nested Statements ============================================================================ Purpose: Triggers fire DURING the triggering statement, creating deeper nesting. Trigger-fired statements are automatically detected and annotated with "(trigger)" in the header. Their time is tracked separately in the summary. What this tests: - Trigger detection via GetMyTriggerDepth() - "(trigger)" annotation on trigger-fired statements - Trigger statements show no percentage (time included in parent) - Deeper-level direct statements show no percentage (time included in level-1 parent) - Summary shows "N direct, M trigger-fired" breakdown - Total Trigger Time shown separately with % of nested time - Start-time order: parent appears before its trigger psql:comprehensive_nested_statements_test_v5.sql:473: NOTICE: table "orders" does not exist, skipping DROP TABLE psql:comprehensive_nested_statements_test_v5.sql:474: NOTICE: table "audit_log" does not exist, skipping DROP TABLE CREATE TABLE CREATE TABLE CREATE FUNCTION CREATE TRIGGER CREATE FUNCTION Expected: #1 (level 2, trigger): INSERT INTO audit_log — trigger from INSERT #2 (level 1): INSERT INTO orders — the triggering statement #3 (level 2, trigger): INSERT INTO audit_log — trigger from UPDATE #4 (level 1): UPDATE orders — the triggering statement Summary should show: (2 direct, 2 trigger-fired) Total Trigger Time shows % of nested time QUERY PLAN --------------------------------------------------------------------------------------------- Result (actual time=3.936..3.936 rows=1.00 loops=1) Buffers: shared hit=74 read=1 dirtied=4 written=3 Planning Time: 0.021 ms Execution Time: 3.945 ms Nested Plans: Nested Statement #1 (level 1): Query Text: INSERT INTO orders VALUES (p_id, 99.99, 'new') Insert on orders (actual time=2.106..2.106 rows=0.00 loops=1) Buffers: shared hit=14 read=1 dirtied=3 written=2 -> Result (actual time=0.001..0.002 rows=1.00 loops=1) Trigger order_audit_trigger: time=1.072 calls=1 Execution Time: 3.180 ms (89.1%) Nested Statement #2 (level 2, trigger): Query Text: INSERT INTO audit_log (order_id, action) VALUES (NEW.id, TG_OP || ': ' || NEW.status) Insert on audit_log (actual time=0.768..0.768 rows=0.00 loops=1) Buffers: shared dirtied=1 written=1 -> Result (actual time=0.289..0.289 rows=1.00 loops=1) Execution Time: 0.769 ms Nested Statement #3 (level 1): Query Text: UPDATE orders SET status = 'processed' WHERE id = p_id Update on orders (actual time=0.335..0.335 rows=0.00 loops=1) Buffers: shared hit=5 -> Index Scan using orders_pkey on orders (actual time=0.004..0.005 rows=1.00 loops=1) Index Cond: (id = 1) Index Searches: 1 Buffers: shared hit=2 Trigger order_audit_trigger: time=0.052 calls=1 Execution Time: 0.387 ms (10.9%) Nested Statement #4 (level 2, trigger): Query Text: INSERT INTO audit_log (order_id, action) VALUES (NEW.id, TG_OP || ': ' || NEW.status) Insert on audit_log (actual time=0.004..0.005 rows=0.00 loops=1) Buffers: shared hit=1 -> Result (actual time=0.002..0.002 rows=1.00 loops=1) Execution Time: 0.005 ms Nested Statements Summary: Total: 4 statements (2 direct, 2 trigger-fired), max depth 2 Total Execution Time: 3.945 ms Total Nested Time: 3.567 ms (90.4% of total time) Total Trigger Time: 0.774 ms (21.7% of nested time) Slowest Statement: #1 (3.180 ms, 89.1%) (48 rows) ============================================================================ TEST 12: NESTED_STATEMENTS with VERBOSE and BUFFERS ============================================================================ Purpose: VERBOSE and BUFFERS options are inherited by nested plans CREATE FUNCTION Expected: Schema-qualified names (public.products) and Output columns QUERY PLAN ----------------------------------------------------------------------------------------------------- Result (cost=0.00..0.26 rows=1 width=4) (actual rows=1.00 loops=1) Output: verbose_func() Buffers: shared hit=4 Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM products Aggregate (cost=17.88..17.89 rows=1 width=8) (actual rows=1.00 loops=1) Output: count(*) Buffers: shared hit=1 -> Seq Scan on public.products (cost=0.00..16.30 rows=630 width=0) (actual rows=3.00 loops=1) Output: id, name, price, category Buffers: shared hit=1 (14 rows) ============================================================================ TEST 13: Statement Numbering Shows Start-Time Order ============================================================================ Purpose: Statements are displayed in chronological order (by start time) and numbered sequentially. This is most visible with triggers: Timeline for INSERT with an AFTER trigger: 1. Parent INSERT starts executing → gets #1 (started first) 2. Trigger fires → trigger INSERT starts → gets #2 (started second) 3. Trigger INSERT finishes, then parent INSERT finishes The parent starts before its trigger, so it gets a lower number. psql:comprehensive_nested_statements_test_v5.sql:556: NOTICE: table "demo_orders" does not exist, skipping DROP TABLE psql:comprehensive_nested_statements_test_v5.sql:557: NOTICE: table "demo_log" does not exist, skipping DROP TABLE CREATE TABLE CREATE TABLE CREATE FUNCTION CREATE TRIGGER CREATE FUNCTION Expected numbering (start-time order): #1 (level 1): INSERT INTO demo_orders (Widget) ← parent starts first #2 (level 2, trigger): INSERT INTO demo_log ← trigger starts inside parent #3 (level 1): INSERT INTO demo_orders (Gadget) ← second parent starts #4 (level 2, trigger): INSERT INTO demo_log ← second trigger starts inside QUERY PLAN -------------------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=36 dirtied=2 written=2 Nested Plans: Nested Statement #1 (level 1): Query Text: INSERT INTO demo_orders VALUES (1, 'Widget') Insert on demo_orders (actual rows=0.00 loops=1) Buffers: shared dirtied=1 written=1 -> Result (actual rows=1.00 loops=1) Trigger demo_after_insert: calls=1 Nested Statement #2 (level 2, trigger): Query Text: INSERT INTO demo_log VALUES ('order placed: ' || NEW.item) Insert on demo_log (actual rows=0.00 loops=1) Buffers: shared dirtied=1 written=1 -> Result (actual rows=1.00 loops=1) Nested Statement #3 (level 1): Query Text: INSERT INTO demo_orders VALUES (2, 'Gadget') Insert on demo_orders (actual rows=0.00 loops=1) Buffers: shared hit=1 -> Result (actual rows=1.00 loops=1) Trigger demo_after_insert: calls=1 Nested Statement #4 (level 2, trigger): Query Text: INSERT INTO demo_log VALUES ('order placed: ' || NEW.item) Insert on demo_log (actual rows=0.00 loops=1) Buffers: shared hit=1 -> Result (actual rows=1.00 loops=1) (30 rows) Key takeaway: Lower statement number = started earlier. Parents start before their triggers, so they get lower numbers. ============================================================================ TEST 14: BEGIN/ROLLBACK - Safe Analysis of Data-Modifying Functions ============================================================================ Purpose: Demonstrate the recommended pattern for safely analyzing functions that modify data without persisting changes. Pattern: BEGIN; EXPLAIN (ANALYZE, NESTED_STATEMENTS) SELECT my_function(); ROLLBACK; The function executes (so we get real plans with actual rows), but ROLLBACK undoes all changes. psql:comprehensive_nested_statements_test_v5.sql:613: NOTICE: table "safe_orders" does not exist, skipping DROP TABLE CREATE TABLE INSERT 0 2 CREATE FUNCTION --- Before: --- id | item | status ----+--------+--------- 1 | Widget | pending 2 | Gadget | pending (2 rows) --- EXPLAIN inside BEGIN/ROLLBACK: --- BEGIN QUERY PLAN ------------------------------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=11 Nested Plans: Nested Statement #1 (level 1): Query Text: UPDATE safe_orders SET status = 'processing' WHERE status = 'pending' Update on safe_orders (actual rows=0.00 loops=1) Buffers: shared hit=5 -> Seq Scan on safe_orders (actual rows=2.00 loops=1) Filter: (status = 'pending'::text) Buffers: shared hit=1 Nested Statement #2 (level 1): Query Text: INSERT INTO safe_orders VALUES (3, 'Bonus', 'new') Insert on safe_orders (actual rows=0.00 loops=1) Buffers: shared hit=1 -> Result (actual rows=1.00 loops=1) Nested Statement #3 (level 1): Query Text: DELETE FROM safe_orders WHERE item = 'Gadget' Delete on safe_orders (actual rows=0.00 loops=1) Buffers: shared hit=2 -> Seq Scan on safe_orders (actual rows=1.00 loops=1) Filter: (item = 'Gadget'::text) Rows Removed by Filter: 2 Buffers: shared hit=1 (27 rows) ROLLBACK --- After ROLLBACK (data unchanged): --- id | item | status ----+--------+--------- 1 | Widget | pending 2 | Gadget | pending (2 rows) Result: We got full execution plans with actual row counts, but the data is unchanged after ROLLBACK. ============================================================================ TEST 15: Error During EXPLAIN Does Not Crash Server ============================================================================ Purpose: If EXPLAIN errors (e.g., division by zero), hooks must be cleaned up so subsequent queries do not crash the backend. CREATE FUNCTION psql:comprehensive_nested_statements_test_v5.sql:668: ERROR: division by zero CONTEXT: SQL statement "SELECT 1/x" PL/pgSQL function divz_plpgsql(integer) line 4 at SQL statement After error - next query (should not crash): post_error_test ----------------- 1 (1 row) After error - EXPLAIN NESTED_STATEMENTS again: QUERY PLAN ----------------------------------- Result (actual rows=1.00 loops=1) Planning Time: 0.003 ms Execution Time: 0.003 ms (3 rows) TEST 15: Server survived the error — hooks cleaned up correctly ============================================================================ TEST 16: Nested EXPLAIN Does Not Crash Server ============================================================================ Purpose: A function that internally runs EXPLAIN (NESTED_STATEMENTS) should not corrupt the outer EXPLAIN state (reentrancy guard). CREATE FUNCTION QUERY PLAN ------------------------------------------------------------- Result (actual rows=1.00 loops=1) Nested Plans: Nested Statement #1 (level 1): Query Text: EXPLAIN (ANALYZE, NESTED_STATEMENTS) SELECT 1 Result (actual rows=1.00 loops=1) (7 rows) TEST 16: Server survived nested EXPLAIN — reentrancy guard works ============================================================================ TEST 17: Memory Context Properly Freed After EXPLAIN ============================================================================ Purpose: The dedicated memory context for nested plans should not persist after EXPLAIN completes (no memory leak). QUERY PLAN ----------------------------------- Result (actual rows=1.00 loops=1) (1 row) QUERY PLAN ----------------------------------- Result (actual rows=1.00 loops=1) (1 row) QUERY PLAN ----------------------------------- Result (actual rows=1.00 loops=1) (1 row) Memory contexts named "Nested EXPLAIN plans" (should be 0 rows): name ------ (0 rows) TEST 17: 0 rows above = memory context freed after EXPLAIN ============================================================================ TEST 18: Memory Context Does Not Grow Across Repeated Calls ============================================================================ Purpose: Run EXPLAIN NESTED_STATEMENTS 20 times and verify no memory context persists or accumulates between calls. CREATE TABLE INSERT 0 2 CREATE FUNCTION QUERY PLAN ----------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=16 Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM mem_test Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on mem_test (actual rows=2.00 loops=1) Buffers: shared hit=1 Nested Statement #2 (level 1): Query Text: UPDATE mem_test SET val = val || 'x' WHERE id = 1 Update on mem_test (actual rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on mem_test (actual rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 1 Buffers: shared hit=1 (20 rows) QUERY PLAN ----------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=4 Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM mem_test Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on mem_test (actual rows=2.00 loops=1) Buffers: shared hit=1 Nested Statement #2 (level 1): Query Text: UPDATE mem_test SET val = val || 'x' WHERE id = 1 Update on mem_test (actual rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on mem_test (actual rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 1 Buffers: shared hit=1 (20 rows) QUERY PLAN ----------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=4 Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM mem_test Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on mem_test (actual rows=2.00 loops=1) Buffers: shared hit=1 Nested Statement #2 (level 1): Query Text: UPDATE mem_test SET val = val || 'x' WHERE id = 1 Update on mem_test (actual rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on mem_test (actual rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 1 Buffers: shared hit=1 (20 rows) QUERY PLAN ----------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=4 Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM mem_test Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on mem_test (actual rows=2.00 loops=1) Buffers: shared hit=1 Nested Statement #2 (level 1): Query Text: UPDATE mem_test SET val = val || 'x' WHERE id = 1 Update on mem_test (actual rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on mem_test (actual rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 1 Buffers: shared hit=1 (20 rows) QUERY PLAN ----------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=4 Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM mem_test Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on mem_test (actual rows=2.00 loops=1) Buffers: shared hit=1 Nested Statement #2 (level 1): Query Text: UPDATE mem_test SET val = val || 'x' WHERE id = 1 Update on mem_test (actual rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on mem_test (actual rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 1 Buffers: shared hit=1 (20 rows) QUERY PLAN ----------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=4 Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM mem_test Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on mem_test (actual rows=2.00 loops=1) Buffers: shared hit=1 Nested Statement #2 (level 1): Query Text: UPDATE mem_test SET val = val || 'x' WHERE id = 1 Update on mem_test (actual rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on mem_test (actual rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 1 Buffers: shared hit=1 (20 rows) QUERY PLAN ----------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=4 Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM mem_test Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on mem_test (actual rows=2.00 loops=1) Buffers: shared hit=1 Nested Statement #2 (level 1): Query Text: UPDATE mem_test SET val = val || 'x' WHERE id = 1 Update on mem_test (actual rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on mem_test (actual rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 1 Buffers: shared hit=1 (20 rows) QUERY PLAN ----------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=4 Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM mem_test Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on mem_test (actual rows=2.00 loops=1) Buffers: shared hit=1 Nested Statement #2 (level 1): Query Text: UPDATE mem_test SET val = val || 'x' WHERE id = 1 Update on mem_test (actual rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on mem_test (actual rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 1 Buffers: shared hit=1 (20 rows) QUERY PLAN ----------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=4 Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM mem_test Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on mem_test (actual rows=2.00 loops=1) Buffers: shared hit=1 Nested Statement #2 (level 1): Query Text: UPDATE mem_test SET val = val || 'x' WHERE id = 1 Update on mem_test (actual rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on mem_test (actual rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 1 Buffers: shared hit=1 (20 rows) QUERY PLAN ----------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=4 Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM mem_test Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on mem_test (actual rows=2.00 loops=1) Buffers: shared hit=1 Nested Statement #2 (level 1): Query Text: UPDATE mem_test SET val = val || 'x' WHERE id = 1 Update on mem_test (actual rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on mem_test (actual rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 1 Buffers: shared hit=1 (20 rows) QUERY PLAN ----------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=4 Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM mem_test Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on mem_test (actual rows=2.00 loops=1) Buffers: shared hit=1 Nested Statement #2 (level 1): Query Text: UPDATE mem_test SET val = val || 'x' WHERE id = 1 Update on mem_test (actual rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on mem_test (actual rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 1 Buffers: shared hit=1 (20 rows) QUERY PLAN ----------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=4 Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM mem_test Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on mem_test (actual rows=2.00 loops=1) Buffers: shared hit=1 Nested Statement #2 (level 1): Query Text: UPDATE mem_test SET val = val || 'x' WHERE id = 1 Update on mem_test (actual rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on mem_test (actual rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 1 Buffers: shared hit=1 (20 rows) QUERY PLAN ----------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=4 Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM mem_test Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on mem_test (actual rows=2.00 loops=1) Buffers: shared hit=1 Nested Statement #2 (level 1): Query Text: UPDATE mem_test SET val = val || 'x' WHERE id = 1 Update on mem_test (actual rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on mem_test (actual rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 1 Buffers: shared hit=1 (20 rows) QUERY PLAN ----------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=4 Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM mem_test Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on mem_test (actual rows=2.00 loops=1) Buffers: shared hit=1 Nested Statement #2 (level 1): Query Text: UPDATE mem_test SET val = val || 'x' WHERE id = 1 Update on mem_test (actual rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on mem_test (actual rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 1 Buffers: shared hit=1 (20 rows) QUERY PLAN ----------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=4 Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM mem_test Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on mem_test (actual rows=2.00 loops=1) Buffers: shared hit=1 Nested Statement #2 (level 1): Query Text: UPDATE mem_test SET val = val || 'x' WHERE id = 1 Update on mem_test (actual rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on mem_test (actual rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 1 Buffers: shared hit=1 (20 rows) QUERY PLAN ----------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=4 Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM mem_test Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on mem_test (actual rows=2.00 loops=1) Buffers: shared hit=1 Nested Statement #2 (level 1): Query Text: UPDATE mem_test SET val = val || 'x' WHERE id = 1 Update on mem_test (actual rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on mem_test (actual rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 1 Buffers: shared hit=1 (20 rows) QUERY PLAN ----------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=4 Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM mem_test Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on mem_test (actual rows=2.00 loops=1) Buffers: shared hit=1 Nested Statement #2 (level 1): Query Text: UPDATE mem_test SET val = val || 'x' WHERE id = 1 Update on mem_test (actual rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on mem_test (actual rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 1 Buffers: shared hit=1 (20 rows) QUERY PLAN ----------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=4 Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM mem_test Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on mem_test (actual rows=2.00 loops=1) Buffers: shared hit=1 Nested Statement #2 (level 1): Query Text: UPDATE mem_test SET val = val || 'x' WHERE id = 1 Update on mem_test (actual rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on mem_test (actual rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 1 Buffers: shared hit=1 (20 rows) QUERY PLAN ----------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=4 Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM mem_test Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on mem_test (actual rows=2.00 loops=1) Buffers: shared hit=1 Nested Statement #2 (level 1): Query Text: UPDATE mem_test SET val = val || 'x' WHERE id = 1 Update on mem_test (actual rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on mem_test (actual rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 1 Buffers: shared hit=1 (20 rows) QUERY PLAN ----------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=4 Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM mem_test Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on mem_test (actual rows=2.00 loops=1) Buffers: shared hit=1 Nested Statement #2 (level 1): Query Text: UPDATE mem_test SET val = val || 'x' WHERE id = 1 Update on mem_test (actual rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on mem_test (actual rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 1 Buffers: shared hit=1 (20 rows) After 20 runs - "Nested EXPLAIN plans" contexts (should be 0 rows): name ------ (0 rows) TEST 18: 0 rows above = no memory accumulation after 20 runs ============================================================================ TEST 19: Stress Test - Function With 50 Nested Statements ============================================================================ Purpose: Verify the feature handles many nested statements without crashing or corrupting memory. psql:comprehensive_nested_statements_test_v5.sql:780: NOTICE: table "stress_table" does not exist, skipping DROP TABLE CREATE TABLE INSERT 0 100 CREATE FUNCTION QUERY PLAN ------------------------------------------------------------------------ Result (actual rows=1.00 loops=1) Buffers: shared hit=59 Planning Time: 0.020 ms Execution Time: 2.370 ms Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 1 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.019 ms (3.6%) Nested Statement #2 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 2 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 2) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.234 ms (44.1%) Nested Statement #3 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 3 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 3) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.014 ms (2.7%) Nested Statement #4 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 4 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 4) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.008 ms (1.4%) Nested Statement #5 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 5 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 5) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.006 ms (1.2%) Nested Statement #6 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 6 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 6) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.006 ms (1.1%) Nested Statement #7 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 7 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 7) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.007 ms (1.2%) Nested Statement #8 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 8 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 8) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.006 ms (1.0%) Nested Statement #9 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 9 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 9) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.006 ms (1.1%) Nested Statement #10 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 10 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 10) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.006 ms (1.1%) Nested Statement #11 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 11 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 11) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statement #12 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 12 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 12) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.006 ms (1.1%) Nested Statement #13 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 13 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 13) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statement #14 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 14 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 14) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statement #15 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 15 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 15) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statement #16 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 16 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 16) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.006 ms (1.0%) Nested Statement #17 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 17 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 17) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statement #18 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 18 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 18) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statement #19 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 19 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 19) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.006 ms (1.1%) Nested Statement #20 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 20 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 20) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.007 ms (1.3%) Nested Statement #21 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 21 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 21) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.006 ms (1.1%) Nested Statement #22 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 22 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 22) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statement #23 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 23 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 23) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.006 ms (1.1%) Nested Statement #24 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 24 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 24) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statement #25 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 25 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 25) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.006 ms (1.1%) Nested Statement #26 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 26 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 26) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statement #27 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 27 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 27) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statement #28 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 28 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 28) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statement #29 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 29 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 29) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statement #30 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 30 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 30) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statement #31 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 31 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 31) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statement #32 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 32 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 32) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.006 ms (1.0%) Nested Statement #33 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 33 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 33) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statement #34 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 34 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 34) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statement #35 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 35 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 35) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statement #36 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 36 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 36) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statement #37 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 37 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 37) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statement #38 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 38 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 38) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.006 ms (1.0%) Nested Statement #39 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 39 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 39) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statement #40 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 40 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 40) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statement #41 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 41 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 41) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statement #42 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 42 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 42) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statement #43 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 43 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 43) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statement #44 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 44 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 44) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.006 ms (1.1%) Nested Statement #45 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 45 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 45) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.006 ms (1.1%) Nested Statement #46 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 46 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 46) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statement #47 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 47 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 47) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statement #48 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 48 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 48) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statement #49 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 49 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 49) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statement #50 (level 1): Query Text: SELECT COUNT(*) FROM stress_table WHERE id = 50 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on stress_table (actual rows=1.00 loops=1) Filter: (id = 50) Rows Removed by Filter: 99 Buffers: shared hit=1 Execution Time: 0.005 ms (1.0%) Nested Statements Summary: Total: 50 statements, max depth 1 Total Execution Time: 2.370 ms Total Nested Time: 0.529 ms (22.3% of total time) Slowest Statement: #2 (0.234 ms, 44.1%) (512 rows) Server healthy after stress: server_healthy ---------------- 1 (1 row) No memory leak after stress: name ------ (0 rows) TEST 19: 50 nested statements captured, server healthy, no leak ============================================================================ TEST 20: Execution Time Per Nested Statement ============================================================================ Purpose: Each nested statement shows its Execution Time when SUMMARY is enabled (default with ANALYZE). Uses query_instr->total. psql:comprehensive_nested_statements_test_v5.sql:862: NOTICE: table "et_test" does not exist, skipping DROP TABLE CREATE TABLE INSERT 0 2 CREATE FUNCTION Expected: Each nested statement shows "Execution Time: X.XXX ms" QUERY PLAN -------------------------------------------------------------------------- Result (actual time=2.448..2.449 rows=1.00 loops=1) Buffers: shared hit=16 Planning Time: 0.019 ms Execution Time: 2.565 ms Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM et_test Aggregate (actual time=0.017..0.018 rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on et_test (actual time=0.014..0.014 rows=2.00 loops=1) Buffers: shared hit=1 Execution Time: 0.019 ms (48.3%) Nested Statement #2 (level 1): Query Text: UPDATE et_test SET val = 'updated' WHERE id = 1 Update on et_test (actual time=0.020..0.020 rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on et_test (actual time=0.005..0.006 rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.021 ms (51.7%) Nested Statements Summary: Total: 2 statements, max depth 1 Total Execution Time: 2.565 ms Total Nested Time: 0.040 ms (1.6% of total time) Slowest Statement: #2 (0.021 ms, 51.7%) (30 rows) ============================================================================ TEST 21: Summary and Percentages Hidden with SUMMARY OFF ============================================================================ Purpose: When SUMMARY OFF is specified, the following are all hidden: - Per-statement Execution Time and percentage - Nested Statements Summary section (total, max depth, slowest) - Main query Planning Time and Execution Time This is consistent with how the main query hides its timing info. Expected: No Execution Time, no percentages, no Summary section QUERY PLAN --------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=4 Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM et_test Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on et_test (actual rows=2.00 loops=1) Buffers: shared hit=1 Nested Statement #2 (level 1): Query Text: UPDATE et_test SET val = 'updated' WHERE id = 1 Update on et_test (actual rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on et_test (actual rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 1 Buffers: shared hit=1 (20 rows) DROP FUNCTION DROP TABLE ============================================================================ TEST 22: Structured Output - JSON Format ============================================================================ Purpose: Nested plans are output as proper structured JSON with Node Type, Plans array, costs, timing, and execution time. psql:comprehensive_nested_statements_test_v5.sql:914: NOTICE: table "json_t" does not exist, skipping DROP TABLE CREATE TABLE INSERT 0 2 CREATE FUNCTION QUERY PLAN ------------------------------------------------------------------------- [ + { + "Plan": { + "Node Type": "Result", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.00, + "Total Cost": 0.26, + "Plan Rows": 1, + "Plan Width": 4, + "Actual Startup Time": 0.269, + "Actual Total Time": 0.269, + "Actual Rows": 1.00, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 16, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.018, + "Triggers": [ + ], + "Execution Time": 0.277, + "Nested Plans": [ + { + "Statement Number": 1, + "Nesting Level": 1, + "Is Trigger": false, + "Query Text": "SELECT COUNT(*) FROM json_t", + "Query": { + "Plan": { + "Node Type": "Aggregate", + "Strategy": "Plain", + "Partial Mode": "Simple", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 25.88, + "Total Cost": 25.89, + "Plan Rows": 1, + "Plan Width": 8, + "Actual Startup Time": 0.010, + "Actual Total Time": 0.011, + "Actual Rows": 1.00, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "json_t", + "Alias": "json_t", + "Startup Cost": 0.00, + "Total Cost": 22.70, + "Plan Rows": 1270, + "Plan Width": 0, + "Actual Startup Time": 0.007, + "Actual Total Time": 0.007, + "Actual Rows": 2.00, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Triggers": [ + ], + "Execution Time": 0.012, + "Execution Time Percentage": 44.0 + } + }, + { + "Statement Number": 2, + "Nesting Level": 1, + "Is Trigger": false, + "Query Text": "UPDATE json_t SET val = 'updated' WHERE id = 1",+ "Query": { + "Plan": { + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "json_t", + "Alias": "json_t", + "Startup Cost": 0.00, + "Total Cost": 25.88, + "Plan Rows": 0, + "Plan Width": 0, + "Actual Startup Time": 0.015, + "Actual Total Time": 0.015, + "Actual Rows": 0.00, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "json_t", + "Alias": "json_t", + "Startup Cost": 0.00, + "Total Cost": 25.88, + "Plan Rows": 6, + "Plan Width": 38, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.003, + "Actual Rows": 1.00, + "Actual Loops": 1, + "Disabled": false, + "Filter": "(id = 1)", + "Rows Removed by Filter": 1, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Triggers": [ + ], + "Execution Time": 0.015, + "Execution Time Percentage": 56.0 + } + } + ], + "Nested Statements Summary": { + "Total Statements": 2, + "Direct Statements": 2, + "Trigger-Fired Statements": 0, + "Max Depth": 1, + "Total Execution Time": 0.277, + "Total Nested Time": 0.027, + "Slowest Statement Number": 2, + "Slowest Statement Time": 0.015 + } + } + ] (1 row) DROP FUNCTION DROP TABLE ============================================================================ TEST 23: Structured Output - XML Format ============================================================================ Purpose: Nested plans are output as proper XML with Node-Type, Plans elements, costs, timing, and execution time. psql:comprehensive_nested_statements_test_v5.sql:943: NOTICE: table "xml_t" does not exist, skipping DROP TABLE CREATE TABLE INSERT 0 2 CREATE FUNCTION QUERY PLAN -------------------------------------------------------------------------------- + + + Result + false + false + 0.00 + 0.26 + 1 + 4 + 0.204 + 0.204 + 1.00 + 1 + false + 16 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + 0.014 + + + 0.209 + + + 1 + 1 + false + SELECT COUNT(*) FROM xml_t + + + Aggregate + Plain + Simple + false + false + 25.88 + 25.89 + 1 + 8 + 0.009 + 0.009 + 1.00 + 1 + false + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + Seq Scan + Outer + false + false + xml_t + xml_t + 0.00 + 22.70 + 1270 + 0 + 0.006 + 0.006 + 2.00 + 1 + false + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + 0.010 + 46.9 + + + + 2 + 1 + false + UPDATE xml_t SET val = 'updated' WHERE id = 1+ + + ModifyTable + Update + false + false + xml_t + xml_t + 0.00 + 25.88 + 0 + 0 + 0.011 + 0.011 + 0.00 + 1 + false + 3 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + Seq Scan + Outer + false + false + xml_t + xml_t + 0.00 + 25.88 + 6 + 38 + 0.003 + 0.003 + 1.00 + 1 + false + (id = 1) + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + 0.011 + 53.1 + + + + + 2 + 2 + 0 + 1 + 0.209 + 0.021 + 2 + 0.011 + + + (1 row) DROP FUNCTION DROP TABLE ============================================================================ TEST 24: Structured Output - YAML Format ============================================================================ Purpose: Nested plans are output as proper YAML with Node Type, Plans list, costs, timing, and execution time. psql:comprehensive_nested_statements_test_v5.sql:972: NOTICE: table "yaml_t" does not exist, skipping DROP TABLE CREATE TABLE INSERT 0 2 CREATE FUNCTION QUERY PLAN -------------------------------------------------------------------- - Plan: + Node Type: "Result" + Parallel Aware: false + Async Capable: false + Startup Cost: 0.00 + Total Cost: 0.26 + Plan Rows: 1 + Plan Width: 4 + Actual Startup Time: 0.212 + Actual Total Time: 0.212 + Actual Rows: 1.00 + Actual Loops: 1 + Disabled: false + Shared Hit Blocks: 16 + Shared Read Blocks: 0 + Shared Dirtied Blocks: 0 + Shared Written Blocks: 0 + Local Hit Blocks: 0 + Local Read Blocks: 0 + Local Dirtied Blocks: 0 + Local Written Blocks: 0 + Temp Read Blocks: 0 + Temp Written Blocks: 0 + Planning: + Shared Hit Blocks: 0 + Shared Read Blocks: 0 + Shared Dirtied Blocks: 0 + Shared Written Blocks: 0 + Local Hit Blocks: 0 + Local Read Blocks: 0 + Local Dirtied Blocks: 0 + Local Written Blocks: 0 + Temp Read Blocks: 0 + Temp Written Blocks: 0 + Planning Time: 0.018 + Triggers: + Execution Time: 0.220 + Nested Plans: + - Statement Number: 1 + Nesting Level: 1 + Is Trigger: false + Query Text: "SELECT COUNT(*) FROM yaml_t" + Query: + - Plan: + Node Type: "Aggregate" + Strategy: "Plain" + Partial Mode: "Simple" + Parallel Aware: false + Async Capable: false + Startup Cost: 25.88 + Total Cost: 25.89 + Plan Rows: 1 + Plan Width: 8 + Actual Startup Time: 0.009 + Actual Total Time: 0.009 + Actual Rows: 1.00 + Actual Loops: 1 + Disabled: false + Shared Hit Blocks: 1 + Shared Read Blocks: 0 + Shared Dirtied Blocks: 0 + Shared Written Blocks: 0 + Local Hit Blocks: 0 + Local Read Blocks: 0 + Local Dirtied Blocks: 0 + Local Written Blocks: 0 + Temp Read Blocks: 0 + Temp Written Blocks: 0 + Plans: + - Node Type: "Seq Scan" + Parent Relationship: "Outer" + Parallel Aware: false + Async Capable: false + Relation Name: "yaml_t" + Alias: "yaml_t" + Startup Cost: 0.00 + Total Cost: 22.70 + Plan Rows: 1270 + Plan Width: 0 + Actual Startup Time: 0.006 + Actual Total Time: 0.006 + Actual Rows: 2.00 + Actual Loops: 1 + Disabled: false + Shared Hit Blocks: 1 + Shared Read Blocks: 0 + Shared Dirtied Blocks: 0 + Shared Written Blocks: 0 + Local Hit Blocks: 0 + Local Read Blocks: 0 + Local Dirtied Blocks: 0 + Local Written Blocks: 0 + Temp Read Blocks: 0 + Temp Written Blocks: 0 + Triggers: + Execution Time: 0.010 + Execution Time Percentage: 40.6 + + - Statement Number: 2 + Nesting Level: 1 + Is Trigger: false + Query Text: "UPDATE yaml_t SET val = 'updated' WHERE id = 1"+ Query: + - Plan: + Node Type: "ModifyTable" + Operation: "Update" + Parallel Aware: false + Async Capable: false + Relation Name: "yaml_t" + Alias: "yaml_t" + Startup Cost: 0.00 + Total Cost: 25.88 + Plan Rows: 0 + Plan Width: 0 + Actual Startup Time: 0.014 + Actual Total Time: 0.014 + Actual Rows: 0.00 + Actual Loops: 1 + Disabled: false + Shared Hit Blocks: 3 + Shared Read Blocks: 0 + Shared Dirtied Blocks: 0 + Shared Written Blocks: 0 + Local Hit Blocks: 0 + Local Read Blocks: 0 + Local Dirtied Blocks: 0 + Local Written Blocks: 0 + Temp Read Blocks: 0 + Temp Written Blocks: 0 + Plans: + - Node Type: "Seq Scan" + Parent Relationship: "Outer" + Parallel Aware: false + Async Capable: false + Relation Name: "yaml_t" + Alias: "yaml_t" + Startup Cost: 0.00 + Total Cost: 25.88 + Plan Rows: 6 + Plan Width: 38 + Actual Startup Time: 0.003 + Actual Total Time: 0.003 + Actual Rows: 1.00 + Actual Loops: 1 + Disabled: false + Filter: "(id = 1)" + Rows Removed by Filter: 1 + Shared Hit Blocks: 1 + Shared Read Blocks: 0 + Shared Dirtied Blocks: 0 + Shared Written Blocks: 0 + Local Hit Blocks: 0 + Local Read Blocks: 0 + Local Dirtied Blocks: 0 + Local Written Blocks: 0 + Temp Read Blocks: 0 + Temp Written Blocks: 0 + Triggers: + Execution Time: 0.014 + Execution Time Percentage: 59.4 + + Nested Statements Summary: + Total Statements: 2 + Direct Statements: 2 + Trigger-Fired Statements: 0 + Max Depth: 1 + Total Execution Time: 0.220 + Total Nested Time: 0.024 + Slowest Statement Number: 2 + Slowest Statement Time: 0.014 (1 row) DROP FUNCTION DROP TABLE ============================================================================ TEST 25: SHOW_NESTED - Limit Displayed Plans ============================================================================ Purpose: SHOW_NESTED N controls how many nested plans are displayed. All statements are still captured internally for the summary, but only the first N plans are shown in the output. What this tests: - A function with 5 nested statements - SHOW_NESTED 2 shows only first 2 plans - Header shows "(showing 2 of 5)" - Summary still reflects all 5 statements psql:comprehensive_nested_statements_test_v5.sql:1008: NOTICE: table "sn_test" does not exist, skipping DROP TABLE CREATE TABLE INSERT 0 10 CREATE FUNCTION QUERY PLAN ------------------------------------------------------------------ Result (actual rows=1.00 loops=1) Buffers: shared hit=14 Planning Time: 0.018 ms Execution Time: 0.250 ms Nested Plans (showing 2 of 5): Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM sn_test WHERE id = 1 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on sn_test (actual rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.012 ms (49.3%) Nested Statement #2 (level 1): Query Text: SELECT COUNT(*) FROM sn_test WHERE id = 2 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on sn_test (actual rows=1.00 loops=1) Filter: (id = 2) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.004 ms (15.9%) Nested Statements Summary: Total: 5 statements, max depth 1 Total Execution Time: 0.250 ms Total Nested Time: 0.024 ms (9.4% of total time) Slowest Statement: #1 (0.012 ms, 49.3%) (32 rows) ============================================================================ TEST 26: SHOW_NESTED 0 - Summary Only (No Plans Displayed) ============================================================================ Purpose: SHOW_NESTED 0 means "capture all but display none". Only the summary is shown — useful for getting a quick overview of a complex function without pages of plan output. What this tests: - No individual plans are displayed - Header shows "(showing 0 of 5)" - Summary shows total count, max depth, timing, and slowest - User can then re-run with a higher SHOW_NESTED to see details QUERY PLAN ----------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=5 Planning Time: 0.022 ms Execution Time: 0.282 ms Nested Plans (showing 0 of 5): Nested Statements Summary: Total: 5 statements, max depth 1 Total Execution Time: 0.282 ms Total Nested Time: 0.171 ms (60.7% of total time) Slowest Statement: 0.078 ms (45.5%) (12 rows) ============================================================================ TEST 27: SHOW_NESTED Validation ============================================================================ Purpose: SHOW_NESTED requires NESTED_STATEMENTS to be enabled. Using it alone should produce a clear error message. psql:comprehensive_nested_statements_test_v5.sql:1061: ERROR: EXPLAIN option SHOW_NESTED requires NESTED_STATEMENTS ============================================================================ TEST 28: Nested Statements Summary with Percentages ============================================================================ Purpose: The summary shows statistics about all nested statements: - Total count and max nesting depth - Total Nested Time with % of main Execution Time - Slowest statement with % of nested total Per-statement Execution Time shows % of nested total for level-1 statements only. Deeper levels show absolute time (their time is already included in their level-1 parent). Percentage bases: - Per-statement %: statement_time / total_nested_time (level 1 only) - Summary Total %: total_nested_time / main_execution_time - Slowest %: slowest_time / total_nested_time (level 1 only) QUERY PLAN ------------------------------------------------------------------ Result (actual rows=1.00 loops=1) Buffers: shared hit=5 Planning Time: 0.012 ms Execution Time: 0.395 ms Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM sn_test WHERE id = 1 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on sn_test (actual rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.236 ms (94.8%) Nested Statement #2 (level 1): Query Text: SELECT COUNT(*) FROM sn_test WHERE id = 2 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on sn_test (actual rows=1.00 loops=1) Filter: (id = 2) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.004 ms (1.7%) Nested Statement #3 (level 1): Query Text: SELECT COUNT(*) FROM sn_test WHERE id = 3 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on sn_test (actual rows=1.00 loops=1) Filter: (id = 3) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.003 ms (1.0%) Nested Statement #4 (level 1): Query Text: SELECT COUNT(*) FROM sn_test WHERE id = 4 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on sn_test (actual rows=1.00 loops=1) Filter: (id = 4) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.9%) Nested Statement #5 (level 1): Query Text: SELECT COUNT(*) FROM sn_test WHERE id = 5 Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on sn_test (actual rows=1.00 loops=1) Filter: (id = 5) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.004 ms (1.6%) Nested Statements Summary: Total: 5 statements, max depth 1 Total Execution Time: 0.395 ms Total Nested Time: 0.249 ms (62.9% of total time) Slowest Statement: #1 (0.236 ms, 94.8%) (62 rows) DROP FUNCTION DROP TABLE ============================================================================ TEST 29: Statement Timeout — Hooks Cleaned Up After Timeout ============================================================================ Purpose: A function with multiple statements times out mid-execution. The first statement was captured internally but the timeout aborts the entire EXPLAIN before output is produced. PG_FINALLY cleanup frees the partial data correctly. After the error, the server continues working normally. CREATE FUNCTION CREATE FUNCTION SET psql:comprehensive_nested_statements_test_v5.sql:1122: ERROR: canceling statement due to statement timeout CONTEXT: SQL statement "SELECT pg_sleep(5)" PL/pgSQL function timeout_inner() line 3 at PERFORM SQL statement "SELECT timeout_inner()" PL/pgSQL function timeout_outer() line 5 at PERFORM RESET After timeout - server still works: post_timeout_ok ----------------- 1 (1 row) DROP FUNCTION DROP FUNCTION ============================================================================ TEST 30: Dynamic SQL — Query Text Captured Correctly ============================================================================ Purpose: When a function uses EXECUTE (dynamic SQL), the Query Text field shows the actual executed SQL string, not the PL/pgSQL expression that built it. psql:comprehensive_nested_statements_test_v5.sql:1144: NOTICE: table "dyn_t" does not exist, skipping DROP TABLE CREATE TABLE INSERT 0 2 CREATE FUNCTION QUERY PLAN --------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=22 Planning Time: 0.017 ms Execution Time: 0.739 ms Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM dyn_t Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on dyn_t (actual rows=2.00 loops=1) Buffers: shared hit=1 Execution Time: 0.011 ms (39.1%) Nested Statement #2 (level 1): Query Text: UPDATE dyn_t SET val = 'dynamic' WHERE id = '1' Update on dyn_t (actual rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on dyn_t (actual rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.016 ms (60.9%) Nested Statements Summary: Total: 2 statements, max depth 1 Total Execution Time: 0.739 ms Total Nested Time: 0.027 ms (3.6% of total time) Slowest Statement: #2 (0.016 ms, 60.9%) (30 rows) DROP FUNCTION DROP TABLE ============================================================================ TEST 31: Infinite Recursion — Graceful Error and Cleanup ============================================================================ Purpose: A function that calls itself infinitely triggers "stack depth limit exceeded". After this error, the server must not crash and hooks must be cleaned up. How PostgreSQL prevents infinite recursion: - Every function call adds a "frame" to the OS call stack - PostgreSQL has a GUC: max_stack_depth (default 2MB) - The function check_stack_depth() is called before each PL/pgSQL function entry to check if the stack is getting too large - When the stack exceeds max_stack_depth, PostgreSQL throws: ERROR: stack depth limit exceeded - This happens after roughly 100-200 nested calls What this tests for NESTED_STATEMENTS: - The error fires while our hooks are installed - Some nested plans may have been partially captured in memory - PG_TRY/PG_FINALLY must clean up: remove hooks, free memory - After the error, the next query must work normally CREATE FUNCTION psql:comprehensive_nested_statements_test_v5.sql:1196: ERROR: stack depth limit exceeded HINT: Increase the configuration parameter "max_stack_depth" (currently 2048kB), after ensuring the platform's stack depth limit is adequate. CONTEXT: SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM SQL statement "SELECT inf_func()" PL/pgSQL function inf_func() line 3 at PERFORM After recursion error - server still works: post_recursion_ok ------------------- 1 (1 row) DROP FUNCTION ============================================================================ TEST 32: auto_explain Compatibility — Hooks Coexist ============================================================================ Purpose: auto_explain uses the same executor hooks we use. Both must coexist without crashes or duplicate output. Hook chaining (prev_hook saved/restored) must work. psql:comprehensive_nested_statements_test_v5.sql:1216: NOTICE: table "ae_t" does not exist, skipping DROP TABLE CREATE TABLE INSERT 0 1 CREATE FUNCTION LOAD SET SET SET QUERY PLAN ----------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=8 Planning Time: 0.017 ms Execution Time: 0.547 ms Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM ae_t Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on ae_t (actual rows=1.00 loops=1) Buffers: shared hit=1 Execution Time: 0.012 ms (100.0%) Nested Statements Summary: Total: 1 statements, max depth 1 Total Execution Time: 0.547 ms Total Nested Time: 0.012 ms (2.2% of total time) Slowest Statement: #1 (0.012 ms, 100.0%) (20 rows) RESET RESET RESET DROP FUNCTION DROP TABLE ============================================================================ TEST 33: Deep Nesting — 20 Levels Without Crash ============================================================================ Purpose: Verify deep function call chains do not crash or corrupt memory. Uses 20 levels (100 would hit stack limit). CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION QUERY PLAN ----------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=60 Planning Time: 0.023 ms Execution Time: 0.485 ms (4 rows) DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION ============================================================================ TEST 34: All EXPLAIN Options Combined with SHOW_NESTED ============================================================================ Purpose: Every option together — NESTED_STATEMENTS, VERBOSE, BUFFERS, WAL, IO, SETTINGS, SHOW_NESTED 3. Verifies no conflicts. Note: MEMORY is not inherited (planning handled by SPI). psql:comprehensive_nested_statements_test_v5.sql:1288: NOTICE: table "combo_t" does not exist, skipping DROP TABLE CREATE TABLE INSERT 0 3 CREATE FUNCTION SET QUERY PLAN ----------------------------------------------------------------------------------------------------------------------- Result (cost=0.00..0.26 rows=1 width=4) (actual time=0.889..0.889 rows=1.00 loops=1) Output: combo_f() Buffers: shared hit=22 WAL: records=2 bytes=132 Planning Time: 0.016 ms Execution Time: 0.896 ms Nested Plans (showing 3 of 5): Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM combo_t Aggregate (cost=25.88..25.89 rows=1 width=8) (actual time=0.011..0.012 rows=1.00 loops=1) Output: count(*) Buffers: shared hit=1 -> Seq Scan on public.combo_t (cost=0.00..22.70 rows=1270 width=0) (actual time=0.007..0.008 rows=3.00 loops=1) Output: id, val Prefetch: avg=1.00 max=1 capacity=94 Buffers: shared hit=1 Execution Time: 0.012 ms (27.6%) Nested Statement #2 (level 1): Query Text: UPDATE combo_t SET val = 'x' WHERE id = 1 Update on public.combo_t (cost=0.00..25.88 rows=0 width=0) (actual time=0.020..0.020 rows=0.00 loops=1) Buffers: shared hit=3 WAL: records=1 bytes=69 -> Seq Scan on public.combo_t (cost=0.00..25.88 rows=6 width=38) (actual time=0.006..0.007 rows=1.00 loops=1) Output: 'x'::text, ctid Filter: (combo_t.id = 1) Rows Removed by Filter: 2 Prefetch: avg=1.00 max=1 capacity=94 Buffers: shared hit=1 Execution Time: 0.021 ms (46.7%) Nested Statement #3 (level 1): Query Text: DELETE FROM combo_t WHERE id = 99 Delete on public.combo_t (cost=0.00..25.88 rows=0 width=0) (actual time=0.003..0.003 rows=0.00 loops=1) Buffers: shared hit=1 -> Seq Scan on public.combo_t (cost=0.00..25.88 rows=6 width=6) (actual time=0.003..0.003 rows=0.00 loops=1) Output: ctid Filter: (combo_t.id = 99) Rows Removed by Filter: 3 Prefetch: avg=1.00 max=1 capacity=94 Buffers: shared hit=1 Execution Time: 0.003 ms (6.8%) Nested Statements Summary: Total: 5 statements, max depth 1 Total Execution Time: 0.896 ms Total Nested Time: 0.045 ms (5.0% of total time) Slowest Statement: #2 (0.021 ms, 46.7%) (50 rows) RESET DROP FUNCTION DROP TABLE ============================================================================ TEST 35: Performance — Zero Overhead When Feature Disabled ============================================================================ Purpose: When NESTED_STATEMENTS is not used, there should be zero overhead. Hooks are only installed during EXPLAIN with NESTED_STATEMENTS — regular queries are unaffected. psql:comprehensive_nested_statements_test_v5.sql:1324: NOTICE: table "perf_t" does not exist, skipping DROP TABLE CREATE TABLE INSERT 0 1000 CREATE FUNCTION Timing is on. Without NESTED_STATEMENTS (baseline): QUERY PLAN ---------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=15 dirtied=1 written=1 (2 rows) Time: 0.715 ms With NESTED_STATEMENTS: QUERY PLAN ---------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=6 Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM perf_t Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=6 -> Seq Scan on perf_t (actual rows=1000.00 loops=1) Buffers: shared hit=6 (11 rows) Time: 1.295 ms Timing is off. DROP FUNCTION DROP TABLE ============================================================================ TEST 36: Interpreting Total Nested Time Percentage ============================================================================ Purpose: Demonstrate how the "Total Nested Time (X% of total time)" helps users decide WHERE to optimize. The percentage answers: "How much of my function execution time is spent in SQL vs PL/pgSQL overhead?" Interpretation guide: High % (80-100%): Most time is in SQL queries. → Action: Optimize the SQL (add indexes, rewrite queries) Low % (0-20%): SQL is fast, PL/pgSQL overhead dominates. → Action: Reduce function complexity (fewer loops, less logic) Medium % (20-80%): Mixed — both SQL and overhead contribute. → Action: Look at per-statement % to find the slow query --- Function A: SQL-heavy (big scan, minimal PL/pgSQL logic) --- psql:comprehensive_nested_statements_test_v5.sql:1372: NOTICE: table "big_table" does not exist, skipping DROP TABLE CREATE TABLE INSERT 0 10000 CREATE FUNCTION QUERY PLAN ----------------------------------------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=78 dirtied=1 written=1 Planning Time: 0.017 ms Execution Time: 1.222 ms Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT SUM(val) FROM big_table WHERE category = 'cat_5' Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=64 dirtied=1 written=1 -> Seq Scan on big_table (actual rows=1000.00 loops=1) Filter: (category = 'cat_5'::text) Rows Removed by Filter: 9000 Buffers: shared hit=64 dirtied=1 written=1 Execution Time: 1.087 ms (100.0%) Nested Statements Summary: Total: 1 statements, max depth 1 Total Execution Time: 1.222 ms Total Nested Time: 1.087 ms (89.0% of total time) Slowest Statement: #1 (1.087 ms, 100.0%) (22 rows) --- Function B: Overhead-heavy (trivial SQL, lots of PL/pgSQL work) --- CREATE FUNCTION QUERY PLAN ---------------------------------------------------- Result (actual rows=1.00 loops=1) Buffers: shared hit=9 Planning Time: 0.018 ms Execution Time: 0.154 ms Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT 1 Result (actual rows=1.00 loops=1) Execution Time: 0.002 ms (100.0%) Nested Statements Summary: Total: 1 statements, max depth 1 Total Execution Time: 0.154 ms Total Nested Time: 0.002 ms (1.2% of total time) Slowest Statement: #1 (0.002 ms, 100.0%) (17 rows) Compare the "Total Nested Time (X% of total time)" between the two: - sql_heavy_func: high % → SQL is the bottleneck - overhead_heavy_func: low % → PL/pgSQL overhead is the bottleneck DROP FUNCTION DROP FUNCTION DROP TABLE ============================================================================ TEST 37: Multiple Triggers on Separate Tables ============================================================================ Purpose: Verify trigger detection works correctly when a function touches multiple tables, each with its own trigger. What this tests: - Triggers on different tables are all detected - Total Trigger Time accumulates across all trigger-fired statements - Summary correctly counts all trigger-fired vs direct statements - Per-statement percentages only apply to level-1 direct statements psql:comprehensive_nested_statements_test_v5.sql:1437: NOTICE: table "mt_orders" does not exist, skipping DROP TABLE psql:comprehensive_nested_statements_test_v5.sql:1438: NOTICE: table "mt_inventory" does not exist, skipping DROP TABLE psql:comprehensive_nested_statements_test_v5.sql:1439: NOTICE: table "mt_audit" does not exist, skipping DROP TABLE CREATE TABLE CREATE TABLE CREATE TABLE INSERT 0 2 CREATE FUNCTION CREATE TRIGGER CREATE FUNCTION CREATE TRIGGER CREATE FUNCTION Expected (start-time order): #1 (level 1): INSERT INTO mt_orders — direct (starts first) #2 (level 2, trigger): INSERT INTO mt_audit — from orders trigger #3 (level 1): UPDATE mt_inventory — direct #4 (level 2, trigger): INSERT INTO mt_audit — from inventory trigger #5 (level 1): SELECT COUNT(*) — direct Summary: 5 statements (3 direct, 2 trigger-fired) Total Trigger Time accumulates both trigger statements QUERY PLAN ------------------------------------------------------------------------------------------- Result (actual time=1.710..1.710 rows=1.00 loops=1) Buffers: shared hit=89 dirtied=2 written=2 Planning Time: 0.018 ms Execution Time: 1.719 ms Nested Plans: Nested Statement #1 (level 1): Query Text: INSERT INTO mt_orders VALUES (1, p_item, p_qty) Insert on mt_orders (actual time=0.398..0.399 rows=0.00 loops=1) Buffers: shared dirtied=1 written=1 -> Result (actual time=0.001..0.001 rows=1.00 loops=1) Trigger mt_orders_audit: time=0.663 calls=1 Execution Time: 1.063 ms (90.8%) Nested Statement #2 (level 2, trigger): Query Text: INSERT INTO mt_audit VALUES ('order: ' || NEW.item || ' x' || NEW.qty) Insert on mt_audit (actual time=0.409..0.409 rows=0.00 loops=1) Buffers: shared dirtied=1 written=1 -> Result (actual time=0.000..0.001 rows=1.00 loops=1) Execution Time: 0.410 ms Nested Statement #3 (level 1): Query Text: UPDATE mt_inventory SET stock = stock - p_qty WHERE item = p_item Update on mt_inventory (actual time=0.015..0.015 rows=0.00 loops=1) Buffers: shared hit=4 -> Seq Scan on mt_inventory (actual time=0.006..0.007 rows=1.00 loops=1) Filter: (item = 'widget'::text) Rows Removed by Filter: 1 Buffers: shared hit=1 Trigger mt_inventory_audit: time=0.087 calls=1 Execution Time: 0.103 ms (8.8%) Nested Statement #4 (level 2, trigger): Query Text: INSERT INTO mt_audit VALUES ('stock: ' || NEW.item || ' now ' || NEW.stock) Insert on mt_audit (actual time=0.003..0.003 rows=0.00 loops=1) Buffers: shared hit=1 -> Result (actual time=0.000..0.000 rows=1.00 loops=1) Execution Time: 0.003 ms Nested Statement #5 (level 1): Query Text: SELECT COUNT(*) FROM mt_audit Aggregate (actual time=0.004..0.005 rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on mt_audit (actual time=0.002..0.002 rows=2.00 loops=1) Buffers: shared hit=1 Execution Time: 0.005 ms (0.4%) Nested Statements Summary: Total: 5 statements (3 direct, 2 trigger-fired), max depth 2 Total Execution Time: 1.719 ms Total Nested Time: 1.171 ms (68.2% of total time) Total Trigger Time: 0.413 ms (35.3% of nested time) Slowest Statement: #1 (1.063 ms, 90.8%) (54 rows) DROP FUNCTION DROP TRIGGER DROP FUNCTION DROP TRIGGER DROP FUNCTION DROP TABLE ============================================================================ TEST 38: Direct DML with Triggers (No Function Wrapper) ============================================================================ Purpose: NESTED_STATEMENTS is not just for functions — it reveals trigger activity on any DML statement. This helps DBAs understand why an INSERT/UPDATE/DELETE is slow when triggers are involved, without needing to wrap anything in a function. What this tests: - Direct UPDATE with BEFORE trigger (validation + logging) - Direct UPDATE with AFTER trigger (audit logging) - Cascading triggers (trigger inserts into table with its own trigger) - Both BEFORE and AFTER triggers detected via GetMyTriggerDepth() psql:comprehensive_nested_statements_test_v5.sql:1520: NOTICE: table "emp" does not exist, skipping DROP TABLE psql:comprehensive_nested_statements_test_v5.sql:1521: NOTICE: table "emp_audit" does not exist, skipping DROP TABLE psql:comprehensive_nested_statements_test_v5.sql:1522: NOTICE: table "notifications" does not exist, skipping DROP TABLE CREATE TABLE CREATE TABLE CREATE TABLE INSERT 0 3 CREATE FUNCTION CREATE TRIGGER CREATE FUNCTION CREATE TRIGGER CREATE FUNCTION CREATE TRIGGER --- Part A: Accepted UPDATE (BEFORE passes, AFTER fires) --- Expected: All statements annotated as (trigger) - AFTER trigger on emp_audit fires cascading trigger on notifications QUERY PLAN --------------------------------------------------------------------------------------------------- Update on emp (actual time=0.099..0.099 rows=0.00 loops=1) Buffers: shared hit=13 -> Index Scan using emp_pkey on emp (actual time=0.006..0.007 rows=1.00 loops=1) Index Cond: (id = 1) Index Searches: 1 Buffers: shared hit=2 Planning: Buffers: shared hit=4 Planning Time: 0.468 ms Trigger emp_audit_trigger: time=1.028 calls=1 Trigger emp_validate: time=0.077 calls=1 Execution Time: 1.152 ms Nested Plans: Nested Statement #1 (level 1, trigger): Query Text: INSERT INTO emp_audit VALUES (NEW.id, 'ACCEPTED', OLD.salary, NEW.salary) Insert on emp_audit (actual time=0.480..0.480 rows=0.00 loops=1) Buffers: shared dirtied=1 written=1 -> Result (actual time=0.001..0.001 rows=1.00 loops=1) Trigger audit_notify_trigger: time=0.476 calls=1 Execution Time: 0.957 ms Nested Statement #2 (level 2, trigger): Query Text: INSERT INTO notifications VALUES ('audit: ' || NEW.action || ' emp ' || NEW.emp_id) Insert on notifications (actual time=0.360..0.360 rows=0.00 loops=1) Buffers: shared dirtied=1 written=1 -> Result (actual time=0.000..0.001 rows=1.00 loops=1) Execution Time: 0.361 ms Nested Statements Summary: Total: 2 statements (0 direct, 2 trigger-fired), max depth 2 Total Execution Time: 1.152 ms Total Trigger Time: 1.318 ms Slowest Statement: #1 (0.957 ms) (35 rows) --- Part B: Rejected UPDATE (BEFORE trigger rejects, logs, no AFTER) --- Expected: BEFORE trigger INSERT into emp_audit detected as (trigger) - Cascading notification trigger also fires - No AFTER trigger (update was rejected by BEFORE returning NULL) QUERY PLAN --------------------------------------------------------------------------------------------------- Update on emp (actual time=0.154..0.154 rows=0.00 loops=1) Buffers: shared hit=7 -> Index Scan using emp_pkey on emp (actual time=0.014..0.015 rows=1.00 loops=1) Index Cond: (id = 2) Index Searches: 1 Buffers: shared hit=2 Planning Time: 0.060 ms Trigger emp_validate: time=0.125 calls=1 Execution Time: 0.169 ms Nested Plans: Nested Statement #1 (level 1, trigger): Query Text: INSERT INTO emp_audit VALUES (NEW.id, 'REJECTED', OLD.salary, NEW.salary) Insert on emp_audit (actual time=0.006..0.006 rows=0.00 loops=1) Buffers: shared hit=1 -> Result (actual time=0.000..0.001 rows=1.00 loops=1) Trigger audit_notify_trigger: time=0.055 calls=1 Execution Time: 0.062 ms Nested Statement #2 (level 2, trigger): Query Text: INSERT INTO notifications VALUES ('audit: ' || NEW.action || ' emp ' || NEW.emp_id) Insert on notifications (actual time=0.002..0.002 rows=0.00 loops=1) Buffers: shared hit=1 -> Result (actual time=0.000..0.000 rows=1.00 loops=1) Execution Time: 0.003 ms Nested Statements Summary: Total: 2 statements (0 direct, 2 trigger-fired), max depth 2 Total Execution Time: 0.169 ms Total Trigger Time: 0.064 ms Slowest Statement: #1 (0.062 ms) (32 rows) DROP TABLE DROP TABLE DROP TABLE DROP FUNCTION DROP FUNCTION DROP FUNCTION ============================================================================ TEST 39: BEFORE and AFTER Triggers in Function Context ============================================================================ Purpose: Verify trigger detection works correctly when DML with BEFORE and AFTER triggers is executed inside a function. Both trigger types should be annotated, and direct function statements should NOT be annotated. What this tests: - Function executes INSERT (fires BEFORE + AFTER triggers) - Function also executes a plain SELECT (not a trigger) - Trigger statements: annotated with (trigger), no percentage - Direct level-1 statements: show percentage, no (trigger) annotation - Summary correctly separates direct vs trigger-fired counts psql:comprehensive_nested_statements_test_v5.sql:1613: NOTICE: table "t39_data" does not exist, skipping DROP TABLE psql:comprehensive_nested_statements_test_v5.sql:1614: NOTICE: table "t39_log" does not exist, skipping DROP TABLE CREATE TABLE CREATE TABLE CREATE FUNCTION CREATE TRIGGER CREATE FUNCTION CREATE TRIGGER CREATE FUNCTION Expected: - BEFORE trigger INSERTs: (trigger) annotation - AFTER trigger INSERTs: (trigger) annotation - INSERT INTO t39_data: direct (level 1) - SELECT COUNT(*): direct (level 1) with percentage - Summary: mix of direct and trigger-fired QUERY PLAN ------------------------------------------------------------------------------------------ Result (actual time=2.401..2.402 rows=1.00 loops=1) Buffers: shared hit=65 read=1 dirtied=4 written=3 Planning Time: 0.018 ms Execution Time: 2.497 ms Nested Plans: Nested Statement #1 (level 1): Query Text: INSERT INTO t39_data VALUES (1, 'hello', NULL) Insert on t39_data (actual time=1.869..1.869 rows=0.00 loops=1) Buffers: shared hit=35 read=1 dirtied=4 written=3 -> Result (actual time=0.001..0.001 rows=1.00 loops=1) Trigger t39_after: time=0.144 calls=1 Trigger t39_before: time=0.524 calls=1 Execution Time: 2.015 ms (93.1%) Nested Statement #2 (level 2, trigger): Query Text: INSERT INTO t39_log VALUES ('before: setting timestamp for id=' || NEW.id) Insert on t39_log (actual time=0.394..0.395 rows=0.00 loops=1) Buffers: shared dirtied=1 written=1 -> Result (actual time=0.000..0.000 rows=1.00 loops=1) Execution Time: 0.395 ms Nested Statement #3 (level 2, trigger): Query Text: INSERT INTO t39_log VALUES ('after: row inserted id=' || NEW.id) Insert on t39_log (actual time=0.004..0.004 rows=0.00 loops=1) Buffers: shared hit=1 -> Result (actual time=0.001..0.001 rows=1.00 loops=1) Execution Time: 0.004 ms Nested Statement #4 (level 1): Query Text: INSERT INTO t39_data VALUES (2, 'world', NULL) Insert on t39_data (actual time=0.090..0.090 rows=0.00 loops=1) Buffers: shared hit=4 -> Result (actual time=0.000..0.000 rows=1.00 loops=1) Trigger t39_after: time=0.050 calls=1 Trigger t39_before: time=0.080 calls=1 Execution Time: 0.141 ms (6.5%) Nested Statement #5 (level 2, trigger): Query Text: INSERT INTO t39_log VALUES ('before: setting timestamp for id=' || NEW.id) Insert on t39_log (actual time=0.003..0.003 rows=0.00 loops=1) Buffers: shared hit=1 -> Result (actual time=0.000..0.000 rows=1.00 loops=1) Execution Time: 0.003 ms Nested Statement #6 (level 2, trigger): Query Text: INSERT INTO t39_log VALUES ('after: row inserted id=' || NEW.id) Insert on t39_log (actual time=0.002..0.002 rows=0.00 loops=1) Buffers: shared hit=1 -> Result (actual time=0.000..0.000 rows=1.00 loops=1) Execution Time: 0.002 ms Nested Statement #7 (level 1): Query Text: SELECT COUNT(*) FROM t39_log Aggregate (actual time=0.009..0.009 rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on t39_log (actual time=0.006..0.006 rows=4.00 loops=1) Buffers: shared hit=1 Execution Time: 0.009 ms (0.4%) Nested Statements Summary: Total: 7 statements (3 direct, 4 trigger-fired), max depth 2 Total Execution Time: 2.497 ms Total Nested Time: 2.166 ms (86.7% of total time) Total Trigger Time: 0.405 ms (18.7% of nested time) Slowest Statement: #1 (2.015 ms, 93.1%) (67 rows) DROP TABLE DROP TABLE DROP FUNCTION DROP FUNCTION DROP FUNCTION ============================================================================ TEST 40: Query Identifier Integration (pg_stat_statements) ============================================================================ Purpose: When VERBOSE and compute_query_id are enabled, each nested statement shows its Query Identifier. This allows users to correlate nested plans with pg_stat_statements entries. What this tests: - Each nested statement shows Query Identifier with VERBOSE - Repeated queries share the same Query Identifier - Trigger-fired statements have their own Query Identifier - Users can look up any nested query in pg_stat_statements SET psql:comprehensive_nested_statements_test_v5.sql:1692: NOTICE: table "qid_orders" does not exist, skipping DROP TABLE psql:comprehensive_nested_statements_test_v5.sql:1693: NOTICE: table "qid_audit" does not exist, skipping DROP TABLE CREATE TABLE CREATE TABLE INSERT 0 2 CREATE FUNCTION CREATE TRIGGER CREATE FUNCTION CREATE FUNCTION Expected: Each nested statement shows Query Identifier. Repeated queries (UPDATE, trigger INSERT, PERFORM) share the same ID. QUERY PLAN ------------------------------------------------------------------------------------------------------------ Result (actual time=1.857..1.857 rows=1.00 loops=1) Output: qid_process_orders() Buffers: shared hit=120 dirtied=1 written=1 Query Identifier: 7816256256391490544 Planning Time: 0.034 ms Execution Time: 1.865 ms Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM qid_orders Aggregate (actual time=0.011..0.011 rows=1.00 loops=1) Output: count(*) Buffers: shared hit=1 -> Seq Scan on public.qid_orders (actual time=0.008..0.008 rows=2.00 loops=1) Output: id, item, total Buffers: shared hit=1 Query Identifier: 213668903401070912 Execution Time: 0.012 ms (1.1%) Nested Statement #2 (level 1): Query Text: SELECT qid_apply_discount(1, 10) Result (actual time=0.991..0.992 rows=1.00 loops=1) Output: qid_apply_discount(1, '10'::numeric) Buffers: shared hit=81 dirtied=1 written=1 Query Identifier: 1449714415148747949 Execution Time: 0.992 ms (90.7%) Nested Statement #3 (level 2): Query Text: UPDATE qid_orders SET total = total * (1 - p_pct/100) WHERE id = p_id Update on public.qid_orders (actual time=0.023..0.023 rows=0.00 loops=1) Buffers: shared hit=5 -> Index Scan using qid_orders_pkey on public.qid_orders (actual time=0.005..0.006 rows=1.00 loops=1) Output: (total * 0.90000000000000000000), ctid Index Cond: (qid_orders.id = 1) Index Searches: 1 Buffers: shared hit=2 Query Identifier: -4236462531438235649 Trigger qid_audit_trig: time=0.648 calls=1 Execution Time: 0.673 ms Nested Statement #4 (level 3, trigger): Query Text: INSERT INTO qid_audit VALUES (NEW.id, TG_OP) Insert on public.qid_audit (actual time=0.527..0.528 rows=0.00 loops=1) Buffers: shared dirtied=1 written=1 -> Result (actual time=0.001..0.001 rows=1.00 loops=1) Output: 1, 'UPDATE'::text Query Identifier: 461021655627114973 Execution Time: 0.529 ms Nested Statement #5 (level 1): Query Text: SELECT qid_apply_discount(2, 20) Result (actual time=0.088..0.088 rows=1.00 loops=1) Output: qid_apply_discount(2, '20'::numeric) Buffers: shared hit=8 Query Identifier: 1449714415148747949 Execution Time: 0.089 ms (8.1%) Nested Statement #6 (level 2): Query Text: UPDATE qid_orders SET total = total * (1 - p_pct/100) WHERE id = p_id Update on public.qid_orders (actual time=0.011..0.011 rows=0.00 loops=1) Buffers: shared hit=5 -> Index Scan using qid_orders_pkey on public.qid_orders (actual time=0.004..0.004 rows=1.00 loops=1) Output: (total * 0.80000000000000000000), ctid Index Cond: (qid_orders.id = 2) Index Searches: 1 Buffers: shared hit=2 Query Identifier: -4236462531438235649 Trigger qid_audit_trig: time=0.024 calls=1 Execution Time: 0.035 ms Nested Statement #7 (level 3, trigger): Query Text: INSERT INTO qid_audit VALUES (NEW.id, TG_OP) Insert on public.qid_audit (actual time=0.002..0.002 rows=0.00 loops=1) Buffers: shared hit=1 -> Result (actual time=0.000..0.000 rows=1.00 loops=1) Output: 2, 'UPDATE'::text Query Identifier: 461021655627114973 Execution Time: 0.003 ms Nested Statements Summary: Total: 7 statements (5 direct, 2 trigger-fired), max depth 3 Total Execution Time: 1.865 ms Total Nested Time: 1.094 ms (58.6% of total time) Total Trigger Time: 0.531 ms (48.6% of nested time) Slowest Statement: #2 (0.992 ms, 90.7%) (86 rows) RESET DROP TABLE DROP TABLE DROP FUNCTION DROP FUNCTION DROP FUNCTION ============================================================================ TEST 41: Level-1 Only Counting — No Double-Counting ============================================================================ Purpose: Demonstrate that Total Nested Time sums only level-1 statements. Deeper levels show absolute time but are NOT added to the total, because their time is already included in their level-1 parent. Setup: 3-level PERFORM chain, each level does pg_sleep(0.01) = ~10ms. - Level 1: own sleep (10ms) + PERFORM level2 (~20ms) = ~30ms - Level 2: own sleep (10ms) + PERFORM level3 (~10ms) = ~20ms - Level 3: own sleep (10ms) = ~10ms Key indicators: - Level-1 statements show percentage - Level-2 and level-3 statements show time only (no %) - Total Nested Time ≤ Total Execution Time (always) CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION QUERY PLAN --------------------------------------------------------- Result (actual time=34.196..34.196 rows=1.00 loops=1) Buffers: shared hit=18 Planning Time: 0.018 ms Execution Time: 34.204 ms Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT pg_sleep(0.01) Result (actual time=10.415..10.416 rows=1.00 loops=1) Execution Time: 10.420 ms (30.6%) Nested Statement #2 (level 1): Query Text: SELECT dc_level2() Result (actual time=23.590..23.590 rows=1.00 loops=1) Buffers: shared hit=6 Execution Time: 23.590 ms (69.4%) Nested Statement #3 (level 2): Query Text: SELECT pg_sleep(0.01) Result (actual time=11.014..11.015 rows=1.00 loops=1) Execution Time: 11.019 ms Nested Statement #4 (level 2): Query Text: SELECT dc_level3() Result (actual time=12.366..12.366 rows=1.00 loops=1) Execution Time: 12.368 ms Nested Statement #5 (level 3): Query Text: SELECT pg_sleep(0.01) Result (actual time=11.059..11.059 rows=1.00 loops=1) Execution Time: 11.064 ms Nested Statements Summary: Total: 5 statements, max depth 3 Total Execution Time: 34.204 ms Total Nested Time: 34.010 ms (99.4% of total time) Slowest Statement: #2 (23.590 ms, 69.4%) (38 rows) DROP FUNCTION DROP FUNCTION DROP FUNCTION ============================================================================ TEST 42: Parallel — Nested Plans Inside Parallel Context ============================================================================ Purpose: Verify NESTED_STATEMENTS works correctly when: - The main query uses parallel workers (Gather node) - A PL/pgSQL function runs SQL that can use parallel plans - No crash occurs with parallel workers + hooks installed psql:comprehensive_nested_statements_test_v5.sql:1808: NOTICE: table "par42_data" does not exist, skipping DROP TABLE CREATE TABLE INSERT 0 10000 ANALYZE SET SET SET SET --- Part A: Pure parallel scan with hooks installed (no crash) --- QUERY PLAN --------------------------------------------------------------------------------- Finalize Aggregate (actual rows=1.00 loops=1) Buffers: shared hit=55 dirtied=1 written=1 -> Gather (actual rows=3.00 loops=1) Workers Planned: 2 Workers Launched: 2 Buffers: shared hit=55 dirtied=1 written=1 -> Partial Aggregate (actual rows=1.00 loops=3) Buffers: shared hit=55 dirtied=1 written=1 -> Parallel Seq Scan on par42_data (actual rows=1662.67 loops=3) Filter: (val > '500'::numeric) Rows Removed by Filter: 1671 Buffers: shared hit=55 dirtied=1 written=1 Planning: Buffers: shared hit=11 Planning Time: 0.750 ms Execution Time: 32.377 ms (16 rows) --- Part B: PL/pgSQL function with parallel-eligible inner SQL --- CREATE FUNCTION QUERY PLAN ----------------------------------------------------------------------------------------------------- Result (actual time=2.941..2.941 rows=1.00 loops=1) Buffers: shared hit=58 Planning Time: 0.134 ms Execution Time: 2.949 ms Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM par42_data WHERE val > 500 Finalize Aggregate (actual time=0.841..0.842 rows=1.00 loops=1) Buffers: shared hit=55 -> Gather (actual time=0.839..0.839 rows=1.00 loops=1) Workers Planned: 2 Workers Launched: 0 Buffers: shared hit=55 -> Partial Aggregate (actual time=0.839..0.839 rows=1.00 loops=1) Buffers: shared hit=55 -> Parallel Seq Scan on par42_data (actual time=0.011..0.715 rows=4988.00 loops=1) Filter: (val > '500'::numeric) Rows Removed by Filter: 5012 Buffers: shared hit=55 Execution Time: 0.843 ms (100.0%) Nested Statements Summary: Total: 1 statements, max depth 1 Total Execution Time: 2.949 ms Total Nested Time: 0.843 ms (28.6% of total time) Slowest Statement: #1 (0.843 ms, 100.0%) (28 rows) RESET RESET RESET RESET DROP FUNCTION DROP TABLE ============================================================================ TEST 43: Parallel — Nested PERFORM with Parallel Inner SQL ============================================================================ Purpose: PL/pgSQL calls another function via PERFORM. Both run in the leader. Inner function has a parallel-eligible query. Verifies multi-level nesting + parallel plans captured. psql:comprehensive_nested_statements_test_v5.sql:1862: NOTICE: table "par42b_data" does not exist, skipping DROP TABLE CREATE TABLE INSERT 0 10000 ANALYZE SET SET SET SET CREATE FUNCTION CREATE FUNCTION QUERY PLAN ------------------------------------------------------------------------------------------------------ Result (actual time=2.715..2.715 rows=1.00 loops=1) Buffers: shared hit=184 dirtied=1 written=1 Planning Time: 0.020 ms Execution Time: 2.725 ms Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM par42b_data WHERE id < 100 Finalize Aggregate (actual time=0.950..0.951 rows=1.00 loops=1) Buffers: shared hit=64 dirtied=1 written=1 -> Gather (actual time=0.947..0.948 rows=1.00 loops=1) Workers Planned: 2 Workers Launched: 0 Buffers: shared hit=64 dirtied=1 written=1 -> Partial Aggregate (actual time=0.947..0.947 rows=1.00 loops=1) Buffers: shared hit=64 dirtied=1 written=1 -> Parallel Seq Scan on par42b_data (actual time=0.455..0.941 rows=99.00 loops=1) Filter: (id < 100) Rows Removed by Filter: 9901 Buffers: shared hit=64 dirtied=1 written=1 Execution Time: 0.952 ms (50.6%) Nested Statement #2 (level 1): Query Text: SELECT par42b_inner() Result (actual time=0.927..0.927 rows=1.00 loops=1) Buffers: shared hit=85 Execution Time: 0.928 ms (49.4%) Nested Statement #3 (level 2): Query Text: SELECT SUM(val) FROM par42b_data WHERE category = 'cat_3' Finalize Aggregate (actual time=0.496..0.496 rows=1.00 loops=1) Buffers: shared hit=64 -> Gather (actual time=0.493..0.494 rows=1.00 loops=1) Workers Planned: 2 Workers Launched: 0 Buffers: shared hit=64 -> Partial Aggregate (actual time=0.493..0.493 rows=1.00 loops=1) Buffers: shared hit=64 -> Parallel Seq Scan on par42b_data (actual time=0.005..0.431 rows=1000.00 loops=1) Filter: (category = 'cat_3'::text) Rows Removed by Filter: 9000 Buffers: shared hit=64 Execution Time: 0.497 ms Nested Statements Summary: Total: 3 statements, max depth 2 Total Execution Time: 2.725 ms Total Nested Time: 1.880 ms (69.0% of total time) Slowest Statement: #1 (0.952 ms, 50.6%) (50 rows) RESET RESET RESET RESET DROP FUNCTION DROP FUNCTION DROP TABLE ============================================================================ TEST 44: Parallel — INSERT...SELECT with Trigger ============================================================================ Purpose: INSERT...SELECT can use parallel scan on source table. Target table has a trigger. Trigger fires in leader. Verifies trigger statements captured with parallel source. psql:comprehensive_nested_statements_test_v5.sql:1913: NOTICE: table "par42c_src" does not exist, skipping DROP TABLE psql:comprehensive_nested_statements_test_v5.sql:1914: NOTICE: table "par42c_dst" does not exist, skipping DROP TABLE psql:comprehensive_nested_statements_test_v5.sql:1915: NOTICE: table "par42c_log" does not exist, skipping DROP TABLE CREATE TABLE INSERT 0 10000 ANALYZE CREATE TABLE CREATE TABLE CREATE FUNCTION CREATE TRIGGER SET SET SET SET QUERY PLAN --------------------------------------------------------------------------- Insert on par42c_dst (actual time=1.168..1.169 rows=0.00 loops=1) Buffers: shared hit=67 dirtied=2 written=2 -> Seq Scan on par42c_src (actual time=0.261..0.724 rows=5.00 loops=1) Filter: (id <= 5) Rows Removed by Filter: 9995 Buffers: shared hit=63 dirtied=1 written=1 Planning: Buffers: shared hit=13 Planning Time: 0.373 ms Trigger par42c_trig: time=1.197 calls=5 Execution Time: 2.390 ms Nested Plans (showing 3 of 5): Nested Statement #1 (level 1, trigger): Query Text: INSERT INTO par42c_log VALUES ('row ' || NEW.id) Insert on par42c_log (actual time=0.457..0.458 rows=0.00 loops=1) Buffers: shared dirtied=1 written=1 -> Result (actual time=0.000..0.001 rows=1.00 loops=1) Execution Time: 0.459 ms Nested Statement #2 (level 1, trigger): Query Text: INSERT INTO par42c_log VALUES ('row ' || NEW.id) Insert on par42c_log (actual time=0.008..0.008 rows=0.00 loops=1) Buffers: shared hit=1 -> Result (actual time=0.001..0.001 rows=1.00 loops=1) Execution Time: 0.009 ms Nested Statement #3 (level 1, trigger): Query Text: INSERT INTO par42c_log VALUES ('row ' || NEW.id) Insert on par42c_log (actual time=0.004..0.004 rows=0.00 loops=1) Buffers: shared hit=1 -> Result (actual time=0.000..0.001 rows=1.00 loops=1) Execution Time: 0.005 ms Nested Statements Summary: Total: 5 statements (0 direct, 5 trigger-fired), max depth 1 Total Execution Time: 2.390 ms Total Trigger Time: 0.489 ms Slowest Statement: #1 (0.459 ms) (40 rows) RESET RESET RESET RESET DROP TABLE DROP TABLE DROP TABLE DROP FUNCTION ============================================================================ TEST 45: Parallel — PARALLEL SAFE Function in WHERE Clause ============================================================================ Purpose: Function in WHERE clause can be pushed below Gather into parallel workers. Workers execute the function but our hooks only capture leader executions. Verifies no crash. psql:comprehensive_nested_statements_test_v5.sql:1965: NOTICE: table "par42d_data" does not exist, skipping DROP TABLE psql:comprehensive_nested_statements_test_v5.sql:1966: NOTICE: table "par42d_cats" does not exist, skipping DROP TABLE CREATE TABLE INSERT 0 5000 CREATE TABLE INSERT 0 20 ANALYZE ANALYZE CREATE FUNCTION SET SET SET SET QUERY PLAN ---------------------------------------------------------------------------------------------------- Finalize Aggregate (actual time=27.286..28.161 rows=1.00 loops=1) Buffers: shared hit=5640 dirtied=1 written=1 -> Gather (actual time=25.590..28.157 rows=3.00 loops=1) Workers Planned: 2 Workers Launched: 2 Buffers: shared hit=5640 dirtied=1 written=1 -> Partial Aggregate (actual time=12.925..12.925 rows=1.00 loops=3) Buffers: shared hit=5640 dirtied=1 written=1 -> Parallel Seq Scan on par42d_data (actual time=2.844..12.887 rows=916.67 loops=3) Filter: par42d_check(((id % 20) + 1)) Rows Removed by Filter: 750 Buffers: shared hit=5640 dirtied=1 written=1 Planning: Buffers: shared hit=2 Planning Time: 1.060 ms Execution Time: 28.192 ms Nested Plans (showing 3 of 4045): Nested Statement #1 (level 1): Query Text: SELECT EXISTS(SELECT 1 FROM par42d_cats WHERE id = x AND name LIKE 'Category 1%'); Result (actual time=0.011..0.012 rows=1.00 loops=1) Buffers: shared hit=1 InitPlan exists_1 -> Gather (actual time=0.010..0.011 rows=0.00 loops=1) Workers Planned: 1 Workers Launched: 0 Buffers: shared hit=1 -> Parallel Seq Scan on par42d_cats (actual time=0.010..0.010 rows=0.00 loops=1) Filter: ((name ~~ 'Category 1%'::text) AND (id = 2)) Rows Removed by Filter: 20 Buffers: shared hit=1 Execution Time: 0.013 ms (0.1%) Nested Statement #2 (level 1): Query Text: SELECT EXISTS(SELECT 1 FROM par42d_cats WHERE id = x AND name LIKE 'Category 1%'); Result (actual time=0.004..0.005 rows=1.00 loops=1) Buffers: shared hit=1 InitPlan exists_1 -> Gather (actual time=0.004..0.004 rows=0.00 loops=1) Workers Planned: 1 Workers Launched: 0 Buffers: shared hit=1 -> Parallel Seq Scan on par42d_cats (actual time=0.004..0.004 rows=0.00 loops=1) Filter: ((name ~~ 'Category 1%'::text) AND (id = 3)) Rows Removed by Filter: 20 Buffers: shared hit=1 Execution Time: 0.005 ms (0.0%) Nested Statement #3 (level 1): Query Text: SELECT EXISTS(SELECT 1 FROM par42d_cats WHERE id = x AND name LIKE 'Category 1%'); Result (actual time=0.003..0.004 rows=1.00 loops=1) Buffers: shared hit=1 InitPlan exists_1 -> Gather (actual time=0.003..0.003 rows=0.00 loops=1) Workers Planned: 1 Workers Launched: 0 Buffers: shared hit=1 -> Parallel Seq Scan on par42d_cats (actual time=0.003..0.003 rows=0.00 loops=1) Filter: ((name ~~ 'Category 1%'::text) AND (id = 4)) Rows Removed by Filter: 20 Buffers: shared hit=1 Execution Time: 0.004 ms (0.0%) Nested Statements Summary: Total: 4045 statements, max depth 1 Total Execution Time: 28.192 ms Total Nested Time: 12.247 ms (43.4% of total time) Slowest Statement: #1 (0.426 ms, 3.5%) (75 rows) Note: Workers Launched > 0 means function ran in workers too. Only leader executions are captured (same as auto_explain). RESET RESET RESET RESET DROP FUNCTION DROP TABLE DROP TABLE ============================================================================ TEST 46: High-Volume NOTICE (per-row function calls) ============================================================================ Purpose: When >1000 nested statements are captured without SHOW_NESTED, a NOTICE is emitted suggesting SHOW_NESTED. When SHOW_NESTED is set, the NOTICE is suppressed. psql:comprehensive_nested_statements_test_v5.sql:2015: NOTICE: table "notice_data" does not exist, skipping DROP TABLE psql:comprehensive_nested_statements_test_v5.sql:2016: NOTICE: table "notice_categories" does not exist, skipping DROP TABLE CREATE TABLE INSERT 0 1100 CREATE TABLE INSERT 0 20 ANALYZE ANALYZE CREATE FUNCTION --- Part A: With SHOW_NESTED 0 (NOTICE suppressed) --- QUERY PLAN ------------------------------------------------------- Seq Scan on notice_data (actual rows=1100.00 loops=1) Buffers: shared hit=1122 dirtied=1 written=1 Planning: Buffers: shared hit=5 Planning Time: 0.358 ms Execution Time: 5.906 ms Nested Plans (showing 0 of 1100): Nested Statements Summary: Total: 1100 statements, max depth 1 Total Execution Time: 5.906 ms Total Nested Time: 1.873 ms (31.7% of total time) Slowest Statement: 0.136 ms (7.3%) (14 rows) --- Part B: Without SHOW_NESTED (NOTICE fires) --- psql:comprehensive_nested_statements_test_v5.sql:2040: NOTICE: 1001 nested statements captured (per-row SQL function calls can produce high counts) HINT: Use SHOW_NESTED 0 for summary only, or SHOW_NESTED N to display the first N plans. QUERY PLAN ------------------------------------------------------------ Seq Scan on notice_data (actual rows=1001.00 loops=1) Filter: (id <= 1001) Rows Removed by Filter: 99 Buffers: shared hit=1006 Planning Time: 0.509 ms Execution Time: 5.410 ms Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.004 ms (0.3%) Nested Statement #2 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #3 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #4 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #5 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #6 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #7 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #8 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #9 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #10 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #11 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #12 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #13 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #14 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #15 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #16 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #17 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #18 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #19 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #20 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #21 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #22 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #23 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #24 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #25 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #26 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #27 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #28 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #29 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #30 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #31 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #32 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #33 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #34 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #35 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #36 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #37 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #38 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #39 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #40 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #41 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #42 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #43 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #44 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #45 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #46 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #47 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #48 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #49 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #50 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #51 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #52 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #53 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #54 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #55 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #56 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #57 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #58 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #59 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #60 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #61 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #62 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #63 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #64 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #65 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #66 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #67 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #68 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #69 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #70 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #71 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #72 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #73 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #74 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #75 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #76 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #77 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #78 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #79 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #80 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #81 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #82 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #83 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #84 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #85 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #86 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #87 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #88 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #89 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #90 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #91 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #92 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #93 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #94 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #95 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #96 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #97 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #98 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #99 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #100 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #101 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #102 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #103 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #104 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #105 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #106 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #107 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #108 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #109 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #110 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #111 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #112 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #113 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #114 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #115 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #116 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #117 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #118 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #119 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #120 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #121 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #122 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #123 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #124 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #125 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #126 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #127 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #128 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #129 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #130 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #131 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #132 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #133 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #134 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #135 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #136 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #137 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #138 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #139 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #140 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #141 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #142 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #143 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #144 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #145 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #146 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #147 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #148 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #149 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #150 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #151 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #152 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #153 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #154 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #155 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #156 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #157 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #158 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #159 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #160 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #161 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #162 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #163 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #164 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #165 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #166 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #167 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #168 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #169 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #170 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #171 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #172 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #173 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #174 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #175 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #176 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #177 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #178 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #179 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #180 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #181 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #182 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #183 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #184 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #185 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #186 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #187 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #188 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #189 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #190 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #191 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #192 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #193 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #194 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #195 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #196 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #197 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #198 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #199 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #200 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #201 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #202 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #203 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #204 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #205 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #206 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #207 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #208 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #209 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #210 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #211 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #212 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #213 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #214 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #215 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #216 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #217 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #218 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #219 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #220 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #221 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #222 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #223 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #224 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #225 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #226 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #227 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #228 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #229 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #230 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #231 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #232 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #233 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #234 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #235 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #236 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #237 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #238 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #239 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #240 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #241 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #242 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #243 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #244 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #245 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #246 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #247 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #248 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #249 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #250 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #251 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #252 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #253 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #254 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #255 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #256 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #257 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #258 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #259 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #260 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #261 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #262 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #263 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #264 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #265 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #266 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #267 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #268 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #269 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #270 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #271 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #272 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #273 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #274 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #275 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #276 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #277 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #278 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #279 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #280 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #281 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #282 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #283 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #284 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #285 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #286 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #287 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #288 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #289 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #290 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #291 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #292 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #293 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #294 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #295 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #296 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #297 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #298 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #299 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #300 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #301 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #302 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #303 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #304 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #305 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #306 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #307 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #308 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #309 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #310 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #311 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #312 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #313 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #314 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #315 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #316 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #317 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #318 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #319 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #320 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #321 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #322 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #323 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #324 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #325 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #326 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #327 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #328 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #329 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #330 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #331 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #332 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #333 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #334 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #335 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #336 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #337 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #338 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #339 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #340 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #341 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #342 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #343 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #344 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #345 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #346 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #347 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #348 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #349 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #350 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #351 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #352 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #353 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #354 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #355 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #356 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #357 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #358 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #359 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #360 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #361 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #362 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #363 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #364 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #365 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #366 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #367 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #368 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #369 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #370 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #371 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #372 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #373 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #374 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #375 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #376 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #377 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #378 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #379 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #380 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #381 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #382 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #383 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #384 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #385 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #386 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #387 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #388 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #389 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #390 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #391 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #392 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #393 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #394 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #395 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #396 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #397 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #398 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #399 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #400 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #401 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #402 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #403 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #404 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #405 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #406 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #407 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #408 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #409 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #410 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #411 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #412 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #413 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #414 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #415 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #416 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #417 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #418 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #419 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #420 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #421 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #422 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #423 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #424 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #425 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #426 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #427 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #428 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #429 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #430 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #431 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #432 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #433 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #434 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #435 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #436 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #437 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #438 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.003 ms (0.2%) Nested Statement #439 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #440 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #441 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #442 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #443 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #444 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #445 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #446 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #447 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #448 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #449 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #450 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #451 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #452 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #453 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #454 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #455 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #456 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #457 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #458 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #459 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #460 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #461 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #462 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #463 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #464 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #465 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #466 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #467 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #468 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #469 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #470 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #471 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #472 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #473 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #474 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #475 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #476 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #477 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #478 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #479 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #480 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #481 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #482 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #483 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #484 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #485 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #486 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #487 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #488 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #489 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #490 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #491 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #492 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #493 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #494 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #495 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #496 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #497 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #498 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #499 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #500 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #501 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #502 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #503 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #504 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #505 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #506 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #507 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #508 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #509 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #510 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #511 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #512 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #513 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #514 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #515 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #516 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #517 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #518 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #519 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #520 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #521 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #522 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #523 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #524 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #525 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #526 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #527 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #528 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #529 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #530 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #531 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #532 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #533 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #534 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #535 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #536 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #537 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #538 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #539 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #540 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #541 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #542 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #543 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #544 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #545 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #546 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #547 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #548 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #549 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #550 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #551 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #552 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #553 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #554 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #555 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #556 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #557 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #558 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #559 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #560 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #561 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #562 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #563 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #564 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #565 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #566 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #567 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #568 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #569 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #570 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #571 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #572 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #573 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #574 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #575 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #576 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #577 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #578 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #579 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #580 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #581 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #582 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #583 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #584 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #585 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #586 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #587 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #588 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #589 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #590 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #591 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #592 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #593 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #594 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #595 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #596 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #597 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #598 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #599 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #600 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #601 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #602 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #603 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #604 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #605 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #606 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #607 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #608 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #609 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #610 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #611 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #612 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #613 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #614 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #615 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #616 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #617 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #618 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #619 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #620 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #621 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #622 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #623 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #624 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #625 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #626 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #627 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #628 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #629 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #630 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #631 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #632 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #633 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #634 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #635 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #636 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #637 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #638 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #639 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #640 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #641 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #642 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #643 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #644 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #645 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #646 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #647 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #648 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #649 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #650 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #651 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #652 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #653 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #654 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #655 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #656 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #657 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #658 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #659 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #660 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.003 ms (0.2%) Nested Statement #661 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #662 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #663 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #664 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #665 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #666 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #667 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #668 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #669 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #670 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #671 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #672 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #673 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #674 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #675 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #676 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #677 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #678 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #679 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #680 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #681 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #682 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #683 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #684 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #685 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #686 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #687 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #688 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #689 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #690 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #691 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #692 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #693 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #694 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #695 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #696 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #697 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #698 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #699 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #700 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #701 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #702 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #703 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #704 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #705 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #706 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #707 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #708 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #709 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #710 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #711 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #712 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #713 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #714 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #715 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #716 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #717 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #718 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #719 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #720 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #721 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #722 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #723 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #724 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #725 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #726 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #727 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #728 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #729 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #730 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #731 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #732 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #733 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #734 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #735 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #736 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #737 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #738 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #739 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #740 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #741 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #742 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #743 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #744 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #745 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #746 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #747 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #748 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #749 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #750 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #751 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #752 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #753 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #754 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #755 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #756 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #757 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #758 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #759 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #760 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #761 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #762 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #763 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #764 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #765 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #766 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #767 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #768 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #769 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #770 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #771 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #772 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #773 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #774 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #775 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #776 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #777 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #778 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #779 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.004 ms (0.3%) Nested Statement #780 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #781 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #782 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #783 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #784 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #785 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #786 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #787 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #788 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #789 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #790 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #791 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #792 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #793 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #794 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #795 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #796 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #797 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #798 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #799 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #800 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #801 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #802 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #803 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #804 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #805 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #806 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #807 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #808 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #809 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #810 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #811 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #812 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #813 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #814 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #815 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #816 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #817 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #818 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #819 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #820 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #821 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #822 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #823 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #824 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #825 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #826 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #827 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #828 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #829 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #830 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #831 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #832 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #833 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #834 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #835 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #836 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #837 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #838 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #839 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #840 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #841 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #842 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #843 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #844 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #845 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #846 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #847 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #848 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #849 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #850 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #851 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #852 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #853 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #854 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #855 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #856 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #857 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #858 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #859 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #860 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #861 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #862 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #863 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #864 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #865 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #866 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #867 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #868 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #869 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #870 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #871 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #872 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #873 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #874 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #875 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.003 ms (0.2%) Nested Statement #876 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #877 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #878 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #879 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #880 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #881 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #882 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #883 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #884 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #885 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #886 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #887 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #888 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #889 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #890 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #891 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #892 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #893 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #894 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #895 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #896 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #897 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #898 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #899 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #900 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #901 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #902 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #903 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #904 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #905 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #906 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #907 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #908 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #909 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #910 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #911 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #912 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #913 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #914 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #915 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #916 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #917 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #918 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #919 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #920 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #921 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #922 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #923 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #924 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #925 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #926 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #927 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #928 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #929 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #930 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #931 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #932 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #933 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #934 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #935 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #936 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #937 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #938 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #939 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #940 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #941 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #942 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #943 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #944 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #945 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #946 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #947 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #948 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #949 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #950 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #951 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #952 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #953 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #954 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #955 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #956 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #957 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #958 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #959 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #960 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #961 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #962 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #963 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #964 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #965 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #966 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #967 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #968 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #969 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #970 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #971 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #972 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #973 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #974 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #975 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #976 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #977 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #978 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #979 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #980 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #981 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #982 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 2 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #983 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 3 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #984 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 4 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #985 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 5 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #986 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 6 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #987 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #988 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 8 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #989 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 9 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #990 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 10 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #991 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 11 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #992 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 12 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #993 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 13 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #994 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 14 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #995 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 15 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #996 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 16 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #997 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 17 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #998 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 18 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #999 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 19 Buffers: shared hit=1 Execution Time: 0.002 ms (0.1%) Nested Statement #1000 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statement #1001 (level 1): Query Text: SELECT name FROM notice_categories WHERE id = x; Seq Scan on notice_categories (actual rows=1.00 loops=1) Filter: (id = $1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.001 ms (0.1%) Nested Statements Summary: Total: 1001 statements, max depth 1 Total Execution Time: 5.410 ms Total Nested Time: 1.572 ms (29.1% of total time) Slowest Statement: #1 (0.004 ms, 0.3%) (9974 rows) Part A: NOTICE suppressed (SHOW_NESTED set) Part B: NOTICE fires with hint to use SHOW_NESTED DROP FUNCTION DROP TABLE DROP TABLE ============================================================================ TEST 47: Prepared Statements (SPI Plan Caching) ============================================================================ Purpose: PL/pgSQL uses SPI which caches plans after repeated execution. After 5+ calls, SPI switches from custom to generic plan. Verify nested statements are captured regardless of plan type. psql:comprehensive_nested_statements_test_v5.sql:2065: NOTICE: table "prep_data" does not exist, skipping DROP TABLE CREATE TABLE INSERT 0 10 CREATE FUNCTION prep_test ----------- item_1 (1 row) prep_test ----------- item_2 (1 row) prep_test ----------- item_3 (1 row) prep_test ----------- item_4 (1 row) prep_test ----------- item_5 (1 row) After 5 calls (plan cached), EXPLAIN with NESTED_STATEMENTS: QUERY PLAN --------------------------------------------------------------------------------------------------- Result (actual time=0.114..0.115 rows=1.00 loops=1) Buffers: shared hit=9 Planning Time: 0.004 ms Execution Time: 0.118 ms Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT val FROM prep_data WHERE id = p_id Index Scan using prep_data_pkey on prep_data (actual time=0.004..0.004 rows=1.00 loops=1) Index Cond: (id = $1) Index Searches: 1 Buffers: shared hit=2 Execution Time: 0.005 ms (28.7%) Nested Statement #2 (level 1): Query Text: UPDATE prep_data SET val = val || '!' WHERE id = p_id Update on prep_data (actual time=0.011..0.011 rows=0.00 loops=1) Buffers: shared hit=4 -> Index Scan using prep_data_pkey on prep_data (actual time=0.002..0.003 rows=1.00 loops=1) Index Cond: (id = $1) Index Searches: 1 Buffers: shared hit=2 Execution Time: 0.011 ms (71.3%) Nested Statements Summary: Total: 2 statements, max depth 1 Total Execution Time: 0.118 ms Total Nested Time: 0.016 ms (13.6% of total time) Slowest Statement: #2 (0.011 ms, 71.3%) (30 rows) DROP FUNCTION DROP TABLE ============================================================================ TEST 48: Security-Definer Function (Privilege Protection) ============================================================================ Purpose: SECURITY DEFINER functions execute with the privileges of the function owner. Nested plans inside SECURITY DEFINER are hidden from unprivileged users to prevent information leakage. What this tests: - Superuser: sees nested plans (full access) - Regular user: nested plans hidden, NOTICE explains why - pg_read_all_stats member: sees nested plans (privileged bypass) - SECURITY INVOKER function: all users see nested plans (no protection needed) psql:comprehensive_nested_statements_test_v5.sql:2114: NOTICE: table "secdef_data" does not exist, skipping DROP TABLE CREATE TABLE INSERT 0 2 CREATE FUNCTION CREATE FUNCTION psql:comprehensive_nested_statements_test_v5.sql:2139: NOTICE: role "t48_regular" does not exist, skipping DROP ROLE psql:comprehensive_nested_statements_test_v5.sql:2140: NOTICE: role "t48_stats" does not exist, skipping DROP ROLE CREATE ROLE CREATE ROLE GRANT ROLE GRANT GRANT GRANT --- Part A: Superuser sees nested plans --- QUERY PLAN ------------------------------------------------------------------------------ Result (actual time=0.782..0.782 rows=1.00 loops=1) Buffers: shared hit=28 Planning Time: 0.018 ms Execution Time: 0.790 ms Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM secdef_data Aggregate (actual time=0.010..0.011 rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on secdef_data (actual time=0.007..0.008 rows=2.00 loops=1) Buffers: shared hit=1 Execution Time: 0.012 ms (44.7%) Nested Statement #2 (level 1): Query Text: UPDATE secdef_data SET val = 'accessed' WHERE id = 1 Update on secdef_data (actual time=0.014..0.014 rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on secdef_data (actual time=0.004..0.004 rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.014 ms (55.3%) Nested Statements Summary: Total: 2 statements, max depth 1 Total Execution Time: 0.790 ms Total Nested Time: 0.026 ms (3.3% of total time) Slowest Statement: #2 (0.014 ms, 55.3%) (30 rows) --- Part B: Regular user — nested plans hidden (SECURITY DEFINER) --- Expected: NOTICE about SECURITY DEFINER, no nested plans shown NOTICE: nested statements hidden: executed inside SECURITY DEFINER function HINT: Only superusers and roles with pg_read_all_stats can view nested plans inside SECURITY DEFINER functions. QUERY PLAN ----------------------------------------------------- Result (actual time=3.748..3.749 rows=1.00 loops=1) Buffers: shared hit=119 Planning Time: 0.040 ms Execution Time: 3.768 ms (4 rows) --- Part C: pg_read_all_stats user — sees nested plans --- Expected: Full nested plans visible (privileged role) QUERY PLAN ------------------------------------------------------------------------------ Result (actual time=3.078..3.078 rows=1.00 loops=1) Buffers: shared hit=121 Planning Time: 0.041 ms Execution Time: 3.098 ms Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM secdef_data Aggregate (actual time=0.020..0.020 rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on secdef_data (actual time=0.016..0.017 rows=2.00 loops=1) Buffers: shared hit=1 Execution Time: 0.023 ms (38.0%) Nested Statement #2 (level 1): Query Text: UPDATE secdef_data SET val = 'accessed' WHERE id = 1 Update on secdef_data (actual time=0.037..0.037 rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on secdef_data (actual time=0.008..0.008 rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.038 ms (62.0%) Nested Statements Summary: Total: 2 statements, max depth 1 Total Execution Time: 3.098 ms Total Nested Time: 0.061 ms (2.0% of total time) Slowest Statement: #2 (0.038 ms, 62.0%) (30 rows) --- Part D: Regular user — SECURITY INVOKER function (normal) --- Expected: Full nested plans visible (no SECURITY DEFINER involved) QUERY PLAN ------------------------------------------------------------------------------ Result (actual time=0.581..0.581 rows=1.00 loops=1) Buffers: shared hit=72 Planning Time: 0.038 ms Execution Time: 1.621 ms Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM secdef_data Aggregate (actual time=0.010..0.011 rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on secdef_data (actual time=0.007..0.008 rows=2.00 loops=1) Buffers: shared hit=1 Execution Time: 0.013 ms (100.0%) Nested Statements Summary: Total: 1 statements, max depth 1 Total Execution Time: 1.621 ms Total Nested Time: 0.013 ms (0.8% of total time) Slowest Statement: #1 (0.013 ms, 100.0%) (20 rows) --- Part E: pg_monitor user — sees nested plans (transitive) --- Expected: Full nested plans visible (pg_monitor includes pg_read_all_stats) psql:comprehensive_nested_statements_test_v5.sql:2170: NOTICE: role "t48_monitor" does not exist, skipping DROP ROLE CREATE ROLE GRANT ROLE GRANT QUERY PLAN ------------------------------------------------------------------------------ Result (actual time=2.711..2.711 rows=1.00 loops=1) Buffers: shared hit=125 Planning Time: 0.040 ms Execution Time: 2.729 ms Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM secdef_data Aggregate (actual time=0.011..0.012 rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on secdef_data (actual time=0.008..0.009 rows=2.00 loops=1) Buffers: shared hit=1 Execution Time: 0.014 ms (35.7%) Nested Statement #2 (level 1): Query Text: UPDATE secdef_data SET val = 'accessed' WHERE id = 1 Update on secdef_data (actual time=0.025..0.025 rows=0.00 loops=1) Buffers: shared hit=3 -> Seq Scan on secdef_data (actual time=0.006..0.006 rows=1.00 loops=1) Filter: (id = 1) Rows Removed by Filter: 1 Buffers: shared hit=1 Execution Time: 0.025 ms (64.3%) Nested Statements Summary: Total: 2 statements, max depth 1 Total Execution Time: 2.729 ms Total Nested Time: 0.039 ms (1.4% of total time) Slowest Statement: #2 (0.025 ms, 64.3%) (30 rows) DROP FUNCTION DROP FUNCTION DROP TABLE DROP ROLE DROP ROLE DROP ROLE ============================================================================ TEST 49: Nested Cursors (FOR Loop and Explicit Cursor) ============================================================================ Purpose: Cursor queries execute as a single ExecutorStart/Run/End cycle regardless of how many rows they return. A FOR loop over 5 rows generates only 1 nested statement (the cursor query), not 5. psql:comprehensive_nested_statements_test_v5.sql:2197: NOTICE: table "cursor_data" does not exist, skipping DROP TABLE CREATE TABLE INSERT 0 10 --- Part A: FOR loop cursor (single capture for multi-row result) --- CREATE FUNCTION QUERY PLAN ------------------------------------------------------------------------------------------------------- Result (actual time=0.252..0.252 rows=1.00 loops=1) Buffers: shared hit=16 Planning Time: 0.019 ms Execution Time: 0.262 ms Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT id, amount FROM cursor_data WHERE id <= 5 Bitmap Heap Scan on cursor_data (actual time=0.009..0.010 rows=5.00 loops=1) Recheck Cond: (id <= 5) Heap Blocks: exact=1 Buffers: shared hit=2 -> Bitmap Index Scan on cursor_data_pkey (actual time=0.002..0.002 rows=5.00 loops=1) Index Cond: (id <= 5) Index Searches: 1 Buffers: shared hit=1 Execution Time: 0.010 ms (37.8%) Nested Statement #2 (level 1): Query Text: UPDATE cursor_data SET amount = amount + 1 WHERE id = 1 Update on cursor_data (actual time=0.017..0.017 rows=0.00 loops=1) Buffers: shared hit=4 -> Index Scan using cursor_data_pkey on cursor_data (actual time=0.003..0.004 rows=1.00 loops=1) Index Cond: (id = 1) Index Searches: 1 Buffers: shared hit=2 Execution Time: 0.017 ms (62.2%) Nested Statements Summary: Total: 2 statements, max depth 1 Total Execution Time: 0.262 ms Total Nested Time: 0.027 ms (10.4% of total time) Slowest Statement: #2 (0.017 ms, 62.2%) (34 rows) --- Part B: Explicit OPEN/FETCH/CLOSE cursor --- CREATE FUNCTION QUERY PLAN ------------------------------------------------------------------------------------------------------- Result (actual time=0.301..0.301 rows=1.00 loops=1) Buffers: shared hit=6 Planning Time: 0.012 ms Execution Time: 0.307 ms Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT id, amount FROM cursor_data WHERE id <= 3 Seq Scan on cursor_data (actual time=0.008..0.009 rows=3.00 loops=1) Filter: (id <= 3) Rows Removed by Filter: 7 Buffers: shared hit=1 Execution Time: 0.010 ms (31.6%) Nested Statement #2 (level 1): Query Text: INSERT INTO cursor_data VALUES (99, 0) Insert on cursor_data (actual time=0.014..0.014 rows=0.00 loops=1) Buffers: shared hit=2 -> Result (actual time=0.001..0.001 rows=1.00 loops=1) Execution Time: 0.015 ms (46.2%) Nested Statement #3 (level 1): Query Text: DELETE FROM cursor_data WHERE id = 99 Delete on cursor_data (actual time=0.007..0.007 rows=0.00 loops=1) Buffers: shared hit=3 -> Index Scan using cursor_data_pkey on cursor_data (actual time=0.003..0.003 rows=1.00 loops=1) Index Cond: (id = 99) Index Searches: 1 Buffers: shared hit=2 Execution Time: 0.007 ms (22.2%) Nested Statements Summary: Total: 3 statements, max depth 1 Total Execution Time: 0.307 ms Total Nested Time: 0.032 ms (10.4% of total time) Slowest Statement: #2 (0.015 ms, 46.2%) (37 rows) DROP FUNCTION DROP FUNCTION DROP TABLE ============================================================================ TEST 50: Cross-Database Queries (dblink) — Known Limitation ============================================================================ Purpose: dblink executes SQL on a separate connection (different backend process). Our hooks are local to this backend, so remote SQL is NOT captured. Only local statements visible. Same limitation as auto_explain. Note: Requires dblink extension. If not available, this test will show an error — that is expected on minimal builds. psql:comprehensive_nested_statements_test_v5.sql:2268: NOTICE: extension "dblink" already exists, skipping CREATE EXTENSION psql:comprehensive_nested_statements_test_v5.sql:2270: NOTICE: table "dblink_data" does not exist, skipping DROP TABLE CREATE TABLE INSERT 0 2 CREATE FUNCTION Expected: Only local SELECT COUNT(*) captured as nested statement. The dblink UPDATE is invisible (runs in separate backend). QUERY PLAN --------------------------------------------------------------------------------- Result (actual time=12.640..12.640 rows=1.00 loops=1) Buffers: shared hit=45 Planning Time: 0.012 ms Execution Time: 12.647 ms Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM dblink_data Aggregate (actual time=0.007..0.007 rows=1.00 loops=1) Buffers: shared hit=1 -> Seq Scan on dblink_data (actual time=0.005..0.005 rows=2.00 loops=1) Buffers: shared hit=1 Execution Time: 0.008 ms (0.1%) Nested Statement #2 (level 1): Query Text: SELECT dblink_exec( 'dbname=' || current_database() || ' port=' || current_setting('port'), 'UPDATE dblink_data SET val = val || ''!'' WHERE id = 1' ) Result (actual time=7.646..7.647 rows=1.00 loops=1) Buffers: shared hit=2 Execution Time: 7.651 ms (99.9%) Nested Statements Summary: Total: 2 statements, max depth 1 Total Execution Time: 12.647 ms Total Nested Time: 7.659 ms (60.6% of total time) Slowest Statement: #2 (7.651 ms, 99.9%) (29 rows) DROP FUNCTION DROP TABLE ============================================================================ TEST 51: DDL Inside Function (CREATE/DROP TEMP TABLE) ============================================================================ Purpose: DDL statements (CREATE TABLE, DROP TABLE) go through ProcessUtility, not the executor. They are NOT captured. Only DML (INSERT, SELECT) on the temp table is captured. Verify no crash when DDL is mixed with DML in a function. CREATE FUNCTION Expected: Only INSERT and SELECT captured (DDL invisible to hooks). QUERY PLAN -------------------------------------------------------------------------------- Result (actual time=4.511..4.511 rows=1.00 loops=1) Buffers: shared hit=413 dirtied=3, local hit=2 dirtied=1 written=1 Planning Time: 0.017 ms Execution Time: 4.521 ms Nested Plans: Nested Statement #1 (level 1): Query Text: INSERT INTO tmp_ddl_test VALUES (1, 'hello'), (2, 'world') Insert on tmp_ddl_test (actual time=0.473..0.474 rows=0.00 loops=1) Buffers: local hit=1 dirtied=1 written=1 -> Values Scan on "*VALUES*" (actual time=0.002..0.007 rows=2.00 loops=1) Execution Time: 0.475 ms (98.3%) Nested Statement #2 (level 1): Query Text: SELECT COUNT(*) FROM tmp_ddl_test Aggregate (actual time=0.008..0.008 rows=1.00 loops=1) Buffers: local hit=1 -> Seq Scan on tmp_ddl_test (actual time=0.005..0.005 rows=2.00 loops=1) Buffers: local hit=1 Execution Time: 0.008 ms (1.7%) Nested Statements Summary: Total: 2 statements, max depth 1 Total Execution Time: 4.521 ms Total Nested Time: 0.483 ms (10.7% of total time) Slowest Statement: #1 (0.475 ms, 98.3%) (27 rows) DROP FUNCTION ============================================================================ TEST 52: Reentrancy DEBUG Log (Nested EXPLAIN NESTED_STATEMENTS) ============================================================================ Purpose: When a function internally calls EXPLAIN (NESTED_STATEMENTS), the inner call is silently disabled to prevent corruption. A DEBUG1 message is emitted for troubleshooting. CREATE FUNCTION --- Without debug (silent disable, no message): --- QUERY PLAN ------------------------------------------------------------- Result (actual rows=1.00 loops=1) Planning Time: 0.017 ms Execution Time: 0.050 ms Nested Plans: Nested Statement #1 (level 1): Query Text: EXPLAIN (ANALYZE, NESTED_STATEMENTS) SELECT 1 Result (actual rows=1.00 loops=1) Execution Time: 0.001 ms (100.0%) Nested Statements Summary: Total: 1 statements, max depth 1 Total Execution Time: 0.050 ms Total Nested Time: 0.001 ms (2.1% of total time) Slowest Statement: #1 (0.001 ms, 100.0%) (16 rows) --- With debug1 (expect DEBUG message about reentrancy): --- SET psql:comprehensive_nested_statements_test_v5.sql:2364: DEBUG: NESTED_STATEMENTS disabled: already active (reentrancy) QUERY PLAN ------------------------------------------------------------- Result (actual rows=1.00 loops=1) Planning Time: 0.006 ms Execution Time: 0.204 ms Nested Plans: Nested Statement #1 (level 1): Query Text: EXPLAIN (ANALYZE, NESTED_STATEMENTS) SELECT 1 Result (actual rows=1.00 loops=1) Execution Time: 0.001 ms (100.0%) Nested Statements Summary: Total: 1 statements, max depth 1 Total Execution Time: 0.204 ms Total Nested Time: 0.001 ms (0.7% of total time) Slowest Statement: #1 (0.001 ms, 100.0%) (16 rows) RESET DROP FUNCTION ============================================================================ TEST 53: SETTINGS Inheritance — Function with Internal SET ============================================================================ Purpose: A function that internally changes planner settings (e.g., SET enable_seqscan = off) should show those settings in the nested plan output. This reveals WHY a nested plan chose a particular strategy (e.g., Index Scan instead of Seq Scan). psql:comprehensive_nested_statements_test_v5.sql:2384: NOTICE: table "settings53_data" does not exist, skipping DROP TABLE CREATE TABLE INSERT 0 100 ANALYZE CREATE FUNCTION Expected: Nested plan shows Index Only Scan AND "Settings: enable_seqscan = 'off'" revealing why. QUERY PLAN --------------------------------------------------------------------------------------------------------------------- Result (actual time=1.783..1.783 rows=1.00 loops=1) Buffers: shared hit=37 Settings: enable_seqscan = 'off' Planning Time: 0.017 ms Execution Time: 1.791 ms Nested Plans: Nested Statement #1 (level 1): Query Text: SELECT COUNT(*) FROM settings53_data WHERE id < 50 Aggregate (actual time=0.020..0.021 rows=1.00 loops=1) Buffers: shared hit=2 -> Index Only Scan using settings53_data_pkey on settings53_data (actual time=0.011..0.016 rows=49.00 loops=1) Index Cond: (id < 50) Heap Fetches: 49 Index Searches: 1 Buffers: shared hit=2 Settings: enable_seqscan = 'off' Execution Time: 0.021 ms (100.0%) Nested Statements Summary: Total: 1 statements, max depth 1 Total Execution Time: 1.791 ms Total Nested Time: 0.021 ms (1.2% of total time) Slowest Statement: #1 (0.021 ms, 100.0%) (25 rows) DROP FUNCTION DROP TABLE ============================================================================ TEST 54: Slowest Statement — Trigger-Only Scenario ============================================================================ Purpose: When ALL nested statements are trigger-fired, the Slowest Statement must still appear in the summary. Previously it was missing because tracking was limited to level-1 only. psql:comprehensive_nested_statements_test_v5.sql:2422: NOTICE: table "t54_data" does not exist, skipping DROP TABLE psql:comprehensive_nested_statements_test_v5.sql:2423: NOTICE: table "t54_log" does not exist, skipping DROP TABLE CREATE TABLE CREATE TABLE INSERT 0 1 CREATE FUNCTION CREATE TRIGGER Expected: Slowest Statement shown even though all stmts are trigger-fired. QUERY PLAN ----------------------------------------------------------------------------------------------- Update on t54_data (actual time=0.019..0.020 rows=0.00 loops=1) Buffers: shared hit=5 -> Index Scan using t54_data_pkey on t54_data (actual time=0.005..0.005 rows=1.00 loops=1) Index Cond: (id = 1) Index Searches: 1 Buffers: shared hit=2 Planning: Buffers: shared hit=5 Planning Time: 0.405 ms Trigger t54_trig: time=11.726 calls=1 Execution Time: 11.782 ms Nested Plans: Nested Statement #1 (level 1, trigger): Query Text: SELECT pg_sleep(0.01) Result (actual time=10.781..10.782 rows=1.00 loops=1) Execution Time: 10.786 ms Nested Statement #2 (level 1, trigger): Query Text: INSERT INTO t54_log VALUES ('triggered') Insert on t54_log (actual time=0.592..0.593 rows=0.00 loops=1) Buffers: shared dirtied=1 written=1 -> Result (actual time=0.001..0.002 rows=1.00 loops=1) Execution Time: 0.595 ms Nested Statements Summary: Total: 2 statements (0 direct, 2 trigger-fired), max depth 1 Total Execution Time: 11.782 ms Total Trigger Time: 11.381 ms Slowest Statement: #1 (10.786 ms) (31 rows) DROP TABLE DROP TABLE DROP FUNCTION ============================================================================ TEST 55: Trigger Time — Multi-Level Nesting ============================================================================ Purpose: Total Trigger Time must include trigger statements at any nesting level, not just level 1. A function that does INSERT (level 1) which fires a trigger (level 2) should show the trigger time in the summary. psql:comprehensive_nested_statements_test_v5.sql:2464: NOTICE: table "t55_data" does not exist, skipping DROP TABLE CREATE TABLE CREATE FUNCTION CREATE TRIGGER CREATE FUNCTION Expected: Total Trigger Time shows ~10ms (the pg_sleep in trigger). QUERY PLAN --------------------------------------------------------------------- Result (actual time=11.755..11.755 rows=1.00 loops=1) Buffers: shared hit=23 dirtied=1 written=1 Planning Time: 0.018 ms Execution Time: 11.763 ms Nested Plans: Nested Statement #1 (level 1): Query Text: INSERT INTO t55_data VALUES (1) Insert on t55_data (actual time=11.677..11.678 rows=0.00 loops=1) Buffers: shared hit=9 dirtied=1 written=1 -> Result (actual time=0.000..0.001 rows=1.00 loops=1) Trigger t55_trig: time=10.738 calls=1 Execution Time: 11.679 ms (100.0%) Nested Statement #2 (level 2, trigger): Query Text: SELECT pg_sleep(0.01) Result (actual time=10.652..10.652 rows=1.00 loops=1) Execution Time: 10.656 ms Nested Statements Summary: Total: 2 statements (1 direct, 1 trigger-fired), max depth 2 Total Execution Time: 11.763 ms Total Nested Time: 11.679 ms (99.3% of total time) Total Trigger Time: 10.656 ms (91.2% of nested time) Slowest Statement: #1 (11.679 ms, 100.0%) (26 rows) DROP TABLE DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP TRIGGER DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP TRIGGER DROP FUNCTION DROP TABLE DROP TABLE DROP TABLE DROP TABLE DROP TABLE DROP TABLE DROP TABLE DROP TABLE DROP TABLE DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP TABLE DROP TABLE ============================================================================ Test Suite Complete — 55 tests ============================================================================