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
dcd2332a
Commit
dcd2332a
authored
28 years ago
by
Marc G. Fournier
Browse files
Options
Downloads
Patches
Plain Diff
Patch from Sven Verdoolaege <skimo@breughel.ufsia.ac.be> for large_objects
parent
812a6c2b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/backend/libpq/be-fsstubs.c
+12
-2
12 additions, 2 deletions
src/backend/libpq/be-fsstubs.c
src/backend/utils/error/elog.c
+3
-2
3 additions, 2 deletions
src/backend/utils/error/elog.c
src/backend/utils/error/exc.c
+3
-2
3 additions, 2 deletions
src/backend/utils/error/exc.c
with
18 additions
and
6 deletions
src/backend/libpq/be-fsstubs.c
+
12
−
2
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
199
6/11/15 18:38:20 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.
6
199
7/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
...
...
This diff is collapsed.
Click to expand it.
src/backend/utils/error/elog.c
+
3
−
2
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/1
2
21:
1
0:
5
3 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.1
4
1997/03/1
8
21:
3
0:3
9
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
...
...
This diff is collapsed.
Click to expand it.
src/backend/utils/error/exc.c
+
3
−
2
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/1
2
21:
1
0:
56
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/exc.c,v 1.1
1
1997/03/1
8
21:
3
0:
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 */
...
...
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