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
dcd2332a
Commit
dcd2332a
authored
Mar 18, 1997
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch from Sven Verdoolaege <skimo@breughel.ufsia.ac.be> for large_objects
parent
812a6c2b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
6 deletions
+18
-6
src/backend/libpq/be-fsstubs.c
src/backend/libpq/be-fsstubs.c
+12
-2
src/backend/utils/error/elog.c
src/backend/utils/error/elog.c
+3
-2
src/backend/utils/error/exc.c
src/backend/utils/error/exc.c
+3
-2
No files found.
src/backend/libpq/be-fsstubs.c
View file @
dcd2332a
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.
5 1996/11/15 18:38:20 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.
6 1997/03/18 21:29:21 scrappy
Exp $
*
*
* NOTES
* NOTES
* This should be moved to a more appropriate place. It is here
* This should be moved to a more appropriate place. It is here
...
@@ -140,11 +140,21 @@ lo_write(int fd, char *buf, int len)
...
@@ -140,11 +140,21 @@ lo_write(int fd, char *buf, int len)
int
int
lo_lseek
(
int
fd
,
int
offset
,
int
whence
)
lo_lseek
(
int
fd
,
int
offset
,
int
whence
)
{
{
MemoryContext
currentContext
;
int
ret
;
if
(
fd
>=
MAX_LOBJ_FDS
)
{
if
(
fd
>=
MAX_LOBJ_FDS
)
{
elog
(
WARN
,
"lo_seek: large obj descriptor (%d) out of range"
,
fd
);
elog
(
WARN
,
"lo_seek: large obj descriptor (%d) out of range"
,
fd
);
return
-
2
;
return
-
2
;
}
}
return
inv_seek
(
cookies
[
fd
],
offset
,
whence
);
currentContext
=
MemoryContextSwitchTo
((
MemoryContext
)
fscxt
);
ret
=
inv_seek
(
cookies
[
fd
],
offset
,
whence
);
MemoryContextSwitchTo
(
currentContext
);
return
ret
;
}
}
Oid
Oid
...
...
src/backend/utils/error/elog.c
View file @
dcd2332a
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.1
3 1997/03/12 21:10:53
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.1
4 1997/03/18 21:30:39
scrappy Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -50,7 +50,8 @@ elog(int lev, const char *fmt, ... )
...
@@ -50,7 +50,8 @@ elog(int lev, const char *fmt, ... )
#if !defined(BSD44_derived) && \
#if !defined(BSD44_derived) && \
!defined(bsdi) && \
!defined(bsdi) && \
!defined(bsdi_2_1) && \
!defined(bsdi_2_1) && \
!defined(linuxalpha)
!defined(linuxalpha) && \
!defined(__GLIBC__)
extern
char
*
sys_errlist
[];
extern
char
*
sys_errlist
[];
#endif
/* bsd derived */
#endif
/* bsd derived */
#ifndef PG_STANDALONE
#ifndef PG_STANDALONE
...
...
src/backend/utils/error/exc.c
View file @
dcd2332a
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/exc.c,v 1.1
0 1997/03/12 21:10:56
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/exc.c,v 1.1
1 1997/03/18 21:30:41
scrappy Exp $
*
*
* NOTE
* NOTE
* XXX this code needs improvement--check for state violations and
* XXX this code needs improvement--check for state violations and
...
@@ -96,7 +96,8 @@ ExcPrint(Exception *excP,
...
@@ -96,7 +96,8 @@ ExcPrint(Exception *excP,
#if !defined(BSD44_derived) && \
#if !defined(BSD44_derived) && \
!defined(bsdi) && \
!defined(bsdi) && \
!defined(bsdi_2_1) && \
!defined(bsdi_2_1) && \
!defined(linuxalpha)
!defined(linuxalpha) && \
!defined(__GLIBC__)
extern
char
*
sys_errlist
[];
extern
char
*
sys_errlist
[];
#endif
/* ! bsd_derived */
#endif
/* ! bsd_derived */
...
...
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