*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.81 2001/01/21 03:49:14 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.82 2001/01/21 03:50:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
Oid file_oid;
LargeObjectDesc *retval;
- if (!IsTransactionBlock())
- elog(ERROR, "inv_create: Not in transaction. BLOBs should be used inside transaction.");
-
/*
* Allocate an OID to be the LO's identifier.
*/
{
LargeObjectDesc *retval;
- if (!IsTransactionBlock())
- elog(ERROR, "inv_open: Not in transaction. BLOBs should be used inside transaction.");
-
if (! LargeObjectExists(lobjId))
elog(ERROR, "inv_open: large object %u not found", lobjId);
void
inv_close(LargeObjectDesc *obj_desc)
{
- if (!IsTransactionBlock())
- elog(ERROR, "inv_close: Not in transaction. BLOBs should be used inside transaction.");
-
Assert(PointerIsValid(obj_desc));
if (obj_desc->flags & IFS_WRLOCK)
int
inv_drop(Oid lobjId)
{
- if (!IsTransactionBlock())
- elog(ERROR, "inv_drop: Not in transaction. BLOBs should be used inside transaction.");
-
LargeObjectDrop(lobjId);
/*
int
inv_seek(LargeObjectDesc *obj_desc, int offset, int whence)
{
- if (!IsTransactionBlock())
- elog(ERROR, "inv_seek: Not in transaction. BLOBs should be used inside transaction.");
-
Assert(PointerIsValid(obj_desc));
switch (whence)
int
inv_tell(LargeObjectDesc *obj_desc)
{
- if (!IsTransactionBlock())
- elog(ERROR, "inv_tell: Not in transaction. BLOBs should be used inside transaction.");
-
Assert(PointerIsValid(obj_desc));
return obj_desc->offset;
bytea *datafield;
bool pfreeit;
- if (!IsTransactionBlock())
- elog(ERROR, "inv_read: Not in transaction. BLOBs should be used inside transaction.");
-
Assert(PointerIsValid(obj_desc));
Assert(buf != NULL);
bool write_indices;
Relation idescs[Num_pg_largeobject_indices];
- if (!IsTransactionBlock())
- elog(ERROR, "inv_write: Not in transaction. BLOBs should be used inside transaction.");
-
Assert(PointerIsValid(obj_desc));
Assert(buf != NULL);