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
bcde8ea7
Commit
bcde8ea7
authored
23 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Fix strangely formatted comment.
parent
f3868f8a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/backend/commands/define.c
+32
-32
32 additions, 32 deletions
src/backend/commands/define.c
with
32 additions
and
32 deletions
src/backend/commands/define.c
+
32
−
32
View file @
bcde8ea7
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.5
6
2001/06/
13 21:44:40 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.5
7
2001/06/
21 18:25:54 momjian
Exp $
*
*
* DESCRIPTION
* DESCRIPTION
* The "DefineFoo" routines take the parse tree and pick out the
* The "DefineFoo" routines take the parse tree and pick out the
...
@@ -64,10 +64,10 @@ static int defGetTypeLength(DefElem *def);
...
@@ -64,10 +64,10 @@ static int defGetTypeLength(DefElem *def);
static
void
static
void
case_translate_language_name
(
const
char
*
input
,
char
*
output
)
case_translate_language_name
(
const
char
*
input
,
char
*
output
)
{
{
/*
-------------------------------------------------------------------------
/*
Translate the input language name to lower case, except if it's "C",
*
Translate the input language name to lower case, except if it's "C",
translate to upper case.
*
translate to upper case.
--------------------------------------------------------------------------
*/
*/
int
i
;
int
i
;
for
(
i
=
0
;
i
<
NAMEDATALEN
-
1
&&
input
[
i
];
++
i
)
for
(
i
=
0
;
i
<
NAMEDATALEN
-
1
&&
input
[
i
];
++
i
)
...
@@ -85,10 +85,10 @@ static void
...
@@ -85,10 +85,10 @@ static void
compute_return_type
(
TypeName
*
returnType
,
compute_return_type
(
TypeName
*
returnType
,
char
**
prorettype_p
,
bool
*
returnsSet_p
)
char
**
prorettype_p
,
bool
*
returnsSet_p
)
{
{
/*
---------------------------------------------------------------------------
/*
Examine the "returns" clause returnType of the CREATE FUNCTION statement
*
Examine the "returns" clause returnType of the CREATE FUNCTION statement
and return information about it as *prorettype_p and *returnsSet.
*
and return information about it as *prorettype_p and *returnsSet.
----------------------------------------------------------------------------
*/
*/
*
prorettype_p
=
TypeNameToInternalName
(
returnType
);
*
prorettype_p
=
TypeNameToInternalName
(
returnType
);
*
returnsSet_p
=
returnType
->
setof
;
*
returnsSet_p
=
returnType
->
setof
;
}
}
...
@@ -100,28 +100,29 @@ compute_full_attributes(List *parameters,
...
@@ -100,28 +100,29 @@ compute_full_attributes(List *parameters,
int32
*
percall_cpu_p
,
int32
*
outin_ratio_p
,
int32
*
percall_cpu_p
,
int32
*
outin_ratio_p
,
bool
*
canCache_p
,
bool
*
isStrict_p
)
bool
*
canCache_p
,
bool
*
isStrict_p
)
{
{
/*--------------------------------------------------------------------------
/*-------------
Interpret the parameters *parameters and return their contents as
* Interpret the parameters *parameters and return their contents as
*byte_pct_p, etc.
* *byte_pct_p, etc.
*
These parameters supply optional information about a function.
* These parameters supply optional information about a function.
All have defaults if not specified.
* All have defaults if not specified.
*
Note: currently, only two of these parameters actually do anything:
* Note: currently, only two of these parameters actually do anything:
*
* canCache means the optimizer's constant-folder is allowed to
* * canCache means the optimizer's constant-folder is allowed to
pre-evaluate the function when all its inputs are constants.
* pre-evaluate the function when all its inputs are constants.
*
* isStrict means the function should not be called when any NULL
* * isStrict means the function should not be called when any NULL
inputs are present; instead a NULL result value should be assumed.
* inputs are present; instead a NULL result value should be assumed.
*
The other four parameters are not used anywhere. They used to be
* The other four parameters are not used anywhere. They used to be
used in the "expensive functions" optimizer, but that's been dead code
* used in the "expensive functions" optimizer, but that's been dead code
for a long time.
* for a long time.
*
Since canCache and isStrict are useful for any function, we now allow
* Since canCache and isStrict are useful for any function, we now allow
attributes to be supplied for all functions regardless of language.
* attributes to be supplied for all functions regardless of language.
---------------------------------------------------------------------------*/
*------------
*/
List
*
pl
;
List
*
pl
;
/* the defaults */
/* the defaults */
...
@@ -530,7 +531,6 @@ DefineAggregate(char *aggName, List *parameters)
...
@@ -530,7 +531,6 @@ DefineAggregate(char *aggName, List *parameters)
/*
/*
* DefineType
* DefineType
* Registers a new type.
* Registers a new type.
*
*/
*/
void
void
DefineType
(
char
*
typeName
,
List
*
parameters
)
DefineType
(
char
*
typeName
,
List
*
parameters
)
...
...
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