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
a1635450
Commit
a1635450
authored
Sep 05, 1997
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanups needed for indent. Remove };
parent
fe97d580
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
253 additions
and
254 deletions
+253
-254
src/backend/catalog/heap.c
src/backend/catalog/heap.c
+3
-3
src/backend/optimizer/plan/planner.c
src/backend/optimizer/plan/planner.c
+1
-2
src/backend/optimizer/util/pathnode.c
src/backend/optimizer/util/pathnode.c
+2
-2
src/backend/parser/analyze.c
src/backend/parser/analyze.c
+2
-2
src/backend/storage/ipc/s_lock.c
src/backend/storage/ipc/s_lock.c
+14
-14
src/backend/utils/adt/date.c
src/backend/utils/adt/date.c
+7
-7
src/backend/utils/adt/datetime.c
src/backend/utils/adt/datetime.c
+9
-9
src/backend/utils/adt/dt.c
src/backend/utils/adt/dt.c
+143
-143
src/backend/utils/adt/geo_ops.c
src/backend/utils/adt/geo_ops.c
+72
-72
No files found.
src/backend/catalog/heap.c
View file @
a1635450
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.2
3 1997/09/04 13:17:59 vadim
Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.2
4 1997/09/05 18:13:45 momjian
Exp $
*
* INTERFACE ROUTINES
* heap_creatr() - Create an uncataloged heap relation
...
...
@@ -262,7 +262,7 @@ heap_creatr(char *name,
sprintf
(
tempname
,
"temp_%d"
,
relid
);
relname
=
tempname
;
isTemp
=
1
;
}
;
}
}
/* ----------------
...
...
@@ -1403,7 +1403,7 @@ InitTempRelList(void)
if
(
tempRels
)
{
free
(
tempRels
->
rels
);
free
(
tempRels
);
}
;
}
tempRels
=
(
TempRelList
*
)
malloc
(
sizeof
(
TempRelList
));
tempRels
->
size
=
TEMP_REL_LIST_SIZE
;
...
...
src/backend/optimizer/plan/planner.c
View file @
a1635450
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planner.c,v 1.
2 1996/10/31 10:59:15 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planner.c,v 1.
3 1997/09/05 18:10:32 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -384,7 +384,6 @@ pg_checkretval(Oid rettype, QueryTreeList *queryTreeList)
tletype = (Oid) ((Param*)thenode)->paramtype;
else if (IsA(thenode,Expr)) {
tletype = Expr
}
} else if (IsA(thenode,LispList)) {
thenode = lfirst(thenode);
if (IsA(thenode,Oper))
...
...
src/backend/optimizer/util/pathnode.c
View file @
a1635450
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/pathnode.c,v 1.
2 1997/03/18 18:40:40 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/pathnode.c,v 1.
3 1997/09/05 18:10:36 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -218,7 +218,7 @@ create_seqscan_path(Rel *rel)
#if 0
if (XfuncMode != XFUNC_OFF) {
pathnode->path_cost +=
xfunc_get_path_cost(pathnode)
)
;
xfunc_get_path_cost(pathnode);
}
#endif
return
(
pathnode
);
...
...
src/backend/parser/analyze.c
View file @
a1635450
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.3
6 1997/09/01 05:56:34 thomas
Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.3
7 1997/09/05 18:10:42 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1353,7 +1353,7 @@ make_targetlist_expr(ParseState *pstate,
} else
if (attrtype != type_id) {
if ((attrtype == INT2OID) && (type_id == INT4OID))
lfirst(expr) = lispInteger (INT2OID);
do CASHOID too
lfirst(expr) = lispInteger (INT2OID);
/* handle CASHOID too*/
else if ((attrtype == FLOAT4OID) && (type_id == FLOAT8OID))
lfirst(expr) = lispInteger (FLOAT4OID);
else
...
...
src/backend/storage/ipc/s_lock.c
View file @
a1635450
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/Attic/s_lock.c,v 1.2
0 1997/08/24 23:07:28
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/Attic/s_lock.c,v 1.2
1 1997/09/05 18:10:54
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -481,19 +481,19 @@ S_INIT_LOCK(slock_t *lock)
static
int
tas_dummy
()
{
__asm__
(
"
tas:
/* r3 points to the location of p */
lwarx 5,0,3
/* r5 = *p */
cmpwi 5,0
/* r5 == 0 ? */
bne fail
/* if not 0, jump to fail */
addi 5,5,1
/* set 1 to r5 */
stwcx. 5,0,3
/* try update p atomically */
beq success
/* jump if scceed */
fail: li 3,1
/* set 1 to r3 */
blr
success:
li 3,0
/* set 0 to r3 */
blr
__asm__
(
"
\n
\
tas:
\n
\
lwarx 5,0,3
\n
\
cmpwi 5,0
\n
\
bne fail
\n
\
addi 5,5,1
\n
\
stwcx. 5,0,3
\n
\
beq success
\n
\
fail: li 3,1
\n
\
blr
\n
\
success:
\n
\
li 3,0
\n
\
blr
\n
\
"
);
}
...
...
src/backend/utils/adt/date.c
View file @
a1635450
...
...
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/date.c,v 1.1
3 1997/08/19 21:34:30
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/date.c,v 1.1
4 1997/09/05 18:11:05
momjian Exp $
*
* NOTES
* This code is actually (almost) unused.
...
...
@@ -144,7 +144,7 @@ printf( "reltimein- %d fields are type %d (DTK_DATE=%d)\n", nf, dtype, DTK_DATE)
default:
return
(
INVALID_RELTIME
);
}
;
}
elog
(
WARN
,
"Bad reltime (internal coding error) '%s'"
,
str
);
return
(
INVALID_RELTIME
);
...
...
@@ -166,7 +166,7 @@ char *reltimeout(int32 time)
}
else
{
reltime2tm
(
time
,
tm
);
EncodeTimeSpan
(
tm
,
0
,
DateStyle
,
buf
);
}
;
}
result
=
PALLOC
(
strlen
(
buf
)
+
1
);
strcpy
(
result
,
buf
);
...
...
@@ -305,7 +305,7 @@ timespan_reltime(TimeSpan *timespan)
}
else
{
year
=
0
;
month
=
timespan
->
month
;
}
;
}
span
=
(((((
double
)
365
*
year
)
+
((
double
)
30
*
month
))
*
86400
)
+
timespan
->
time
);
...
...
@@ -315,7 +315,7 @@ printf( "timespan_reltime- convert m%d s%f to %f [%d %d]\n",
#endif
time
=
(((
span
>
INT_MIN
)
&&
(
span
<
INT_MAX
))
?
span
:
INVALID_RELTIME
);
}
;
}
return
(
time
);
}
/* timespan_reltime() */
...
...
@@ -341,7 +341,7 @@ reltime_timespan(RelativeTime reltime)
result
->
time
=
reltime
;
result
->
month
=
((
12
*
year
)
+
month
);
}
;
}
return
(
result
);
}
/* reltime_timespan() */
...
...
@@ -694,7 +694,7 @@ int isreltime(char *str)
default:
return
0
;
break
;
}
;
}
return
0
;
}
/* isreltime() */
...
...
src/backend/utils/adt/datetime.c
View file @
a1635450
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.1
2 1997/08/28 05:06:29 vadim
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.1
3 1997/09/05 18:11:10 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -95,7 +95,7 @@ printf( "date_in- input string is %s\n", str);
default:
elog
(
WARN
,
"Unrecognized date external representation %s"
,
str
);
}
;
}
if
(
tm
->
tm_year
<
0
||
tm
->
tm_year
>
32767
)
elog
(
WARN
,
"date_in: year must be limited to values 0 through 32767 in '%s'"
,
str
);
...
...
@@ -186,7 +186,7 @@ date_cmp(DateADT dateVal1, DateADT dateVal2)
return
-
1
;
}
else
if
(
dateVal1
>
dateVal2
)
{
return
1
;
}
;
}
return
0
;
}
/* date_cmp() */
...
...
@@ -281,7 +281,7 @@ datetime_date(DateTime *datetime)
}
else
{
if
(
datetime2tm
(
*
datetime
,
&
tz
,
tm
,
&
fsec
,
&
tzn
)
!=
0
)
elog
(
WARN
,
"Unable to convert datetime to date"
,
NULL
);
}
;
}
result
=
(
date2j
(
tm
->
tm_year
,
tm
->
tm_mon
,
tm
->
tm_mday
)
-
date2j
(
2000
,
1
,
1
));
...
...
@@ -319,7 +319,7 @@ abstime_date(AbsoluteTime abstime)
abstime2tm
(
abstime
,
&
tz
,
tm
,
NULL
);
result
=
date2j
(
tm
->
tm_year
,
tm
->
tm_mon
,
tm
->
tm_mday
)
-
date2j
(
2000
,
1
,
1
);
break
;
}
;
}
return
(
result
);
}
/* abstime_date() */
...
...
@@ -404,7 +404,7 @@ printf( "date2tm- convert %d-%d-%d %d:%d%d to datetime\n",
*
tzp
=
0
;
tm
->
tm_isdst
=
0
;
if
(
tzn
!=
NULL
)
*
tzn
=
NULL
;
}
;
}
return
0
;
}
/* date2tm() */
...
...
@@ -482,8 +482,8 @@ time_out(TimeADT *time)
sprintf
(
buf
,
"%02d:%02d:%02d"
,
hour
,
min
,
sec
);
}
else
{
sprintf
(
buf
,
"%02d:%02d:%05.2f"
,
hour
,
min
,
(
sec
+
fsec
));
}
;
}
;
}
}
#endif
result
=
PALLOC
(
strlen
(
buf
)
+
1
);
...
...
@@ -570,7 +570,7 @@ datetime_datetime(DateADT date, TimeADT *time)
}
else
{
result
=
date_datetime
(
date
);
*
result
+=
*
time
;
}
;
}
return
(
result
);
}
/* datetime_datetime() */
...
...
src/backend/utils/adt/dt.c
View file @
a1635450
This diff is collapsed.
Click to expand it.
src/backend/utils/adt/geo_ops.c
View file @
a1635450
This diff is collapsed.
Click to expand it.
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