1694{
1696
1698
1701 bool em_is_const;
1702 bool em_is_child;
1705
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758typedef struct
1759{
1761 int current_relid;
1762
1763
1765
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1786{
1788
1790
1791
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1808{
1810
1814
1815
1816
1817
1818
1819
1821{
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1851{
1853
1855
1856
1858
1859
1861
1862
1864
1865
1867
1868
1871
1872
1873#define get_pathtarget_sortgroupref(target, colno) \
1874 ((target)->sortgrouprefs ? (target)->sortgrouprefs[colno] : (Index) 0)
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1898{
1900
1902
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1944{
1946
1948
1949
1951
1952
1953
1954
1955
1956
1957
1959
1960
1961
1962
1963
1964
1966
1967
1968
1969
1970
1971
1972
1973
1975
1976
1978
1980
1982
1983
1988
1989
1992
1993
1994#define PATH_REQ_OUTER(path) \
1995 ((path)->param_info ? (path)->param_info->ppi_req_outer : (Relids) NULL)
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2033{
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2079{
2081
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2108{
2112
2113
2114
2115
2116
2117
2118
2120{
2125
2126
2127
2128
2129
2130
2131
2133{
2138
2139
2140
2141
2142
2143
2144
2145
2147{
2151
2152
2153
2154
2155
2156
2157
2159{
2163
2164
2165
2166
2167
2168
2169
2170
2171
2173{
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2193{
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2227
2229{
2232
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2255{
2258
2262
2263#define IS_DUMMY_APPEND(p) \
2264 (IsA((p), AppendPath) && ((AppendPath *) (p))->subpaths == NIL)
2265
2266
2267
2268
2269
2270
2271#define IS_DUMMY_REL(r) is_dummy_rel(r)
2273
2274
2275
2276
2277
2279{
2284
2285
2286
2287
2288
2289
2290
2291
2293{
2297
2298
2299
2300
2301
2302
2303
2305{
2309
2310
2311
2312
2313
2314
2316{
2322
2324
2326
2327
2332
2333
2334
2335
2336
2337
2339{
2345
2346
2347
2348
2349
2351{
2356
2357
2358
2359
2360
2361
2363{
2365
2367
2369
2371
2372
2375
2377
2378
2379
2380
2381
2382
2384
2385
2386
2387
2388
2390{
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2436{
2438 List *path_mergeclauses;
2439 List *outersortkeys;
2440 List *innersortkeys;
2441 int outer_presorted_keys;
2442
2443 bool skip_mark_restore;
2444 bool materialize_inner;
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2457{
2459 List *path_hashclauses;
2460 int num_batches;
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2479{
2482 bool dummypp;
2484
2485
2486
2487
2488
2489
2491{
2495
2496
2497
2498
2499
2500
2501
2502
2503
2505{
2509
2510
2511
2512
2513
2514
2515
2517{
2519 int nPresortedCols;
2521
2522
2523
2524
2525
2526
2527
2528
2529
2531{
2537
2538
2539
2540
2541
2542
2543
2545{
2548 int numkeys;
2550
2551
2552
2553
2554
2555
2556
2557
2559{
2569
2570
2571
2572
2573
2575{
2577
2582
2584{
2586
2592 bool hashable;
2593 bool is_hashed;
2595
2596
2597
2598
2599
2601{
2609
2610
2611
2612
2614{
2619
2620
2621
2622
2624{
2630 bool topwindow;
2631
2633
2634
2635
2636
2638{
2647
2648
2649
2650
2652{
2657 int wtParam;
2660
2661
2662
2663
2665{
2669 int epqParam;
2671
2672
2673
2674
2675
2676
2677
2678
2680{
2684 bool canSetTag;
2685 Index nominalRelation;
2687 List *resultRelations;
2688 List *updateColnosLists;
2689 List *withCheckOptionLists;
2690 List *returningLists;
2693 int epqParam;
2694 List *mergeActionLists;
2695
2696 List *mergeJoinConditions;
2697
2699
2700
2701
2702
2704{
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2863{
2865
2867
2868
2870
2871
2872 bool is_pushed_down;
2873
2874
2876
2877
2879
2880
2881 bool has_clone;
2882 bool is_clone;
2883
2884
2886
2887
2889
2890
2891 Index security_level;
2892
2893
2895
2896
2898
2899
2901
2902
2903 Relids incompatible_relids;
2904
2905
2907
2908
2909
2910
2911
2914
2915
2916
2917
2918
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941 int rinfo_serial;
2942
2943
2944
2945
2946
2948
2949
2950
2951
2952
2953
2955
2956
2958
2960
2961
2962
2963
2964
2966
2967
2968
2969
2970
2971
2973
2975
2977
2979
2980
2981
2982
2983
2984
2986
2987
2988
2989
2990
2992
2993
2994
2995
2996
2998
2999
3000
3001
3002
3004
3006
3008
3010
3011
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026#define RINFO_IS_PUSHED_DOWN(rinfo, joinrelids) \
3027 ((rinfo)->is_pushed_down || \
3028 !bms_is_subset((rinfo)->required_relids, joinrelids))
3029
3030
3031
3032
3033
3034
3035
3036
3038{
3039
3043 bool nulls_first;
3044
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3084{
3086
3088
3089
3091
3092
3094
3095
3097
3098
3100
3101
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3190{
3192
3204 bool lhs_strict;
3205
3206 bool semi_can_btree;
3207 bool semi_can_hash;
3208 List *semi_operators;
3209 List *semi_rhs_exprs;
3211
3212
3213
3214
3215
3216
3217
3219{
3221
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3258{
3260
3262
3263
3264
3265
3266
3267
3268
3271
3272
3273
3274
3275
3276
3277
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297 List *translated_vars;
3298
3299
3300
3301
3302
3303
3304
3305 int num_child_cols;
3307
3308
3309
3310
3311
3312
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3335{
3337
3339
3342 char *rowidname;
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3373{
3375
3377
3378
3380
3381
3382
3383
3384
3386
3387
3389
3390
3392
3393
3395
3396
3399
3400
3401
3402
3403
3404
3406{
3408
3410
3411
3413
3414
3416
3417
3419
3420
3421
3422
3423
3425
3426
3428
3429
3431
3432
3435
3436
3437
3438
3439
3440
3441
3442
3444{
3446
3448
3449
3451
3452
3455
3456
3457
3458
3459
3460
3461
3462
3464{
3466
3468
3469
3471
3472
3474
3475
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3527{
3529
3531
3533 int paramId;
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3553{
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3573{
3575 List *mergeclause_list;
3576 bool inner_unique;
3579 Relids param_source_rels;
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598#define GROUPING_CAN_USE_SORT 0x0001
3599#define GROUPING_CAN_USE_HASH 0x0002
3600#define GROUPING_CAN_PARTIAL_AGG 0x0004
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613typedef enum
3614{
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633typedef struct
3634{
3635
3636 int flags;
3637 bool partial_costs_set;
3640
3641
3642 bool target_parallel_safe;
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658typedef struct
3659{
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3679{
3680
3681 int disabled_nodes;
3684
3685
3687
3688
3689 Cost inner_run_cost;
3690 Cost inner_rescan_run_cost;
3691
3692
3697
3698
3699 int numbuckets;
3700 int numbatches;
3703
3704
3705
3706
3707
3708
3710{
3712
3714
3715
3716
3717
3718
3719
3720
3722
3723
3724 int transno;
3725
3726
3727
3728
3729
3730 bool shareable;
3731
3732
3735
3736
3737
3738
3739
3740
3741
3742
3744{
3746
3748
3749
3752
3753
3755
3756
3758
3759
3761
3762
3764
3765
3767
3768
3769 int32 aggtranstypmod;
3770 int transtypeLen;
3771 bool transtypeByVal;
3772
3773
3774 int32 aggtransspace;
3775
3776
3778 bool initValueIsNull;
3780
3781
3782
3783
3784
3786{
3788
3790
3791
3792
3793
3794
3796
3797
3798
3799
3800
3801 bool self_join;
3802
3803
3804
3805
3806
3807
3808
3809 List *extra_clauses;
3811
3812#endif
Datum subpath(PG_FUNCTION_ARGS)
#define pg_node_attr(...)
bool is_dummy_rel(RelOptInfo *rel)
PartitionwiseAggregateType
@ PARTITIONWISE_AGGREGATE_PARTIAL
@ PARTITIONWISE_AGGREGATE_FULL
@ PARTITIONWISE_AGGREGATE_NONE
bool limit_needed(Query *parse)
Selectivity bitmapselectivity
Selectivity bitmapselectivity
const struct CustomPathMethods * methods
List * custom_restrictinfo
struct RestrictInfo * rinfo
ScanDirection indexscandir
Selectivity indexselectivity
Cardinality est_unique_keys
VolatileFunctionStatus has_volatile_expr