@@ -17,6 +17,7 @@ pub mod pg_class;
17
17
pub mod pg_index;
18
18
pub mod pg_matviews_info;
19
19
pub mod pg_namespace;
20
+ pub mod pg_opclass;
20
21
pub mod pg_type;
21
22
pub mod pg_user;
22
23
@@ -40,6 +41,7 @@ use crate::catalog::pg_catalog::pg_class::*;
40
41
use crate :: catalog:: pg_catalog:: pg_index:: * ;
41
42
use crate :: catalog:: pg_catalog:: pg_matviews_info:: * ;
42
43
use crate :: catalog:: pg_catalog:: pg_namespace:: * ;
44
+ use crate :: catalog:: pg_catalog:: pg_opclass:: * ;
43
45
use crate :: catalog:: pg_catalog:: pg_type:: * ;
44
46
use crate :: catalog:: pg_catalog:: pg_user:: * ;
45
47
use crate :: catalog:: system_catalog:: SystemCatalog ;
@@ -92,6 +94,7 @@ impl SysCatalogReader for SysCatalogReaderImpl {
92
94
PG_USER_TABLE_NAME => self . read_user_info ( ) ,
93
95
PG_CLASS_TABLE_NAME => self . read_class_info ( ) ,
94
96
PG_INDEX_TABLE_NAME => self . read_index_info ( ) ,
97
+ PG_OPCLASS_TABLE_NAME => self . read_opclass_info ( ) ,
95
98
_ => {
96
99
Err ( ErrorCode :: ItemNotFound ( format ! ( "Invalid system table: {}" , table_name) ) . into ( ) )
97
100
}
@@ -209,6 +212,11 @@ impl SysCatalogReaderImpl {
209
212
. collect_vec ( ) )
210
213
}
211
214
215
+ // FIXME(noel): Tracked by <https://github.com/risingwavelabs/risingwave/issues/3431#issuecomment-1164160988>
216
+ fn read_opclass_info ( & self ) -> Result < Vec < Row > > {
217
+ Ok ( vec ! [ ] )
218
+ }
219
+
212
220
fn read_class_info ( & self ) -> Result < Vec < Row > > {
213
221
let reader = self . catalog_reader . read_guard ( ) ;
214
222
let schemas = reader. iter_schemas ( & self . auth_context . database ) ?;
@@ -390,6 +398,7 @@ pub(crate) static PG_CATALOG_MAP: LazyLock<HashMap<String, SystemCatalog>> = Laz
390
398
PG_USER_TABLE_NAME . to_string( ) => def_sys_catalog!( 5 , PG_USER_TABLE_NAME , PG_USER_COLUMNS ) ,
391
399
PG_CLASS_TABLE_NAME . to_string( ) => def_sys_catalog!( 6 , PG_CLASS_TABLE_NAME , PG_CLASS_COLUMNS ) ,
392
400
PG_INDEX_TABLE_NAME . to_string( ) => def_sys_catalog!( 7 , PG_INDEX_TABLE_NAME , PG_INDEX_COLUMNS ) ,
401
+ PG_OPCLASS_TABLE_NAME . to_string( ) => def_sys_catalog!( 8 , PG_OPCLASS_TABLE_NAME , PG_OPCLASS_COLUMNS ) ,
393
402
}
394
403
} ) ;
395
404
0 commit comments