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
5a288903
Commit
5a288903
authored
Aug 30, 2003
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Guard against pgindent changing =- to = -.
parent
ceacae77
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
src/backend/commands/tablecmds.c
src/backend/commands/tablecmds.c
+5
-5
src/tools/pgindent/pgindent
src/tools/pgindent/pgindent
+4
-1
No files found.
src/backend/commands/tablecmds.c
View file @
5a288903
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.
79 2003/08/08 21:41:32
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.
80 2003/08/30 14:59:34
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -2008,7 +2008,7 @@ AlterTableAlterColumnDropNotNull(Oid myrelid, bool recurse,
...
@@ -2008,7 +2008,7 @@ AlterTableAlterColumnDropNotNull(Oid myrelid, bool recurse,
}
}
}
}
/*
-= now do the thing on this relation =-
*/
/*
now do the thing on this relation
*/
/*
/*
* get the number of the attribute
* get the number of the attribute
...
@@ -2152,7 +2152,7 @@ AlterTableAlterColumnSetNotNull(Oid myrelid, bool recurse,
...
@@ -2152,7 +2152,7 @@ AlterTableAlterColumnSetNotNull(Oid myrelid, bool recurse,
}
}
}
}
/*
-= now do the thing on this relation =-
*/
/*
now do the thing on this relation
*/
/*
/*
* get the number of the attribute
* get the number of the attribute
...
@@ -2280,7 +2280,7 @@ AlterTableAlterColumnDefault(Oid myrelid, bool recurse,
...
@@ -2280,7 +2280,7 @@ AlterTableAlterColumnDefault(Oid myrelid, bool recurse,
}
}
}
}
/*
-= now do the thing on this relation =-
*/
/*
now do the thing on this relation
*/
/*
/*
* get the number of the attribute
* get the number of the attribute
...
@@ -2445,7 +2445,7 @@ AlterTableAlterColumnFlags(Oid myrelid, bool recurse,
...
@@ -2445,7 +2445,7 @@ AlterTableAlterColumnFlags(Oid myrelid, bool recurse,
}
}
}
}
/*
-= now do the thing on this relation =-
*/
/*
now do the thing on this relation
*/
attrelation
=
heap_openr
(
AttributeRelationName
,
RowExclusiveLock
);
attrelation
=
heap_openr
(
AttributeRelationName
,
RowExclusiveLock
);
...
...
src/tools/pgindent/pgindent
View file @
5a288903
...
@@ -33,6 +33,8 @@ do
...
@@ -33,6 +33,8 @@ do
cat
"
$FILE
"
|
cat
"
$FILE
"
|
# convert // comments to /* */
# convert // comments to /* */
sed
's;^\([ ]*\)//\(.*\)$;\1/* \2 */;g'
|
sed
's;^\([ ]*\)//\(.*\)$;\1/* \2 */;g'
|
# Avoid bug that converts 'x =- 1' to 'x = -1'
sed
's;=- ;-= ;g'
|
# mark some comments for special treatment later
# 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
...
@@ -40,7 +42,7 @@ do
...
@@ -40,7 +42,7 @@ do
\2;g'
|
\2;g'
|
detab
-t4
-qc
|
detab
-t4
-qc
|
# work around bug where function that defines no local variables misindents
# work around bug where function that defines no local variables misindents
# switch() case lines and line after #else. Do not do
with
for struct/enum.
# switch() case lines and line after #else. Do not do for struct/enum.
awk
' BEGIN {line1 = ""; line2 = ""}
awk
' BEGIN {line1 = ""; line2 = ""}
{
{
line2 = $0;
line2 = $0;
...
@@ -1672,6 +1674,7 @@ do
...
@@ -1672,6 +1674,7 @@ do
cat
/tmp/
$$
cat
/tmp/
$$
fi
fi
cat
/tmp/
$$
a |
cat
/tmp/
$$
a |
# restore DATA/CATALOG lines
sed
's;^/\*\(DATA(.*\)\*/$;\1;'
|
sed
's;^/\*\(DATA(.*\)\*/$;\1;'
|
sed
's;^/\*\(CATALOG(.*\)\*/$;\1;'
|
sed
's;^/\*\(CATALOG(.*\)\*/$;\1;'
|
# remove tabs and retab with four spaces
# remove tabs and retab with four spaces
...
...
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