99 *
1010 *
1111 * IDENTIFICATION
12- * $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.81 2001/01/21 03:49:14 momjian Exp $
12+ * $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.82 2001/01/21 03:50:25 momjian Exp $
1313 *
1414 *-------------------------------------------------------------------------
1515 */
@@ -64,9 +64,6 @@ inv_create(int flags)
6464Oid file_oid ;
6565LargeObjectDesc * retval ;
6666
67- if (!IsTransactionBlock ())
68- elog (ERROR ,"inv_create: Not in transaction. BLOBs should be used inside transaction." );
69-
7067/*
7168 * Allocate an OID to be the LO's identifier.
7269 */
@@ -120,9 +117,6 @@ inv_open(Oid lobjId, int flags)
120117{
121118LargeObjectDesc * retval ;
122119
123- if (!IsTransactionBlock ())
124- elog (ERROR ,"inv_open: Not in transaction. BLOBs should be used inside transaction." );
125-
126120if (!LargeObjectExists (lobjId ))
127121elog (ERROR ,"inv_open: large object %u not found" ,lobjId );
128122
@@ -151,9 +145,6 @@ inv_open(Oid lobjId, int flags)
151145void
152146inv_close (LargeObjectDesc * obj_desc )
153147{
154- if (!IsTransactionBlock ())
155- elog (ERROR ,"inv_close: Not in transaction. BLOBs should be used inside transaction." );
156-
157148Assert (PointerIsValid (obj_desc ));
158149
159150if (obj_desc -> flags & IFS_WRLOCK )
@@ -173,9 +164,6 @@ inv_close(LargeObjectDesc *obj_desc)
173164int
174165inv_drop (Oid lobjId )
175166{
176- if (!IsTransactionBlock ())
177- elog (ERROR ,"inv_drop: Not in transaction. BLOBs should be used inside transaction." );
178-
179167LargeObjectDrop (lobjId );
180168
181169/*
@@ -260,9 +248,6 @@ inv_getsize(LargeObjectDesc *obj_desc)
260248int
261249inv_seek (LargeObjectDesc * obj_desc ,int offset ,int whence )
262250{
263- if (!IsTransactionBlock ())
264- elog (ERROR ,"inv_seek: Not in transaction. BLOBs should be used inside transaction." );
265-
266251Assert (PointerIsValid (obj_desc ));
267252
268253switch (whence )
@@ -295,9 +280,6 @@ inv_seek(LargeObjectDesc *obj_desc, int offset, int whence)
295280int
296281inv_tell (LargeObjectDesc * obj_desc )
297282{
298- if (!IsTransactionBlock ())
299- elog (ERROR ,"inv_tell: Not in transaction. BLOBs should be used inside transaction." );
300-
301283Assert (PointerIsValid (obj_desc ));
302284
303285return obj_desc -> offset ;
@@ -321,9 +303,6 @@ inv_read(LargeObjectDesc *obj_desc, char *buf, int nbytes)
321303bytea * datafield ;
322304bool pfreeit ;
323305
324- if (!IsTransactionBlock ())
325- elog (ERROR ,"inv_read: Not in transaction. BLOBs should be used inside transaction." );
326-
327306Assert (PointerIsValid (obj_desc ));
328307Assert (buf != NULL );
329308
@@ -436,9 +415,6 @@ inv_write(LargeObjectDesc *obj_desc, char *buf, int nbytes)
436415bool write_indices ;
437416Relation idescs [Num_pg_largeobject_indices ];
438417
439- if (!IsTransactionBlock ())
440- elog (ERROR ,"inv_write: Not in transaction. BLOBs should be used inside transaction." );
441-
442418Assert (PointerIsValid (obj_desc ));
443419Assert (buf != NULL );
444420