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
a3c5a3cb
Commit
a3c5a3cb
authored
Sep 22, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup for oid8[] from Tatsuo Ishii.
parent
738dc876
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
44 deletions
+44
-44
src/backend/optimizer/util/tlist.c
src/backend/optimizer/util/tlist.c
+4
-6
src/backend/utils/adt/int.c
src/backend/utils/adt/int.c
+17
-16
src/backend/utils/adt/oid.c
src/backend/utils/adt/oid.c
+16
-15
src/backend/utils/adt/regproc.c
src/backend/utils/adt/regproc.c
+2
-2
src/include/utils/builtins.h
src/include/utils/builtins.h
+4
-4
src/interfaces/libpq++/pgenv.h
src/interfaces/libpq++/pgenv.h
+1
-1
No files found.
src/backend/optimizer/util/tlist.c
View file @
a3c5a3cb
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/tlist.c,v 1.1
8 1998/09/01 04:30:12
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/tlist.c,v 1.1
9 1998/09/22 20:28:07
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -429,9 +429,7 @@ flatten_tlist_vars(List *full_tlist, List *flat_tlist)
{
TargetEntry
*
tle
=
lfirst
(
x
);
result
=
lappend
(
result
,
makeTargetEntry
(
tle
->
resdom
,
result
=
lappend
(
result
,
makeTargetEntry
(
tle
->
resdom
,
flatten_tlistentry
((
Node
*
)
get_expr
(
tle
),
flat_tlist
)));
}
...
...
src/backend/utils/adt/int.c
View file @
a3c5a3cb
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/int.c,v 1.1
8 1998/09/01 06:22:43
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/int.c,v 1.1
9 1998/09/22 20:28:09
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -80,34 +80,35 @@ int2out(int16 sh)
int16
*
int28in
(
char
*
shs
)
{
int16
(
*
result
)[]
;
int16
*
result
;
int
nums
;
if
(
shs
==
NULL
)
return
NULL
;
result
=
(
int16
(
*
)[])
palloc
(
sizeof
(
int16
[
8
]));
result
=
(
int16
*
)
palloc
(
sizeof
(
int16
[
8
]));
if
((
nums
=
sscanf
(
shs
,
"%hd%hd%hd%hd%hd%hd%hd%hd"
,
*
result
,
*
result
+
1
,
*
result
+
2
,
*
result
+
3
,
*
result
+
4
,
*
result
+
5
,
*
result
+
6
,
*
result
+
7
))
!=
8
)
&
result
[
0
]
,
&
result
[
1
]
,
&
result
[
2
]
,
&
result
[
3
]
,
&
result
[
4
]
,
&
result
[
5
]
,
&
result
[
6
]
,
&
result
[
7
]
))
!=
8
)
{
do
(
*
result
)
[
nums
++
]
=
0
;
result
[
nums
++
]
=
0
;
while
(
nums
<
8
);
}
return
(
int16
*
)
result
;
return
result
;
}
/*
* int28out - converts internal form to "num num ..."
*/
char
*
int28out
(
int16
(
*
shs
)[]
)
int28out
(
int16
*
shs
)
{
int
num
;
int16
*
sp
;
...
...
@@ -123,7 +124,7 @@ int28out(int16 (*shs)[])
}
rp
=
result
=
(
char
*
)
palloc
(
8
*
7
);
/* assumes sign, 5 digits,
* ' ' */
sp
=
*
shs
;
sp
=
shs
;
for
(
num
=
8
;
num
!=
0
;
num
--
)
{
itoa
(
*
sp
++
,
rp
);
...
...
@@ -136,7 +137,7 @@ int28out(int16 (*shs)[])
}
/*
* int
28
in - converts "num num ..." to internal form
* int
44
in - converts "num num ..." to internal form
*
* Note:
* Fills any nonexistent digits with NULLs.
...
...
src/backend/utils/adt/oid.c
View file @
a3c5a3cb
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/oid.c,v 1.
19 1998/09/01 05:34:14
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/oid.c,v 1.
20 1998/09/22 20:28:10
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -31,34 +31,35 @@
Oid
*
oid8in
(
char
*
oidString
)
{
Oid
(
*
result
)[]
;
Oid
*
result
;
int
nums
;
if
(
oidString
==
NULL
)
return
NULL
;
result
=
(
Oid
(
*
)[])
palloc
(
sizeof
(
Oid
[
8
]));
result
=
(
Oid
*
)
palloc
(
sizeof
(
Oid
[
8
]));
if
((
nums
=
sscanf
(
oidString
,
"%d%d%d%d%d%d%d%d"
,
&
(
*
result
)
[
0
],
&
(
*
result
)
[
1
],
&
(
*
result
)
[
2
],
&
(
*
result
)
[
3
],
&
(
*
result
)
[
4
],
&
(
*
result
)
[
5
],
&
(
*
result
)
[
6
],
&
(
*
result
)
[
7
]))
!=
8
)
&
result
[
0
],
&
result
[
1
],
&
result
[
2
],
&
result
[
3
],
&
result
[
4
],
&
result
[
5
],
&
result
[
6
],
&
result
[
7
]))
!=
8
)
{
do
(
*
result
)
[
nums
++
]
=
0
;
result
[
nums
++
]
=
0
;
while
(
nums
<
8
);
}
return
(
Oid
*
)
result
;
return
result
;
}
/*
* oid8out - converts internal form to "num num ..."
*/
char
*
oid8out
(
Oid
(
*
oidArray
)[]
)
oid8out
(
Oid
*
oidArray
)
{
int
num
;
Oid
*
sp
;
...
...
@@ -75,7 +76,7 @@ oid8out(Oid (*oidArray)[])
/* assumes sign, 10 digits, ' ' */
rp
=
result
=
(
char
*
)
palloc
(
8
*
12
);
sp
=
*
oidArray
;
sp
=
oidArray
;
for
(
num
=
8
;
num
!=
0
;
num
--
)
{
ltoa
(
*
sp
++
,
rp
);
...
...
src/backend/utils/adt/regproc.c
View file @
a3c5a3cb
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/regproc.c,v 1.2
7 1998/09/18 04:43:18
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/regproc.c,v 1.2
8 1998/09/22 20:28:11
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -211,7 +211,7 @@ regprocout(RegProcedure proid)
* int8typeout - converts int8 type oids to "typname" list
*/
text
*
oid8types
(
Oid
(
*
oidArray
)[]
)
oid8types
(
Oid
*
oidArray
)
{
HeapTuple
typetup
;
text
*
result
;
...
...
src/include/utils/builtins.h
View file @
a3c5a3cb
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: builtins.h,v 1.5
4 1998/09/18 04:43:20
momjian Exp $
* $Id: builtins.h,v 1.5
5 1998/09/22 20:28:13
momjian Exp $
*
* NOTES
* This should normally only be included by fmgr.h.
...
...
@@ -64,7 +64,7 @@ extern bool cideq(int8 arg1, int8 arg2);
extern
int32
int2in
(
char
*
num
);
extern
char
*
int2out
(
int16
sh
);
extern
int16
*
int28in
(
char
*
shs
);
extern
char
*
int28out
(
int16
(
*
shs
)[]
);
extern
char
*
int28out
(
int16
*
shs
);
extern
int32
*
int44in
(
char
*
input_string
);
extern
char
*
int44out
(
int32
*
an_array
);
extern
int32
int4in
(
char
*
num
);
...
...
@@ -329,7 +329,7 @@ extern bool oidnotin(Oid the_oid, char *compare);
/* oid.c */
extern
Oid
*
oid8in
(
char
*
oidString
);
extern
char
*
oid8out
(
Oid
(
*
oidArray
)[]
);
extern
char
*
oid8out
(
Oid
*
oidArray
);
extern
Oid
oidin
(
char
*
s
);
extern
char
*
oidout
(
Oid
o
);
extern
bool
oideq
(
Oid
arg1
,
Oid
arg2
);
...
...
@@ -358,7 +358,7 @@ extern bool texticregexne(struct varlena * s, struct varlena * p);
/* regproc.c */
extern
int32
regprocin
(
char
*
pro_name_and_oid
);
extern
char
*
regprocout
(
RegProcedure
proid
);
extern
text
*
oid8types
(
Oid
(
*
oidArray
)[]
);
extern
text
*
oid8types
(
Oid
*
oidArray
);
extern
Oid
regproctooid
(
RegProcedure
rp
);
/* define macro to replace mixed-case function call - tgl 97/04/27 */
...
...
src/interfaces/libpq++/pgenv.h
View file @
a3c5a3cb
...
...
@@ -18,7 +18,7 @@
#ifndef PGENV_H
#define PGENV_H
#include <string
.h
>
#include <string>
//
...
...
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