|
| 1 | +-- explain output on PG12/13 is missing "Async Capable" |
| 2 | +select setting::int < 140000 as pg12_13 from pg_settings where name = 'server_version_num'; |
| 3 | + pg12_13 |
| 4 | +--------- |
| 5 | + f |
| 6 | +(1 row) |
| 7 | + |
| 8 | +-- json output |
| 9 | +set pg_show_plans.plan_format = 'json'; |
| 10 | +ERROR: parameter "pg_show_plans.plan_format" cannot be changed without restarting the server |
| 11 | +show pg_show_plans.plan_format; |
| 12 | + pg_show_plans.plan_format |
| 13 | +--------------------------- |
| 14 | + text |
| 15 | +(1 row) |
| 16 | + |
| 17 | +select * from nest(); |
| 18 | + level | plan |
| 19 | +-------+---------------------------------------------------------------------- |
| 20 | + 0 | Function Scan on nest (cost=0.25..10.25 rows=1000 width=36) |
| 21 | + 1 | Function Scan on pg_show_plans (cost=0.00..12.50 rows=333 width=36)+ |
| 22 | + | Filter: (level >= 0) |
| 23 | +(2 rows) |
| 24 | + |
| 25 | +-- yaml output |
| 26 | +set pg_show_plans.plan_format = 'yaml'; |
| 27 | +ERROR: parameter "pg_show_plans.plan_format" cannot be changed without restarting the server |
| 28 | +show pg_show_plans.plan_format; |
| 29 | + pg_show_plans.plan_format |
| 30 | +--------------------------- |
| 31 | + text |
| 32 | +(1 row) |
| 33 | + |
| 34 | +select * from nest(); |
| 35 | + level | plan |
| 36 | +-------+---------------------------------------------------------------------- |
| 37 | + 0 | Function Scan on nest (cost=0.25..10.25 rows=1000 width=36) |
| 38 | + 1 | Function Scan on pg_show_plans (cost=0.00..12.50 rows=333 width=36)+ |
| 39 | + | Filter: (level >= 0) |
| 40 | +(2 rows) |
| 41 | + |
| 42 | +-- xml output |
| 43 | +set pg_show_plans.plan_format = 'xml'; |
| 44 | +ERROR: parameter "pg_show_plans.plan_format" cannot be changed without restarting the server |
| 45 | +show pg_show_plans.plan_format; |
| 46 | + pg_show_plans.plan_format |
| 47 | +--------------------------- |
| 48 | + text |
| 49 | +(1 row) |
| 50 | + |
| 51 | +select * from nest(); |
| 52 | + level | plan |
| 53 | +-------+---------------------------------------------------------------------- |
| 54 | + 0 | Function Scan on nest (cost=0.25..10.25 rows=1000 width=36) |
| 55 | + 1 | Function Scan on pg_show_plans (cost=0.00..12.50 rows=333 width=36)+ |
| 56 | + | Filter: (level >= 0) |
| 57 | +(2 rows) |
| 58 | + |
| 59 | +-- check plan format after reconnect |
| 60 | +\c |
| 61 | +show pg_show_plans.plan_format; |
| 62 | + pg_show_plans.plan_format |
| 63 | +--------------------------- |
| 64 | + text |
| 65 | +(1 row) |
| 66 | + |
0 commit comments