Skip to content

CONSUMER_ERROR set, err_msg "unrecognized node type: 113 #116

@yazun

Description

@yazun

Looks like a new error we get (on V2.2) quite often, but without a clear repeatability pattern but happening very often:

ERROR:  node:datanode6, backend_pid:36893, nodename:datanode6,backend_pid:36893,message:node:datanode7, backend_pid:26508, nodename:datanode7,backend_pid:26508,message:Failed to read from SQueue, CONSUMER_ERROR set, err_msg "unrecognized node type: 113",,                                                                                                                                                                                                                                                                                ]  0% ETA 0:00:00
ERROR:  node:datanode10, backend_pid:11252, nodename:datanode10,backend_pid:11252,message:node:datanode7, backend_pid:26576, nodename:datanode7,backend_pid:26576,message:Failed to read from SQueue, CONSUMER_ERROR set, err_msg "unrecognized node type: 113",,
ERROR:  node:datanode12, backend_pid:3072, nodename:datanode12,backend_pid:3072,message:node:datanode11, backend_pid:39323, nodename:datanode11,backend_pid:39323,message:Failed to read from SQueue, CONSUMER_ERROR set, err_msg "unrecognized node type: 113",,                                                                                                                                                                                                                                                                              ]  0% ETA 0:00:00
ERROR:  node:datanode11, backend_pid:39452, nodename:datanode11,backend_pid:39452,message:node:datanode7, backend_pid:26591, nodename:datanode7,backend_pid:26591,message:Failed to read from SQueue, CONSUMER_ERROR set, err_msg "unrecognized node type: 113",,                                                                                                                                                                                                                                                                              ]  0% ETA 0:00:00
ERROR:  node:datanode12, backend_pid:2966, nodename:datanode12,backend_pid:2966,message:node:datanode11, backend_pid:39323, nodename:datanode11,backend_pid:39323,message:Failed to read from SQueue, CONSUMER_ERROR set, err_msg "unrecognized node type: 113",,
ERROR:  node:datanode11, backend_pid:39016, nodename:datanode11,backend_pid:39016,message:node:datanode11, backend_pid:39309, nodename:datanode11,backend_pid:39309,message:Failed to read from SQueue, CONSUMER_ERROR set, err_msg "unrecognized node type: 113",

enum NodeType 113 is mapped to T_ProjectSetPath it seems:

eu-readelf --debug-dump=info `which postgres` | grep -A 3 T_ProjectSetPath
...
--
               name                 (strp) "T_ProjectSetPath"
               const_value          (data1) 213
 [1792a48]      enumerator           abbrev: 30

Example plan that fails:

                                                                                                                                                               QUERY PLAN                                                                                                                                                                                                                                                                                                                              ]  1% ETA 0:46:42
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Remote Subquery Scan on all (datanode1,datanode10,datanode11,datanode12,datanode2,datanode3,datanode4,datanode5,datanode6,datanode7,datanode8,datanode9)  (cost=210.76..207729.82 rows=1 width=283)
   ->  Insert on final_dr3_animation_variables_exported_1  (cost=210.76..207729.82 rows=1 width=283)
         ->  Remote Subquery Scan on all (datanode7)  (cost=210.76..207729.82 rows=1 width=283)
               Distribute results by S: sourceid
               ->  Nested Loop  (cost=110.76..207628.09 rows=1 width=283)
                     ->  Nested Loop  (cost=110.13..187626.99 rows=1 width=2636)
                           ->  Nested Loop  (cost=110.13..157626.47 rows=1 width=3414)
                                 ->  Remote Subquery Scan on all (datanode1,datanode10,datanode11,datanode12,datanode2,datanode3,datanode4,datanode5,datanode6,datanode7,datanode8,datanode9)  (cost=110.13..127625.94 rows=1 width=4192)
                                       ->  Nested Loop  (cost=10.13..127521.74 rows=1 width=4192)
                                             ->  Nested Loop  (cost=9.01..126686.07 rows=1 width=3281)
                                                   ->  Nested Loop  (cost=7.88..125850.39 rows=1 width=2045)
                                                         ->  Nested Loop  (cost=6.76..125014.72 rows=1 width=1068)
                                                               ->  Nested Loop  (cost=5.63..124179.26 rows=1 width=1044)
                                                                     ->  Nested Loop  (cost=4.50..123343.43 rows=1 width=747)
                                                                           ->  Nested Loop  (cost=3.36..122507.61 rows=1 width=446)
                                                                                 ->  Nested Loop  (cost=2.22..121671.80 rows=1 width=139)
                                                                                       ->  Bitmap Heap Scan on final_dr3_export_helper  (cost=1.10..836.24 rows=1 width=128)
                                                                                             Recheck Cond: ((sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint))
                                                                                             ->  Bitmap Index Scan on uq_final_dr3_export_helper  (cost=0.00..1.09 rows=1 width=0)
                                                                                                   Index Cond: ((sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint))
                                                                                       ->  Bitmap Heap Scan on final_dr3_run90002_flat_environment_10  (cost=1.13..835.46 rows=1 width=64)
                                                                                             Recheck Cond: ((sourceid = final_dr3_export_helper.sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint))
                                                                                             ->  Bitmap Index Scan on pk_final_dr3_run90002_flat_environment_10  (cost=0.00..1.12 rows=1 width=0)
                                                                                                   Index Cond: ((sourceid = final_dr3_export_helper.sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint))
                                                                                 ->  Bitmap Heap Scan on timeseriesresult_1_1 tsr_g  (cost=1.14..835.68 rows=1 width=307)
                                                                                       Recheck Cond: ((runid = 3852) AND (catalogid = '2'::smallint) AND (sourceid = final_dr3_export_helper.sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint) AND (ftimeseriestype = 336935))
                                                                                       ->  Bitmap Index Scan on timeseriesresult_1_1_pkey  (cost=0.00..1.14 rows=1 width=0)
                                                                                             Index Cond: ((runid = 3852) AND (catalogid = '2'::smallint) AND (sourceid = final_dr3_export_helper.sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint) AND (ftimeseriestype = 336935))
                                                                           ->  Bitmap Heap Scan on timeseriesresult_1_1 tsr_bp  (cost=1.14..835.68 rows=1 width=307)
                                                                                 Recheck Cond: ((runid = 3852) AND (catalogid = '2'::smallint) AND (sourceid = final_dr3_export_helper.sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint) AND (ftimeseriestype = 336911))
                                                                                 ->  Bitmap Index Scan on timeseriesresult_1_1_pkey  (cost=0.00..1.14 rows=1 width=0)
                                                                                       Index Cond: ((runid = 3852) AND (catalogid = '2'::smallint) AND (sourceid = final_dr3_export_helper.sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint) AND (ftimeseriestype = 336911))
                                                                     ->  Bitmap Heap Scan on timeseriesresult_1_1 tsr_rp  (cost=1.14..835.68 rows=1 width=307)
                                                                           Recheck Cond: ((runid = 3852) AND (catalogid = '2'::smallint) AND (sourceid = final_dr3_export_helper.sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint) AND (ftimeseriestype = 336928))
                                                                           ->  Bitmap Index Scan on timeseriesresult_1_1_pkey  (cost=0.00..1.14 rows=1 width=0)
                                                                                 Index Cond: ((runid = 3852) AND (catalogid = '2'::smallint) AND (sourceid = final_dr3_export_helper.sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint) AND (ftimeseriestype = 336928))
                                                               ->  Bitmap Heap Scan on source_1 s  (cost=1.12..835.46 rows=1 width=26)
                                                                     Recheck Cond: ((sourceid = final_dr3_export_helper.sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint) AND (catalogid = '2'::smallint))
                                                                     ->  Bitmap Index Scan on source_1_pkey  (cost=0.00..1.12 rows=1 width=0)
                                                                           Index Cond: ((sourceid = final_dr3_export_helper.sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint))
                                                         ->  Bitmap Heap Scan on ts_1 ts_bp  (cost=1.13..835.67 rows=1 width=979)
                                                               Recheck Cond: ((sourceid = final_dr3_export_helper.sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint) AND (ftimeseriestype = '2'::smallint) AND (catalogid = '2'::smallint))
                                                               ->  Bitmap Index Scan on ts_fix_1_pkey  (cost=0.00..1.12 rows=1 width=0)
                                                                     Index Cond: ((sourceid = final_dr3_export_helper.sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint) AND (ftimeseriestype = '2'::smallint))
                                                   ->  Bitmap Heap Scan on ts_1 ts_g  (cost=1.13..835.67 rows=1 width=1238)
                                                         Recheck Cond: ((sourceid = final_dr3_export_helper.sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint) AND (ftimeseriestype = '1'::smallint) AND (catalogid = '2'::smallint))
                                                         ->  Bitmap Index Scan on ts_fix_1_pkey  (cost=0.00..1.12 rows=1 width=0)
                                                               Index Cond: ((sourceid = final_dr3_export_helper.sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint) AND (ftimeseriestype = '1'::smallint))
                                             ->  Bitmap Heap Scan on ts_1 ts_rp  (cost=1.13..835.67 rows=1 width=979)
                                                   Recheck Cond: ((sourceid = final_dr3_export_helper.sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint) AND (ftimeseriestype = '3'::smallint) AND (catalogid = '2'::smallint))
                                                   ->  Bitmap Index Scan on ts_fix_1_pkey  (cost=0.00..1.12 rows=1 width=0)
                                                         Index Cond: ((sourceid = final_dr3_export_helper.sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint) AND (ftimeseriestype = '3'::smallint))
                                 ->  Result  (cost=0.00..10000.53 rows=1 width=32)
                           ->  Result  (cost=0.00..10000.53 rows=1 width=32)
                     ->  Function Scan on remove_filtered bp_rp  (cost=0.63..10000.63 rows=1 width=64)
(55 rows)

When sometimes the query works (which is insert into .. select ..) we getting analyze plan like this:

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Nested Loop  (cost=206.60..47136823036702296.00 rows=752264783839651 width=220) (actual time=7960.565..228006.267 rows=2582 loops=1)
   ->  Remote Subquery Scan on all (datanode1,datanode10,datanode11,datanode12,datanode2,datanode3,datanode4,datanode5,datanode6,datanode7,datanode8,datanode9)  (cost=104.85..1821453743505.77 rows=514459128568 width=3537) (actual time=27.329..92.808 rows=2582 loops=1)
         ->  Nested Loop  (cost=4.85..268428275.05 rows=514459128568 width=3537)
               DN (actual startup time=0.281..7.665 total time=228.544..7840.273 rows=197..231 loops=1..1)
               Join Filter: (final_dr3_run90002_flat_environment_10.sourceid = final_dr3_export_helper.sourceid)
               ->  Nested Loop  (cost=4.74..239168098.60 rows=1 width=3529)
                     DN (actual startup time=0.224..0.390 total time=85.000..7663.202 rows=1621..1738 loops=1..1)
                     ->  Nested Loop  (cost=3.61..239157262.93 rows=1 width=2255)
                           DN (actual startup time=0.219..0.384 total time=78.440..7133.950 rows=1621..1738 loops=1..1)
                           ->  Nested Loop  (cost=2.49..239146427.26 rows=1 width=1249)
                                 DN (actual startup time=0.194..0.365 total time=70.415..3508.589 rows=1621..1738 loops=1..1)
                                 ->  Nested Loop  (cost=1.37..239135591.81 rows=1 width=1225)
                                       DN (actual startup time=0.172..0.344 total time=63.548..3499.840 rows=1621..1738 loops=1..1)
                                       ->  Merge Join  (cost=1.28..239092253.30 rows=4 width=850)
                                             DN (actual startup time=0.149..0.321 total time=56.358..3450.352 rows=1621..1738 loops=1..1)
                                             Merge Cond: (final_dr3_run90002_flat_environment_10.sourceid = tsr_rp.sourceid)
                                             ->  Nested Loop  (cost=1.20..124318276.54 rows=11471 width=459)
                                                   DN (actual startup time=0.106..0.226 total time=40.208..45.888 rows=1621..1738 loops=1..1)
                                                   ->  Merge Append  (cost=0.08..114733921.49 rows=11472 width=391)
                                                         DN (actual startup time=0.042..0.100 total time=12.556..15.118 rows=11138..11540 loops=1..1)
                                                         Sort Key: tsr_bp.sourceid
                                                         ->  Index Scan using idx_tsrbp_eecmd_90002_1 on timeseriesresult_13_1 tsr_bp  (cost=0.07..114733869.86 rows=11472 width=391)
                                                               DN (actual startup time=0.037..0.096 total time=11.735..14.289 rows=11138..11540 loops=1..1)
                                                               Index Cond: ((sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint))
                                                   ->  Bitmap Heap Scan on final_dr3_run90002_flat_environment_10  (cost=1.12..835.46 rows=1 width=68)
                                                         DN (actual startup time=0.001..0.002 total time=0.001..0.002 rows=0..0 loops=11138..11540)
                                                         Recheck Cond: ((sourceid = tsr_bp.sourceid) AND (sourceid >= '13677065656154881'::bigint))
                                                         ->  Bitmap Index Scan on pk_final_dr3_run90002_flat_environment_10  (cost=0.00..1.12 rows=1 width=0)
                                                               DN (actual startup time=0.001..0.001 total time=0.001..0.001 rows=0..0 loops=11138..11540)
                                                               Index Cond: ((sourceid = tsr_bp.sourceid) AND (sourceid >= '13677065656154881'::bigint))
                                             ->  Materialize  (cost=0.08..114763942.34 rows=11475 width=391)
                                                   DN (actual startup time=0.030..0.059 total time=14.399..3405.053 rows=11118..11544 loops=1..1)
                                                   ->  Merge Append  (cost=0.08..114763925.13 rows=11475 width=391)
                                                         DN (actual startup time=0.021..0.048 total time=12.068..3401.297 rows=11118..11544 loops=1..1)
                                                         Sort Key: tsr_rp.sourceid
                                                         ->  Index Scan using idx_tsrrp_eecmd_90002_1 on timeseriesresult_13_1 tsr_rp  (cost=0.07..114763873.49 rows=11475 width=391)
                                                               DN (actual startup time=0.021..0.048 total time=11.291..3400.384 rows=11118..11544 loops=1..1)
                                                               Index Cond: ((sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint))
                                       ->  Append  (cost=0.08..834.63 rows=1 width=391)
                                             DN (actual startup time=0.004..0.048 total time=0.004..0.048 rows=1..1 loops=1621..1738)
                                             ->  Bitmap Heap Scan on timeseriesresult_13_1 tsr_g  (cost=0.08..834.63 rows=1 width=391)
                                                   DN (actual startup time=0.003..0.046 total time=0.003..0.046 rows=1..1 loops=1621..1738)
                                                   Recheck Cond: ((sourceid = final_dr3_run90002_flat_environment_10.sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint) AND (sourceid <= '20800599629677184'::bigint) AND (catalogid = '2'::smallint) AND (runid = 90002) AND (ftimeseriestype = 139107))
                                                   ->  Bitmap Index Scan on idx_tsrg_eecmd_90002_1  (cost=0.00..0.08 rows=1 width=0)
                                                         DN (actual startup time=0.001..0.002 total time=0.001..0.002 rows=1..1 loops=1621..1738)
                                                         Index Cond: ((sourceid = final_dr3_run90002_flat_environment_10.sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint) AND (sourceid <= '20800599629677184'::bigint))
                                 ->  Append  (cost=1.12..835.46 rows=1 width=26)
                                       DN (actual startup time=0.004..0.005 total time=0.004..0.005 rows=1..1 loops=1621..1738)
                                       ->  Bitmap Heap Scan on source_1 s  (cost=1.12..835.46 rows=1 width=26)
                                             DN (actual startup time=0.002..0.003 total time=0.003..0.004 rows=1..1 loops=1621..1738)
                                             Recheck Cond: ((sourceid = final_dr3_run90002_flat_environment_10.sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint) AND (catalogid = '2'::smallint))
                                             ->  Bitmap Index Scan on source_1_pkey  (cost=0.00..1.12 rows=1 width=0)
                                                   DN (actual startup time=0.001..0.002 total time=0.001..0.002 rows=1..1 loops=1621..1738)
                                                   Index Cond: ((sourceid = final_dr3_run90002_flat_environment_10.sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint))
                           ->  Append  (cost=1.13..835.67 rows=1 width=1008)
                                 DN (actual startup time=0.004..2.117 total time=0.004..2.117 rows=1..1 loops=1621..1738)
                                 ->  Bitmap Heap Scan on ts_1 ts_bp  (cost=1.13..835.67 rows=1 width=1008)
                                       DN (actual startup time=0.003..2.116 total time=0.003..2.116 rows=1..1 loops=1621..1738)
                                       Recheck Cond: ((sourceid = final_dr3_run90002_flat_environment_10.sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint) AND (ftimeseriestype = '2'::smallint) AND (catalogid = '2'::smallint))
                                       ->  Bitmap Index Scan on ts_fix_1_pkey  (cost=0.00..1.13 rows=1 width=0)
                                             DN (actual startup time=0.002..0.005 total time=0.002..0.005 rows=1..1 loops=1621..1738)
                                             Index Cond: ((sourceid = final_dr3_run90002_flat_environment_10.sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint) AND (ftimeseriestype = '2'::smallint))
                     ->  Append  (cost=1.13..835.67 rows=1 width=1276)
                           DN (actual startup time=0.003..0.308 total time=0.004..0.308 rows=1..1 loops=1621..1738)
                           ->  Bitmap Heap Scan on ts_1 ts_g  (cost=1.13..835.67 rows=1 width=1276)
                                 DN (actual startup time=0.002..0.307 total time=0.002..0.308 rows=1..1 loops=1621..1738)
                                 Recheck Cond: ((sourceid = final_dr3_run90002_flat_environment_10.sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint) AND (ftimeseriestype = '1'::smallint) AND (catalogid = '2'::smallint))
                                 ->  Bitmap Index Scan on ts_fix_1_pkey  (cost=0.00..1.13 rows=1 width=0)
                                       DN (actual startup time=0.001..0.002 total time=0.001..0.002 rows=1..1 loops=1621..1738)
                                       Index Cond: ((sourceid = final_dr3_run90002_flat_environment_10.sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint) AND (ftimeseriestype = '1'::smallint))
               ->  Index Scan using uq_final_dr3_export_helper on final_dr3_export_helper  (cost=0.11..2090176.13 rows=209 width=125)
                     DN (actual startup time=0.005..0.007 total time=0.074..0.103 rows=197..231 loops=1621..1738)
                     Index Cond: ((sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint))
   ->  Materialize  (cost=101.75..80938.36 rows=1 width=74) (actual time=87.905..87.969 rows=1 loops=2582)
         ->  Nested Loop  (cost=101.75..80938.36 rows=1 width=74) (actual time=87.905..87.969 rows=1 loops=2582)
               ->  Result  (cost=0.00..10000.53 rows=1 width=32) (actual time=3.664..3.664 rows=1 loops=2582)
               ->  Materialize  (cost=101.75..50937.84 rows=1 width=74) (actual time=84.239..84.302 rows=1 loops=2582)
                     ->  Nested Loop  (cost=101.75..50937.83 rows=1 width=74) (actual time=84.238..84.302 rows=1 loops=2582)
                           ->  Remote Subquery Scan on all (datanode1,datanode10,datanode11,datanode12,datanode2,datanode3,datanode4,datanode5,datanode6,datanode7,datanode8,datanode9)  (cost=101.13..936.68 rows=1 width=1008) (actual time=3.697..3.759 rows=1 loops=2582)
                                 ->  Append  (cost=1.13..835.67 rows=1 width=1008)
                                       DN (actual startup time=0.016..0.044 total time=0.016..0.045 rows=1..1 loops=1..1)
                                       ->  Bitmap Heap Scan on ts_1 ts_rp  (cost=1.13..835.67 rows=1 width=1008)
                                             DN (actual startup time=0.016..0.043 total time=0.016..0.044 rows=1..1 loops=1..1)
                                             Recheck Cond: ((sourceid = sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint) AND (ftimeseriestype = '3'::smallint) AND (catalogid = '2'::smallint))
                                             ->  Bitmap Index Scan on ts_fix_1_pkey  (cost=0.00..1.13 rows=1 width=0)
  DN (actual startup time=0.002..0.005 total time=0.002..0.005 rows=1..1 loops=1621..1738)
                                             Index Cond: ((sourceid = final_dr3_run90002_flat_environment_10.sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint) AND (ftimeseriestype = '2'::smallint))
                     ->  Append  (cost=1.13..835.67 rows=1 width=1276)
                           DN (actual startup time=0.003..0.308 total time=0.004..0.308 rows=1..1 loops=1621..1738)
                           ->  Bitmap Heap Scan on ts_1 ts_g  (cost=1.13..835.67 rows=1 width=1276)
                                 DN (actual startup time=0.002..0.307 total time=0.002..0.308 rows=1..1 loops=1621..1738)
                                 Recheck Cond: ((sourceid = final_dr3_run90002_flat_environment_10.sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint) AND (ftimeseriestype = '1'::smallint) AND (catalogid = '2'::smallint))
                                 ->  Bitmap Index Scan on ts_fix_1_pkey  (cost=0.00..1.13 rows=1 width=0)
                                       DN (actual startup time=0.001..0.002 total time=0.001..0.002 rows=1..1 loops=1621..1738)
                                       Index Cond: ((sourceid = final_dr3_run90002_flat_environment_10.sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint) AND (ftimeseriestype = '1'::smallint))
               ->  Index Scan using uq_final_dr3_export_helper on final_dr3_export_helper  (cost=0.11..2090176.13 rows=209 width=125)
                     DN (actual startup time=0.005..0.007 total time=0.074..0.103 rows=197..231 loops=1621..1738)
                     Index Cond: ((sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint))
   ->  Materialize  (cost=101.75..80938.36 rows=1 width=74) (actual time=87.905..87.969 rows=1 loops=2582)
         ->  Nested Loop  (cost=101.75..80938.36 rows=1 width=74) (actual time=87.905..87.969 rows=1 loops=2582)
               ->  Result  (cost=0.00..10000.53 rows=1 width=32) (actual time=3.664..3.664 rows=1 loops=2582)
               ->  Materialize  (cost=101.75..50937.84 rows=1 width=74) (actual time=84.239..84.302 rows=1 loops=2582)
                     ->  Nested Loop  (cost=101.75..50937.83 rows=1 width=74) (actual time=84.238..84.302 rows=1 loops=2582)
                           ->  Remote Subquery Scan on all (datanode1,datanode10,datanode11,datanode12,datanode2,datanode3,datanode4,datanode5,datanode6,datanode7,datanode8,datanode9)  (cost=101.13..936.68 rows=1 width=1008) (actual time=3.697..3.759 rows=1 loops=2582)
                                 ->  Append  (cost=1.13..835.67 rows=1 width=1008)
                                       DN (actual startup time=0.016..0.044 total time=0.016..0.045 rows=1..1 loops=1..1)
                                       ->  Bitmap Heap Scan on ts_1 ts_rp  (cost=1.13..835.67 rows=1 width=1008)
                                             DN (actual startup time=0.016..0.043 total time=0.016..0.044 rows=1..1 loops=1..1)
                                             Recheck Cond: ((sourceid = sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint) AND (ftimeseriestype = '3'::smallint) AND (catalogid = '2'::smallint))
                                             ->  Bitmap Index Scan on ts_fix_1_pkey  (cost=0.00..1.13 rows=1 width=0)
                                                   DN (actual startup time=0.011..0.032 total time=0.011..0.032 rows=1..1 loops=1..1)
                                                   Index Cond: ((sourceid = sourceid) AND (sourceid >= '13677065656154881'::bigint) AND (sourceid <= '20800599629677184'::bigint) AND (ftimeseriestype = '3'::smallint))
                           ->  Nested Loop  (cost=0.63..40001.15 rows=1 width=64) (actual time=80.534..80.535 rows=1 loops=2582)
                                 ->  Result  (cost=0.00..10000.53 rows=1 width=32) (actual time=3.555..3.556 rows=1 loops=2582)
                                 ->  Function Scan on remove_filtered bp_rp  (cost=0.63..10000.63 rows=1 width=64) (actual time=76.976..76.977 rows=1 loops=2582)
 Planning time: 399.474 ms
 Execution time: 228189.382 ms
(92 rows)

Normally such query could be pushed down,but as you see it does not happen and the error is a quasi-blocker for us. Let us know please if you could think of a workaround - otherwise we probably go back to pre v2.2 code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions