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
092c7a6b
Commit
092c7a6b
authored
Nov 24, 1996
by
Bryan Henderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typecasts, etc. to make compile work on AIX. Thanks Darren King..
parent
d3f9d6ad
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
15 deletions
+15
-15
src/backend/storage/page/bufpage.c
src/backend/storage/page/bufpage.c
+7
-6
src/backend/utils/fmgr/dfmgr.c
src/backend/utils/fmgr/dfmgr.c
+2
-2
src/backend/utils/mmgr/palloc.c
src/backend/utils/mmgr/palloc.c
+4
-5
src/bin/psql/psql.c
src/bin/psql/psql.c
+2
-2
No files found.
src/backend/storage/page/bufpage.c
View file @
092c7a6b
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/page/bufpage.c,v 1.
4 1996/11/13 20:49:29 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/page/bufpage.c,v 1.
5 1996/11/24 04:41:29 bryanh
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -304,11 +304,13 @@ struct itemIdSortData {
...
@@ -304,11 +304,13 @@ struct itemIdSortData {
};
};
static
int
static
int
itemidcompare
(
struct
itemIdSortData
*
itemidp1
,
struct
itemIdSortData
*
itemidp2
)
itemidcompare
(
void
*
itemidp1
,
void
*
itemidp2
)
{
{
if
(
itemidp1
->
itemiddata
.
lp_off
==
itemidp2
->
itemiddata
.
lp_off
)
if
(((
struct
itemIdSortData
*
)
itemidp1
)
->
itemiddata
.
lp_off
==
((
struct
itemIdSortData
*
)
itemidp2
)
->
itemiddata
.
lp_off
)
return
(
0
);
return
(
0
);
else
if
(
itemidp1
->
itemiddata
.
lp_off
<
itemidp2
->
itemiddata
.
lp_off
)
else
if
(((
struct
itemIdSortData
*
)
itemidp1
)
->
itemiddata
.
lp_off
<
((
struct
itemIdSortData
*
)
itemidp2
)
->
itemiddata
.
lp_off
)
return
(
1
);
return
(
1
);
else
else
return
(
-
1
);
return
(
-
1
);
...
@@ -325,7 +327,6 @@ PageRepairFragmentation(Page page)
...
@@ -325,7 +327,6 @@ PageRepairFragmentation(Page page)
struct
itemIdSortData
*
itemidbase
,
*
itemidptr
;
struct
itemIdSortData
*
itemidbase
,
*
itemidptr
;
ItemId
lp
;
ItemId
lp
;
int
nline
,
nused
;
int
nline
,
nused
;
int
itemidcompare
();
Offset
upper
;
Offset
upper
;
Size
alignedSize
;
Size
alignedSize
;
...
@@ -364,7 +365,7 @@ PageRepairFragmentation(Page page)
...
@@ -364,7 +365,7 @@ PageRepairFragmentation(Page page)
/* sort itemIdSortData array...*/
/* sort itemIdSortData array...*/
pg_qsort
((
char
*
)
itemidbase
,
nused
,
sizeof
(
struct
itemIdSortData
),
pg_qsort
((
char
*
)
itemidbase
,
nused
,
sizeof
(
struct
itemIdSortData
),
(
void
*
)
itemidcompare
);
itemidcompare
);
/* compactify page */
/* compactify page */
((
PageHeader
)
page
)
->
pd_upper
=
((
PageHeader
)
page
)
->
pd_special
;
((
PageHeader
)
page
)
->
pd_upper
=
((
PageHeader
)
page
)
->
pd_special
;
...
...
src/backend/utils/fmgr/dfmgr.c
View file @
092c7a6b
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.
2 1996/11/10 02:26:15
bryanh Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.
3 1996/11/24 04:44:14
bryanh Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -204,7 +204,7 @@ handle_load(char *filename, char *funcname)
...
@@ -204,7 +204,7 @@ handle_load(char *filename, char *funcname)
return
((
func_ptr
)
NULL
);
return
((
func_ptr
)
NULL
);
}
}
retval
=
pg_dlsym
(
file_scanner
->
handle
,
funcname
);
retval
=
(
func_ptr
)
pg_dlsym
(
file_scanner
->
handle
,
funcname
);
if
(
retval
==
(
func_ptr
)
NULL
)
{
if
(
retval
==
(
func_ptr
)
NULL
)
{
elog
(
WARN
,
"Can't find function %s in file %s"
,
funcname
,
filename
);
elog
(
WARN
,
"Can't find function %s in file %s"
,
funcname
,
filename
);
...
...
src/backend/utils/mmgr/palloc.c
View file @
092c7a6b
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/Attic/palloc.c,v 1.
1.1.1 1996/07/09 06:22:09 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/Attic/palloc.c,v 1.
2 1996/11/24 04:44:17 bryanh
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -109,9 +109,8 @@ pstrdup(char* string)
...
@@ -109,9 +109,8 @@ pstrdup(char* string)
{
{
char
*
nstr
;
char
*
nstr
;
nstr
=
strcpy
((
char
*
)
palloc
(
strlen
(
string
)
+
1
),
string
);
nstr
=
(
char
*
)
palloc
(
strlen
(
string
)
+
1
);
strcpy
(
nstr
,
string
);
return
nstr
;
return
nstr
;
}
}
src/bin/psql/psql.c
View file @
092c7a6b
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.3
2 1996/11/22 06:45:14 momjian
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.3
3 1996/11/24 04:44:24 bryanh
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -739,7 +739,7 @@ do_copy(const char *args, PsqlSettings * settings)
...
@@ -739,7 +739,7 @@ do_copy(const char *args, PsqlSettings * settings)
}
else
{
}
else
{
copystream
=
fopen
(
file
,
"w"
);
copystream
=
fopen
(
file
,
"w"
);
}
}
if
(
copystream
<
0
)
if
(
copystream
==
NULL
)
fprintf
(
stderr
,
fprintf
(
stderr
,
"Unable to open file %s which to copy, errno = %s (%d)."
,
"Unable to open file %s which to copy, errno = %s (%d)."
,
from
?
"from"
:
"to"
,
strerror
(
errno
),
errno
);
from
?
"from"
:
"to"
,
strerror
(
errno
),
errno
);
...
...
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