PG_RETURN_DATUM( HeapTupleGetDatum(tuple) );
}
+#ifdef FIO_HAVE_FADVISE
/*
* pgfadvise_file
*/
return 0;
}
+#else
+static int
+pgfadvise_file(char *filename, int advice, pgfadviseStruct *pgfdv)
+{
+ elog(ERROR, "POSIX_FADVISE UNSUPPORTED on your platform");
+ return 9;
+}
+#endif
/*
* pgfadvise is a function that handle the process to have a sharelock
}
}
+#ifdef FIO_HAVE_FADVISE
/*
* pgfadvise_file
*/
return 0;
}
+#else
+static int
+pgfadvise_loader_file(char *filename,
+ bool willneed, bool dontneed, VarBit *databit,
+ pgfloaderStruct *pgfloader)
+{
+ elog(ERROR, "POSIX_FADVISE UNSUPPORTED on your platform");
+ return 9;
+}
+#endif
/*
*