mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 10:30:33 +03:00 
			
		
		
		
	This is primarily useful for the upcoming pg_xlogdump --stats feature, but also allows to remove some duplicated code in the rmgr_desc routines. Due to the separation and harmonization, the output of dipsplayed records changes somewhat. But since this isn't enduser oriented content that's ok. It's potentially desirable to further change pg_xlogdump's display of records. It previously wasn't possible to show the record type separately from the description forcing it to be in the last column. But that's better done in a separate commit. Author: Abhijit Menon-Sen, slightly editorialized by me Reviewed-By: Álvaro Herrera, Andres Freund, and Heikki Linnakangas Discussion: 20140604104716.GA3989@toroid.org
		
			
				
	
	
		
			23 lines
		
	
	
		
			411 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			411 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * rmgrdesc.h
 | |
|  *
 | |
|  * pg_xlogdump resource managers declaration
 | |
|  *
 | |
|  * contrib/pg_xlogdump/rmgrdesc.h
 | |
|  */
 | |
| #ifndef RMGRDESC_H
 | |
| #define RMGRDESC_H
 | |
| 
 | |
| #include "lib/stringinfo.h"
 | |
| 
 | |
| typedef struct RmgrDescData
 | |
| {
 | |
| 	const char *rm_name;
 | |
| 	void		(*rm_desc) (StringInfo buf, XLogRecord *record);
 | |
| 	const char *(*rm_identify) (uint8 info);
 | |
| } RmgrDescData;
 | |
| 
 | |
| extern const RmgrDescData RmgrDescTable[];
 | |
| 
 | |
| #endif   /* RMGRDESC_H */
 |