: failed to create object\n");         fprintf(stderr, "%s", PQerrorMessage(conn));         return 0;       }        fd = open(FILE_TO_EXPORT, O_CREATE | O_WRONLY, 0000);       if (fd < 0)       {         fprintf(stderr, "open: failed to open file %s\n", FILE_TO_EXPORT);         return 0;       }        