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
a0e87ad7
Commit
a0e87ad7
authored
Sep 07, 2006
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Specify lo_write() to take a _const_ buffer, to match documentation.
parent
803d9c39
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
12 deletions
+12
-12
src/backend/libpq/be-fsstubs.c
src/backend/libpq/be-fsstubs.c
+2
-2
src/backend/storage/large_object/inv_api.c
src/backend/storage/large_object/inv_api.c
+2
-2
src/include/libpq/be-fsstubs.h
src/include/libpq/be-fsstubs.h
+2
-2
src/include/storage/large_object.h
src/include/storage/large_object.h
+2
-2
src/interfaces/libpq/fe-lobj.c
src/interfaces/libpq/fe-lobj.c
+2
-2
src/interfaces/libpq/libpq-fe.h
src/interfaces/libpq/libpq-fe.h
+2
-2
No files found.
src/backend/libpq/be-fsstubs.c
View file @
a0e87ad7
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/libpq/be-fsstubs.c,v 1.8
2 2006/04/26 00:34:57 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/libpq/be-fsstubs.c,v 1.8
3 2006/09/07 15:37:25 momjian
Exp $
*
* NOTES
* This should be moved to a more appropriate place. It is here
...
...
@@ -165,7 +165,7 @@ lo_read(int fd, char *buf, int len)
}
int
lo_write
(
int
fd
,
char
*
buf
,
int
len
)
lo_write
(
int
fd
,
c
onst
c
har
*
buf
,
int
len
)
{
int
status
;
...
...
src/backend/storage/large_object/inv_api.c
View file @
a0e87ad7
...
...
@@ -17,7 +17,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/storage/large_object/inv_api.c,v 1.1
19 2006/07/31 20:09:05 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/storage/large_object/inv_api.c,v 1.1
20 2006/09/07 15:37:25 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -488,7 +488,7 @@ inv_read(LargeObjectDesc *obj_desc, char *buf, int nbytes)
}
int
inv_write
(
LargeObjectDesc
*
obj_desc
,
char
*
buf
,
int
nbytes
)
inv_write
(
LargeObjectDesc
*
obj_desc
,
c
onst
c
har
*
buf
,
int
nbytes
)
{
int
nwritten
=
0
;
int
n
;
...
...
src/include/libpq/be-fsstubs.h
View file @
a0e87ad7
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/libpq/be-fsstubs.h,v 1.2
6 2006/03/05 15:58:56
momjian Exp $
* $PostgreSQL: pgsql/src/include/libpq/be-fsstubs.h,v 1.2
7 2006/09/07 15:37:25
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -41,7 +41,7 @@ extern Datum lo_unlink(PG_FUNCTION_ARGS);
* but too late now...
*/
extern
int
lo_read
(
int
fd
,
char
*
buf
,
int
len
);
extern
int
lo_write
(
int
fd
,
char
*
buf
,
int
len
);
extern
int
lo_write
(
int
fd
,
c
onst
c
har
*
buf
,
int
len
);
/*
* Cleanup LOs at xact commit/abort
...
...
src/include/storage/large_object.h
View file @
a0e87ad7
...
...
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/storage/large_object.h,v 1.3
4 2006/04/26 00:34:57 tgl
Exp $
* $PostgreSQL: pgsql/src/include/storage/large_object.h,v 1.3
5 2006/09/07 15:37:25 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -77,6 +77,6 @@ extern int inv_drop(Oid lobjId);
extern
int
inv_seek
(
LargeObjectDesc
*
obj_desc
,
int
offset
,
int
whence
);
extern
int
inv_tell
(
LargeObjectDesc
*
obj_desc
);
extern
int
inv_read
(
LargeObjectDesc
*
obj_desc
,
char
*
buf
,
int
nbytes
);
extern
int
inv_write
(
LargeObjectDesc
*
obj_desc
,
char
*
buf
,
int
nbytes
);
extern
int
inv_write
(
LargeObjectDesc
*
obj_desc
,
c
onst
c
har
*
buf
,
int
nbytes
);
#endif
/* LARGE_OBJECT_H */
src/interfaces/libpq/fe-lobj.c
View file @
a0e87ad7
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-lobj.c,v 1.5
8 2006/06/14 17:49:25 tgl
Exp $
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-lobj.c,v 1.5
9 2006/09/07 15:37:25 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -172,7 +172,7 @@ lo_read(PGconn *conn, int fd, char *buf, size_t len)
* returns the number of bytes written, or -1 on failure.
*/
int
lo_write
(
PGconn
*
conn
,
int
fd
,
char
*
buf
,
size_t
len
)
lo_write
(
PGconn
*
conn
,
int
fd
,
c
onst
c
har
*
buf
,
size_t
len
)
{
PQArgBlock
argv
[
2
];
PGresult
*
res
;
...
...
src/interfaces/libpq/libpq-fe.h
View file @
a0e87ad7
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/interfaces/libpq/libpq-fe.h,v 1.13
2 2006/08/18 19:52:39 tgl
Exp $
* $PostgreSQL: pgsql/src/interfaces/libpq/libpq-fe.h,v 1.13
3 2006/09/07 15:37:25 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -483,7 +483,7 @@ PQprintTuples(const PGresult *res,
extern
int
lo_open
(
PGconn
*
conn
,
Oid
lobjId
,
int
mode
);
extern
int
lo_close
(
PGconn
*
conn
,
int
fd
);
extern
int
lo_read
(
PGconn
*
conn
,
int
fd
,
char
*
buf
,
size_t
len
);
extern
int
lo_write
(
PGconn
*
conn
,
int
fd
,
char
*
buf
,
size_t
len
);
extern
int
lo_write
(
PGconn
*
conn
,
int
fd
,
c
onst
c
har
*
buf
,
size_t
len
);
extern
int
lo_lseek
(
PGconn
*
conn
,
int
fd
,
int
offset
,
int
whence
);
extern
Oid
lo_creat
(
PGconn
*
conn
,
int
mode
);
extern
Oid
lo_create
(
PGconn
*
conn
,
Oid
lobjId
);
...
...
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