Oid loOid = PG_GETARG_OID(0);
bytea *result;
+#ifdef PGXC
+ ereport(ERROR,
+ (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
+ errmsg("Postgres-XL does not yet support large objects"),
+ errdetail("The feature is not currently supported")));
+#endif
+
result = lo_get_fragment_internal(loOid, 0, -1);
PG_RETURN_BYTEA_P(result);
int32 nbytes = PG_GETARG_INT32(2);
bytea *result;
+#ifdef PGXC
+ ereport(ERROR,
+ (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
+ errmsg("Postgres-XL does not yet support large objects"),
+ errdetail("The feature is not currently supported")));
+#endif
+
if (nbytes < 0)
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
LargeObjectDesc *loDesc;
int written PG_USED_FOR_ASSERTS_ONLY;
+#ifdef PGXC
+ ereport(ERROR,
+ (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
+ errmsg("Postgres-XL does not yet support large objects"),
+ errdetail("The feature is not currently supported")));
+#endif
+
CreateFSContext();
loOid = inv_create(loOid);
LargeObjectDesc *loDesc;
int written PG_USED_FOR_ASSERTS_ONLY;
+#ifdef PGXC
+ ereport(ERROR,
+ (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
+ errmsg("Postgres-XL does not yet support large objects"),
+ errdetail("The feature is not currently supported")));
+#endif
+
CreateFSContext();
loDesc = inv_open(loOid, INV_WRITE, fscxt);
if (dopt->serializable_deferrable && AH->sync_snapshot_id == NULL)
ExecuteSqlStatement(AH,
"SET TRANSACTION ISOLATION LEVEL "
- "SERIALIZABLE, READ ONLY, DEFERRABLE");
+ "SERIALIZABLE, "
+#ifndef XCP
+ "READ ONLY, "
+#endif
+ "DEFERRABLE");
else
ExecuteSqlStatement(AH,
"SET TRANSACTION ISOLATION LEVEL "
- "REPEATABLE READ, READ ONLY");
+ "REPEATABLE READ"
+#ifndef XCP
+ ", READ ONLY"
+#endif
+ );
}
else if (AH->remoteVersion >= 70400)
{
* obtained from GTM.
*/
resetPQExpBuffer(query);
- appendPQExpBufferStr(query, "SELECT pg_catalog.setval(");
+ appendPQExpBufferStr(query, "SELECT pg_catalog.nextval(");
appendStringLiteralAH(query, fmtId(tbinfo->dobj.name), fout);
appendPQExpBuffer(query, ");\n");
res = ExecuteSqlQuery(fout, query->data, PGRES_TUPLES_OK);