@@ -74,7 +74,7 @@ typedef struct SMgrRelationData
7474 char smgr_relpersistence ;
7575 /* pointer to storage manager */
7676 const struct f_smgr * smgr ;
77- /*pointer to AO storage manager */
77+ /*pointer to AO storage manager */
7878 const struct f_smgr_ao * smgr_ao ;
7979
8080 /*
@@ -131,24 +131,22 @@ typedef struct f_smgr
131131} f_smgr ;
132132
133133typedef struct f_smgr_ao {
134- off_t (* smgr_FileDiskSize ) (File file );
135- void (* smgr_FileClose ) (File file );
136- int (* smgr_FileTruncate ) (File file , int64 offset , uint32 wait_event_info );
137- File (* smgr_AORelOpenSegFile ) (const char * filePath , int fileFlags );
138- int (* smgr_FileWrite ) (File file , char * buffer , int amount , off_t offset , uint32 wait_event_info );
139- int (* smgr_FileRead ) (File file , char * buffer , int amount , off_t offset , uint32 wait_event_info );
140- int (* smgr_FileSync ) (File file , uint32 wait_event_info );
134+ off_t (* smgr_FileDiskSize ) (File file );
135+ void (* smgr_FileClose ) (File file );
136+ int (* smgr_FileTruncate ) (File file , int64 offset , uint32 wait_event_info );
137+ File (* smgr_AORelOpenSegFile ) (const char * filePath , int fileFlags );
138+ int (* smgr_FileWrite ) (File file , char * buffer , int amount , off_t offset , uint32 wait_event_info );
139+ int (* smgr_FileRead ) (File file , char * buffer , int amount , off_t offset , uint32 wait_event_info );
140+ int (* smgr_FileSync ) (File file , uint32 wait_event_info );
141141} f_smgr_ao ;
142142
143143
144144typedef void (* smgr_init_hook_type ) (void );
145145typedef void (* smgr_hook_type ) (SMgrRelation reln , BackendId backend , SMgrImpl which , Relation rel );
146146typedef void (* smgr_shutdown_hook_type ) (void );
147- typedef void (* smgrao_hook_type )(SMgrRelation reln , BackendId backend , SMgrImpl which , Relation rel );
148147extern PGDLLIMPORT smgr_init_hook_type smgr_init_hook ;
149148extern PGDLLIMPORT smgr_hook_type smgr_hook ;
150149extern PGDLLIMPORT smgr_shutdown_hook_type smgr_shutdown_hook ;
151- extern PGDLLIMPORT smgrao_hook_type smgrao_hook ;
152150
153151extern bool smgr_is_heap_relation (SMgrRelation reln );
154152
0 commit comments