Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
b8f23aff
Commit
b8f23aff
authored
Jan 21, 2001
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Back out patch for BLOB operations until approval.
parent
c6559352
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
25 deletions
+1
-25
src/backend/storage/large_object/inv_api.c
src/backend/storage/large_object/inv_api.c
+1
-25
No files found.
src/backend/storage/large_object/inv_api.c
View file @
b8f23aff
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
*
*
*
*
* IDENTIFICATION
* 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)
...
@@ -64,9 +64,6 @@ inv_create(int flags)
Oid
file_oid
;
Oid
file_oid
;
LargeObjectDesc
*
retval
;
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.
* Allocate an OID to be the LO's identifier.
*/
*/
...
@@ -120,9 +117,6 @@ inv_open(Oid lobjId, int flags)
...
@@ -120,9 +117,6 @@ inv_open(Oid lobjId, int flags)
{
{
LargeObjectDesc
*
retval
;
LargeObjectDesc
*
retval
;
if
(
!
IsTransactionBlock
())
elog
(
ERROR
,
"inv_open: Not in transaction. BLOBs should be used inside transaction."
);
if
(
!
LargeObjectExists
(
lobjId
))
if
(
!
LargeObjectExists
(
lobjId
))
elog
(
ERROR
,
"inv_open: large object %u not found"
,
lobjId
);
elog
(
ERROR
,
"inv_open: large object %u not found"
,
lobjId
);
...
@@ -151,9 +145,6 @@ inv_open(Oid lobjId, int flags)
...
@@ -151,9 +145,6 @@ inv_open(Oid lobjId, int flags)
void
void
inv_close
(
LargeObjectDesc
*
obj_desc
)
inv_close
(
LargeObjectDesc
*
obj_desc
)
{
{
if
(
!
IsTransactionBlock
())
elog
(
ERROR
,
"inv_close: Not in transaction. BLOBs should be used inside transaction."
);
Assert
(
PointerIsValid
(
obj_desc
));
Assert
(
PointerIsValid
(
obj_desc
));
if
(
obj_desc
->
flags
&
IFS_WRLOCK
)
if
(
obj_desc
->
flags
&
IFS_WRLOCK
)
...
@@ -173,9 +164,6 @@ inv_close(LargeObjectDesc *obj_desc)
...
@@ -173,9 +164,6 @@ inv_close(LargeObjectDesc *obj_desc)
int
int
inv_drop
(
Oid
lobjId
)
inv_drop
(
Oid
lobjId
)
{
{
if
(
!
IsTransactionBlock
())
elog
(
ERROR
,
"inv_drop: Not in transaction. BLOBs should be used inside transaction."
);
LargeObjectDrop
(
lobjId
);
LargeObjectDrop
(
lobjId
);
/*
/*
...
@@ -260,9 +248,6 @@ inv_getsize(LargeObjectDesc *obj_desc)
...
@@ -260,9 +248,6 @@ inv_getsize(LargeObjectDesc *obj_desc)
int
int
inv_seek
(
LargeObjectDesc
*
obj_desc
,
int
offset
,
int
whence
)
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
));
Assert
(
PointerIsValid
(
obj_desc
));
switch
(
whence
)
switch
(
whence
)
...
@@ -295,9 +280,6 @@ inv_seek(LargeObjectDesc *obj_desc, int offset, int whence)
...
@@ -295,9 +280,6 @@ inv_seek(LargeObjectDesc *obj_desc, int offset, int whence)
int
int
inv_tell
(
LargeObjectDesc
*
obj_desc
)
inv_tell
(
LargeObjectDesc
*
obj_desc
)
{
{
if
(
!
IsTransactionBlock
())
elog
(
ERROR
,
"inv_tell: Not in transaction. BLOBs should be used inside transaction."
);
Assert
(
PointerIsValid
(
obj_desc
));
Assert
(
PointerIsValid
(
obj_desc
));
return
obj_desc
->
offset
;
return
obj_desc
->
offset
;
...
@@ -321,9 +303,6 @@ inv_read(LargeObjectDesc *obj_desc, char *buf, int nbytes)
...
@@ -321,9 +303,6 @@ inv_read(LargeObjectDesc *obj_desc, char *buf, int nbytes)
bytea
*
datafield
;
bytea
*
datafield
;
bool
pfreeit
;
bool
pfreeit
;
if
(
!
IsTransactionBlock
())
elog
(
ERROR
,
"inv_read: Not in transaction. BLOBs should be used inside transaction."
);
Assert
(
PointerIsValid
(
obj_desc
));
Assert
(
PointerIsValid
(
obj_desc
));
Assert
(
buf
!=
NULL
);
Assert
(
buf
!=
NULL
);
...
@@ -436,9 +415,6 @@ inv_write(LargeObjectDesc *obj_desc, char *buf, int nbytes)
...
@@ -436,9 +415,6 @@ inv_write(LargeObjectDesc *obj_desc, char *buf, int nbytes)
bool
write_indices
;
bool
write_indices
;
Relation
idescs
[
Num_pg_largeobject_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
(
PointerIsValid
(
obj_desc
));
Assert
(
buf
!=
NULL
);
Assert
(
buf
!=
NULL
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment