write a chunk of data preceded by its length */
| 6755 | |
| 6756 | /* write a chunk of data preceded by its length */ |
| 6757 | static void |
| 6758 | write_item(const void *data, Size len, FILE *fp) |
| 6759 | { |
| 6760 | if (fwrite(&len, 1, sizeof(len), fp) != sizeof(len)) |
| 6761 | elog(FATAL, "could not write init file"); |
| 6762 | if (len > 0 && fwrite(data, 1, len, fp) != len) |
| 6763 | elog(FATAL, "could not write init file"); |
| 6764 | } |
| 6765 | |
| 6766 | /* |
| 6767 | * Determine whether a given relation (identified by OID) is one of the ones |
no outgoing calls
no test coverage detected