| 98 | extern bool Debug_appendonly_print_verify_write_block; |
| 99 | |
| 100 | static inline void AOSegfileFormatVersion_CheckValid(int version) |
| 101 | { |
| 102 | if (!AOSegfileFormatVersion_IsValid(version)) |
| 103 | { |
| 104 | ereport(Debug_appendonly_print_verify_write_block?PANIC:ERROR, |
| 105 | (errcode(ERRCODE_INVALID_PARAMETER_VALUE), |
| 106 | errmsg("append-only table version %d is invalid", version), |
| 107 | errprintstack(true))); |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | /* |
| 112 | * Versions higher than AOSegfileFormatVersion_Original include the fixes for AOBlock and |
no test coverage detected