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
b29c557e
Commit
b29c557e
authored
21 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup of timetravel compile warnings.
parent
b6a1d25b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/spi/timetravel.c
+3
-4
3 additions, 4 deletions
contrib/spi/timetravel.c
with
3 additions
and
4 deletions
contrib/spi/timetravel.c
+
3
−
4
View file @
b29c557e
...
...
@@ -15,6 +15,7 @@
/* AbsoluteTime currabstime(void); */
Datum
timetravel
(
PG_FUNCTION_ARGS
);
Datum
set_timetravel
(
PG_FUNCTION_ARGS
);
Datum
get_timetravel
(
PG_FUNCTION_ARGS
);
typedef
struct
{
...
...
@@ -31,7 +32,7 @@ typedef struct _TTOffList
char
name
[
1
];
}
TTOffList
;
static
TTOffList
TTOff
=
{
NULL
,
0
};
static
TTOffList
TTOff
=
{
NULL
,
{
0
}
};
static
int
findTTStatus
(
char
*
name
);
static
EPlan
*
find_plan
(
char
*
ident
,
EPlan
**
eplan
,
int
*
nplans
);
...
...
@@ -306,7 +307,6 @@ timetravel(PG_FUNCTION_ARGS)
void
*
pplan
;
Oid
*
ctypes
;
char
sql
[
8192
];
int
j
;
/* allocate ctypes for preparation */
ctypes
=
(
Oid
*
)
palloc
(
natts
*
sizeof
(
Oid
));
...
...
@@ -355,7 +355,6 @@ timetravel(PG_FUNCTION_ARGS)
/* Tuple to return to upper Executor ... */
if
(
newtuple
)
{
/* UPDATE */
HeapTuple
tmptuple
;
int
chnattrs
=
0
;
int
chattrs
[
MaxAttrNum
];
Datum
newvals
[
MaxAttrNum
];
...
...
@@ -477,7 +476,7 @@ PG_FUNCTION_INFO_V1(get_timetravel);
Datum
get_timetravel
(
PG_FUNCTION_ARGS
)
{
Name
relname
=
PG_GETARG_NAME
(
0
);
Name
relname
=
PG_GETARG_NAME
(
0
);
TTOffList
*
pp
;
for
(
pp
=
TTOff
.
next
;
pp
;
pp
=
pp
->
next
)
...
...
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