Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb8f23af

Browse files
committed
Back out patch for BLOB operations until approval.
1 parentc655935 commitb8f23af

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

‎src/backend/storage/large_object/inv_api.c

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
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)
6464
Oidfile_oid;
6565
LargeObjectDesc*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
{
121118
LargeObjectDesc*retval;
122119

123-
if (!IsTransactionBlock())
124-
elog(ERROR,"inv_open: Not in transaction. BLOBs should be used inside transaction.");
125-
126120
if (!LargeObjectExists(lobjId))
127121
elog(ERROR,"inv_open: large object %u not found",lobjId);
128122

@@ -151,9 +145,6 @@ inv_open(Oid lobjId, int flags)
151145
void
152146
inv_close(LargeObjectDesc*obj_desc)
153147
{
154-
if (!IsTransactionBlock())
155-
elog(ERROR,"inv_close: Not in transaction. BLOBs should be used inside transaction.");
156-
157148
Assert(PointerIsValid(obj_desc));
158149

159150
if (obj_desc->flags&IFS_WRLOCK)
@@ -173,9 +164,6 @@ inv_close(LargeObjectDesc *obj_desc)
173164
int
174165
inv_drop(OidlobjId)
175166
{
176-
if (!IsTransactionBlock())
177-
elog(ERROR,"inv_drop: Not in transaction. BLOBs should be used inside transaction.");
178-
179167
LargeObjectDrop(lobjId);
180168

181169
/*
@@ -260,9 +248,6 @@ inv_getsize(LargeObjectDesc *obj_desc)
260248
int
261249
inv_seek(LargeObjectDesc*obj_desc,intoffset,intwhence)
262250
{
263-
if (!IsTransactionBlock())
264-
elog(ERROR,"inv_seek: Not in transaction. BLOBs should be used inside transaction.");
265-
266251
Assert(PointerIsValid(obj_desc));
267252

268253
switch (whence)
@@ -295,9 +280,6 @@ inv_seek(LargeObjectDesc *obj_desc, int offset, int whence)
295280
int
296281
inv_tell(LargeObjectDesc*obj_desc)
297282
{
298-
if (!IsTransactionBlock())
299-
elog(ERROR,"inv_tell: Not in transaction. BLOBs should be used inside transaction.");
300-
301283
Assert(PointerIsValid(obj_desc));
302284

303285
returnobj_desc->offset;
@@ -321,9 +303,6 @@ inv_read(LargeObjectDesc *obj_desc, char *buf, int nbytes)
321303
bytea*datafield;
322304
boolpfreeit;
323305

324-
if (!IsTransactionBlock())
325-
elog(ERROR,"inv_read: Not in transaction. BLOBs should be used inside transaction.");
326-
327306
Assert(PointerIsValid(obj_desc));
328307
Assert(buf!=NULL);
329308

@@ -436,9 +415,6 @@ inv_write(LargeObjectDesc *obj_desc, char *buf, int nbytes)
436415
boolwrite_indices;
437416
Relationidescs[Num_pg_largeobject_indices];
438417

439-
if (!IsTransactionBlock())
440-
elog(ERROR,"inv_write: Not in transaction. BLOBs should be used inside transaction.");
441-
442418
Assert(PointerIsValid(obj_desc));
443419
Assert(buf!=NULL);
444420

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp