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
281b7d84
Commit
281b7d84
authored
Feb 12, 2001
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add // -> /* */ mapping to pgindent.
parent
97aa5fcd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
10 deletions
+13
-10
contrib/intarray/_int.c
contrib/intarray/_int.c
+4
-4
src/backend/optimizer/util/clauses.c
src/backend/optimizer/util/clauses.c
+6
-6
src/tools/pgindent/pgindent
src/tools/pgindent/pgindent
+3
-0
No files found.
contrib/intarray/_int.c
View file @
281b7d84
...
@@ -194,7 +194,7 @@ g_int_compress(GISTENTRY *entry)
...
@@ -194,7 +194,7 @@ g_int_compress(GISTENTRY *entry)
#ifdef GIST_DEBUG
#ifdef GIST_DEBUG
elog
(
NOTICE
,
"COMP IN: %d leaf; %d rel; %d page; %d offset; %d bytes; %d elems"
,
entry
->
leafkey
,
(
int
)
entry
->
rel
,
(
int
)
entry
->
page
,
(
int
)
entry
->
offset
,
(
int
)
entry
->
bytes
,
len
);
elog
(
NOTICE
,
"COMP IN: %d leaf; %d rel; %d page; %d offset; %d bytes; %d elems"
,
entry
->
leafkey
,
(
int
)
entry
->
rel
,
(
int
)
entry
->
page
,
(
int
)
entry
->
offset
,
(
int
)
entry
->
bytes
,
len
);
/
/printarr( r, len );
/
* printarr( r, len ); */
#endif
#endif
if
(
len
>=
2
*
MAXNUMRANGE
)
{
/*compress*/
if
(
len
>=
2
*
MAXNUMRANGE
)
{
/*compress*/
...
@@ -260,7 +260,7 @@ g_int_decompress(GISTENTRY *entry)
...
@@ -260,7 +260,7 @@ g_int_decompress(GISTENTRY *entry)
#ifdef GIST_DEBUG
#ifdef GIST_DEBUG
elog
(
NOTICE
,
"DECOMP IN: %d leaf; %d rel; %d page; %d offset; %d bytes; %d elems"
,
entry
->
leafkey
,
(
int
)
entry
->
rel
,
(
int
)
entry
->
page
,
(
int
)
entry
->
offset
,
(
int
)
entry
->
bytes
,
lenin
);
elog
(
NOTICE
,
"DECOMP IN: %d leaf; %d rel; %d page; %d offset; %d bytes; %d elems"
,
entry
->
leafkey
,
(
int
)
entry
->
rel
,
(
int
)
entry
->
page
,
(
int
)
entry
->
offset
,
(
int
)
entry
->
bytes
,
lenin
);
/
/printarr( in, lenin );
/
* printarr( in, lenin ); */
#endif
#endif
lenr
=
internal_size
(
din
,
lenin
);
lenr
=
internal_size
(
din
,
lenin
);
...
@@ -653,7 +653,7 @@ inner_int_union ( ArrayType *a, ArrayType *b ) {
...
@@ -653,7 +653,7 @@ inner_int_union ( ArrayType *a, ArrayType *b ) {
int
i
,
j
;
int
i
,
j
;
#ifdef GIST_DEBUG
#ifdef GIST_DEBUG
/
/elog(NOTICE, "inner_union %d %d", ARRISNULL( a ) , ARRISNULL( b ) );
/
* elog(NOTICE, "inner_union %d %d", ARRISNULL( a ) , ARRISNULL( b ) ); */
#endif
#endif
if
(
ARRISNULL
(
a
)
&&
ARRISNULL
(
b
)
)
return
new_intArrayType
(
0
);
if
(
ARRISNULL
(
a
)
&&
ARRISNULL
(
b
)
)
return
new_intArrayType
(
0
);
...
@@ -709,7 +709,7 @@ inner_int_inter ( ArrayType *a, ArrayType *b ) {
...
@@ -709,7 +709,7 @@ inner_int_inter ( ArrayType *a, ArrayType *b ) {
int
i
,
j
;
int
i
,
j
;
#ifdef GIST_DEBUG
#ifdef GIST_DEBUG
/
/elog(NOTICE, "inner_inter %d %d", ARRISNULL( a ), ARRISNULL( b ) );
/
* elog(NOTICE, "inner_inter %d %d", ARRISNULL( a ), ARRISNULL( b ) ); */
#endif
#endif
if
(
ARRISNULL
(
a
)
||
ARRISNULL
(
b
)
)
return
NULL
;
if
(
ARRISNULL
(
a
)
||
ARRISNULL
(
b
)
)
return
NULL
;
...
...
src/backend/optimizer/util/clauses.c
View file @
281b7d84
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/clauses.c,v 1.
79 2001/01/24 19:42:59
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/clauses.c,v 1.
80 2001/02/12 18:30:52
momjian Exp $
*
*
* HISTORY
* HISTORY
* AUTHOR DATE MAJOR EVENT
* AUTHOR DATE MAJOR EVENT
...
@@ -1606,7 +1606,7 @@ simplify_op_or_func(Expr *expr, List *args)
...
@@ -1606,7 +1606,7 @@ simplify_op_or_func(Expr *expr, List *args)
* {
* {
* if (node == NULL)
* if (node == NULL)
* return false;
* return false;
*
//
check for nodes that special work is required for, eg:
*
#
check for nodes that special work is required for, eg:
* if (IsA(node, Var))
* if (IsA(node, Var))
* {
* {
* ... do special actions for Var nodes
* ... do special actions for Var nodes
...
@@ -1615,7 +1615,7 @@ simplify_op_or_func(Expr *expr, List *args)
...
@@ -1615,7 +1615,7 @@ simplify_op_or_func(Expr *expr, List *args)
* {
* {
* ... do special actions for other node types
* ... do special actions for other node types
* }
* }
*
//
for any node type not specially processed, do:
*
#
for any node type not specially processed, do:
* return expression_tree_walker(node, my_walker, (void *) context);
* return expression_tree_walker(node, my_walker, (void *) context);
* }
* }
*
*
...
@@ -1659,7 +1659,7 @@ simplify_op_or_func(Expr *expr, List *args)
...
@@ -1659,7 +1659,7 @@ simplify_op_or_func(Expr *expr, List *args)
* {
* {
* adjust context for subquery;
* adjust context for subquery;
* result = query_tree_walker((Query *) node, my_walker, context,
* result = query_tree_walker((Query *) node, my_walker, context,
* true);
//
to visit subquery RTEs too
* true);
#
to visit subquery RTEs too
* restore context if needed;
* restore context if needed;
* return result;
* return result;
* }
* }
...
@@ -1909,7 +1909,7 @@ query_tree_walker(Query *query,
...
@@ -1909,7 +1909,7 @@ query_tree_walker(Query *query,
* {
* {
* if (node == NULL)
* if (node == NULL)
* return NULL;
* return NULL;
*
//
check for nodes that special work is required for, eg:
*
#
check for nodes that special work is required for, eg:
* if (IsA(node, Var))
* if (IsA(node, Var))
* {
* {
* ... create and return modified copy of Var node
* ... create and return modified copy of Var node
...
@@ -1918,7 +1918,7 @@ query_tree_walker(Query *query,
...
@@ -1918,7 +1918,7 @@ query_tree_walker(Query *query,
* {
* {
* ... do special transformations of other node types
* ... do special transformations of other node types
* }
* }
*
//
for any node type not specially processed, do:
*
#
for any node type not specially processed, do:
* return expression_tree_mutator(node, my_mutator, (void *) context);
* return expression_tree_mutator(node, my_mutator, (void *) context);
* }
* }
*
*
...
...
src/tools/pgindent/pgindent
View file @
281b7d84
...
@@ -25,6 +25,9 @@ fi
...
@@ -25,6 +25,9 @@ fi
for
FILE
for
FILE
do
do
cat
$FILE
|
cat
$FILE
|
# convert // comments to /* */
sed
's;^\([ ]*\)//\(.*\)$;\1/* \2 */;g'
|
# mark some comments for special treatment later
sed
's;/\* *---;/*---X_X;g'
|
sed
's;/\* *---;/*---X_X;g'
|
# workaround for indent bug with 'else' handling
# workaround for indent bug with 'else' handling
sed
's;\([} ]\)else[ ]*\(/\*.*\)$;\1else\
sed
's;\([} ]\)else[ ]*\(/\*.*\)$;\1else\
...
...
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