Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
b8f23aff
Commit
b8f23aff
authored
24 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Back out patch for BLOB operations until approval.
parent
c6559352
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/backend/storage/large_object/inv_api.c
+1
-25
1 addition, 25 deletions
src/backend/storage/large_object/inv_api.c
with
1 addition
and
25 deletions
src/backend/storage/large_object/inv_api.c
+
1
−
25
View file @
b8f23aff
...
...
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.8
1
2001/01/21 03:
49:14
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.8
2
2001/01/21 03:
50:25
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -64,9 +64,6 @@ inv_create(int flags)
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.
*/
...
...
@@ -120,9 +117,6 @@ inv_open(Oid lobjId, int flags)
{
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
);
...
...
@@ -151,9 +145,6 @@ inv_open(Oid lobjId, int flags)
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
)
...
...
@@ -173,9 +164,6 @@ inv_close(LargeObjectDesc *obj_desc)
int
inv_drop
(
Oid
lobjId
)
{
if
(
!
IsTransactionBlock
())
elog
(
ERROR
,
"inv_drop: Not in transaction. BLOBs should be used inside transaction."
);
LargeObjectDrop
(
lobjId
);
/*
...
...
@@ -260,9 +248,6 @@ inv_getsize(LargeObjectDesc *obj_desc)
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
)
...
...
@@ -295,9 +280,6 @@ inv_seek(LargeObjectDesc *obj_desc, int offset, int 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
;
...
...
@@ -321,9 +303,6 @@ inv_read(LargeObjectDesc *obj_desc, char *buf, int nbytes)
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
);
...
...
@@ -436,9 +415,6 @@ inv_write(LargeObjectDesc *obj_desc, char *buf, int nbytes)
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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment