File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 1515#include  "catalog/index.h" 
1616#endif 
1717
18+ #if  PG_VERSION_NUM  >= 120000 
19+ #include  "catalog/pg_extension_d.h" 
20+ #endif 
21+ 
1822PG_MODULE_MAGIC ;
1923
2024PG_FUNCTION_INFO_V1 (_p );
@@ -206,10 +210,17 @@ get_sr_plan_schema(void)
206210	if  (ext_schema  ==  InvalidOid )
207211		return  InvalidOid ; /* exit if sr_plan does not exist */ 
208212
213+ #if  PG_VERSION_NUM  >= 120000 
214+ 	ScanKeyInit (& entry [0 ],
215+ 				Anum_pg_extension_oid ,
216+ 				BTEqualStrategyNumber , F_OIDEQ ,
217+ 				ObjectIdGetDatum (ext_schema ));
218+ #else 
209219	ScanKeyInit (& entry [0 ],
210220				ObjectIdAttributeNumber ,
211221				BTEqualStrategyNumber , F_OIDEQ ,
212222				ObjectIdGetDatum (ext_schema ));
223+ #endif 
213224
214225	rel  =  heap_open (ExtensionRelationId , heap_lock );
215226	scandesc  =  systable_beginscan (rel , ExtensionOidIndexId , true,
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments