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
bcde8ea7
Commit
bcde8ea7
authored
Jun 21, 2001
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix strangely formatted comment.
parent
f3868f8a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
32 deletions
+32
-32
src/backend/commands/define.c
src/backend/commands/define.c
+32
-32
No files found.
src/backend/commands/define.c
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
)
...
...
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