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
d067f83b
Commit
d067f83b
authored
27 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
pgindent changes for Thomas proc/lock cleanup
parent
19ba2292
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/backend/storage/lmgr/proc.c
+3
-3
3 additions, 3 deletions
src/backend/storage/lmgr/proc.c
src/tools/pgindent/pgindent
+31
-28
31 additions, 28 deletions
src/tools/pgindent/pgindent
with
34 additions
and
31 deletions
src/backend/storage/lmgr/proc.c
+
3
−
3
View file @
d067f83b
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.3
2
1998/02/2
4 19:58:26
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.3
3
1998/02/2
5 00:31:14
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
* This is so that we can support more backends. (system-wide semaphore
* This is so that we can support more backends. (system-wide semaphore
* sets run out pretty fast.) -ay 4/95
* sets run out pretty fast.) -ay 4/95
*
*
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.3
2
1998/02/2
4 19:58:26
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.3
3
1998/02/2
5 00:31:14
momjian Exp $
*/
*/
#include
<sys/time.h>
#include
<sys/time.h>
#include
<unistd.h>
#include
<unistd.h>
...
@@ -486,7 +486,7 @@ ProcSleep(PROC_QUEUE *waitQueue,
...
@@ -486,7 +486,7 @@ ProcSleep(PROC_QUEUE *waitQueue,
proc
=
(
PROC
*
)
MAKE_PTR
(
proc
->
links
.
prev
);
proc
=
(
PROC
*
)
MAKE_PTR
(
proc
->
links
.
prev
);
/* The rest of the queue is FIFO, with readers first, writers last */
/* The rest of the queue is FIFO, with readers first, writers last */
while
(
i
++
<
waitQueue
->
size
&&
proc
->
prio
<=
prio
)
for
(
;
i
<
waitQueue
->
size
&&
proc
->
prio
<=
prio
;
i
++
)
proc
=
(
PROC
*
)
MAKE_PTR
(
proc
->
links
.
prev
);
proc
=
(
PROC
*
)
MAKE_PTR
(
proc
->
links
.
prev
);
MyProc
->
prio
=
prio
;
MyProc
->
prio
=
prio
;
...
...
This diff is collapsed.
Click to expand it.
src/tools/pgindent/pgindent
+
31
−
28
View file @
d067f83b
...
@@ -34,6 +34,7 @@ do
...
@@ -34,6 +34,7 @@ do
# We get the list of typedef's from /src/tools/find_typedef
# We get the list of typedef's from /src/tools/find_typedef
indent
-bad
-bap
-bc
-bl
-d0
-cdb
-nce
-nfc1
-di12
-i4
-l75
\
indent
-bad
-bap
-bc
-bl
-d0
-cdb
-nce
-nfc1
-di12
-i4
-l75
\
-lp
-nip
-npro
$EXTRA_OPTS
\
-lp
-nip
-npro
$EXTRA_OPTS
\
-TACL
\
-TA_Const
\
-TA_Const
\
-TA_Expr
\
-TA_Expr
\
-TA_Indices
\
-TA_Indices
\
...
@@ -44,7 +45,6 @@ do
...
@@ -44,7 +45,6 @@ do
-TAclItem
\
-TAclItem
\
-TAclMode
\
-TAclMode
\
-TAddAttrStmt
\
-TAddAttrStmt
\
-TAddr
\
-TAgg
\
-TAgg
\
-TAggFuncInfo
\
-TAggFuncInfo
\
-TAggInfo
\
-TAggInfo
\
...
@@ -56,12 +56,10 @@ do
...
@@ -56,12 +56,10 @@ do
-TAllocPointer
\
-TAllocPointer
\
-TAllocSet
\
-TAllocSet
\
-TAllocSetData
\
-TAllocSetData
\
-TAlterUserStmt
\
-TAnyInvalidation
\
-TAnyInvalidation
\
-TAppend
\
-TAppend
\
-TAppendState
\
-TAppendState
\
-TAppendStmt
\
-TArchType
\
-TArchiveMode
\
-TArray
\
-TArray
\
-TArrayRef
\
-TArrayRef
\
-TArrayType
\
-TArrayType
\
...
@@ -70,6 +68,8 @@ do
...
@@ -70,6 +68,8 @@ do
-TAttrNumber
\
-TAttrNumber
\
-TAttributeSize
\
-TAttributeSize
\
-TAttributeTupleForm
\
-TAttributeTupleForm
\
-TAuthRequest
\
-TAuthRequestPacket
\
-TBOX
\
-TBOX
\
-TBTItem
\
-TBTItem
\
-TBTItemData
\
-TBTItemData
\
...
@@ -135,14 +135,15 @@ do
...
@@ -135,14 +135,15 @@ do
-TConst
\
-TConst
\
-TConstrCheck
\
-TConstrCheck
\
-TConstrType
\
-TConstrType
\
-TConstraint
Def
\
-TConstraint
\
-TCopyStmt
\
-TCopyStmt
\
-TCost
\
-TCost
\
-TCreatePLangStmt
\
-TCreateSeqStmt
\
-TCreateSeqStmt
\
-TCreateStmt
\
-TCreateStmt
\
-TCreateTrigStmt
\
-TCreateTrigStmt
\
-TCreateUserStmt
\
-TCreatedbStmt
\
-TCreatedbStmt
\
-TCursorStmt
\
-TDateADT
\
-TDateADT
\
-TDateTime
\
-TDateTime
\
-TDatum
\
-TDatum
\
...
@@ -154,11 +155,14 @@ do
...
@@ -154,11 +155,14 @@ do
-TDestroydbStmt
\
-TDestroydbStmt
\
-TDlelem
\
-TDlelem
\
-TDllist
\
-TDllist
\
-TDropPLangStmt
\
-TDropTrigStmt
\
-TDropTrigStmt
\
-TDropUserStmt
\
-TDynamicFileList
\
-TDynamicFileList
\
-TELEMENT
\
-TELEMENT
\
-TEState
\
-TEState
\
-TEdge
\
-TEdge
\
-TErrorMessagePacket
\
-TExcContext
\
-TExcContext
\
-TExcData
\
-TExcData
\
-TExcDetail
\
-TExcDetail
\
...
@@ -169,7 +173,6 @@ do
...
@@ -169,7 +173,6 @@ do
-TException
\
-TException
\
-TExecStatus
\
-TExecStatus
\
-TExecStatusType
\
-TExecStatusType
\
-TExistential
\
-TExitStatus
\
-TExitStatus
\
-TExplainState
\
-TExplainState
\
-TExplainStmt
\
-TExplainStmt
\
...
@@ -187,6 +190,7 @@ do
...
@@ -187,6 +190,7 @@ do
-TFixedStackData
\
-TFixedStackData
\
-TFjoin
\
-TFjoin
\
-TFmgrCall
\
-TFmgrCall
\
-TFmgrInfo
\
-TFmgrValues
\
-TFmgrValues
\
-TFormData_pg_aggregate
\
-TFormData_pg_aggregate
\
-TFormData_pg_am
\
-TFormData_pg_am
\
...
@@ -210,7 +214,6 @@ do
...
@@ -210,7 +214,6 @@ do
-TFormData_pg_rewrite
\
-TFormData_pg_rewrite
\
-TFormData_pg_sequence
\
-TFormData_pg_sequence
\
-TFormData_pg_statistic
\
-TFormData_pg_statistic
\
-TFormData_pg_time
\
-TFormData_pg_trigger
\
-TFormData_pg_trigger
\
-TFormData_pg_user
\
-TFormData_pg_user
\
-TFormData_pg_variable
\
-TFormData_pg_variable
\
...
@@ -231,11 +234,9 @@ do
...
@@ -231,11 +234,9 @@ do
-TForm_pg_relcheck
\
-TForm_pg_relcheck
\
-TForm_pg_rewrite
\
-TForm_pg_rewrite
\
-TForm_pg_statistic
\
-TForm_pg_statistic
\
-TForm_pg_time
\
-TForm_pg_trigger
\
-TForm_pg_trigger
\
-TForm_pg_user
\
-TForm_pg_user
\
-TForm_pg_variable
\
-TForm_pg_variable
\
-TFrontEnd
\
-TFunc
\
-TFunc
\
-TFuncCall
\
-TFuncCall
\
-TFuncIndexInfo
\
-TFuncIndexInfo
\
...
@@ -325,10 +326,10 @@ do
...
@@ -325,10 +326,10 @@ do
-TInheritsTupleForm
\
-TInheritsTupleForm
\
-TInsertIndexResult
\
-TInsertIndexResult
\
-TInsertIndexResultData
\
-TInsertIndexResultData
\
-TInsertStmt
\
-TIntArray
\
-TIntArray
\
-TInt_yy_size_t
\
-TInt_yy_size_t
\
-TInt_yy_state_type
\
-TInt_yy_state_type
\
-TInternalTimeQual
\
-TInvalidationEntry
\
-TInvalidationEntry
\
-TInvalidationEntryData
\
-TInvalidationEntryData
\
-TInvalidationMessage
\
-TInvalidationMessage
\
...
@@ -363,7 +364,6 @@ do
...
@@ -363,7 +364,6 @@ do
-TLOCKT
\
-TLOCKT
\
-TLOCKTAB
\
-TLOCKTAB
\
-TLOCKTAG
\
-TLOCKTAG
\
-TLOCK_LEVEL
\
-TLOCK_TYPE
\
-TLOCK_TYPE
\
-TLRelId
\
-TLRelId
\
-TLSEG
\
-TLSEG
\
...
@@ -394,7 +394,6 @@ do
...
@@ -394,7 +394,6 @@ do
-TMergeJoinState
\
-TMergeJoinState
\
-TMergeOrder
\
-TMergeOrder
\
-TMergePath
\
-TMergePath
\
-TMoveStmt
\
-TMsgType
\
-TMsgType
\
-TName
\
-TName
\
-TNameData
\
-TNameData
\
...
@@ -429,6 +428,7 @@ do
...
@@ -429,6 +428,7 @@ do
-TOverflowTuple
\
-TOverflowTuple
\
-TOverflowTupleData
\
-TOverflowTupleData
\
-TPATH
\
-TPATH
\
-TPG_LOCK_LEVEL
\
-TPGconn
\
-TPGconn
\
-TPGlobjfuncs
\
-TPGlobjfuncs
\
-TPGnotify
\
-TPGnotify
\
...
@@ -443,19 +443,23 @@ do
...
@@ -443,19 +443,23 @@ do
-TPROC
\
-TPROC
\
-TPROC_HDR
\
-TPROC_HDR
\
-TPROC_QUEUE
\
-TPROC_QUEUE
\
-TPacket
Buf
\
-TPacket
\
-TPacketLen
\
-TPacketLen
\
-TPacketState
\
-TPage
\
-TPage
\
-TPageHeader
\
-TPageHeader
\
-TPageHeaderData
\
-TPageHeaderData
\
-TPageManagerMode
\
-TPageManagerMode
\
-TPageOffset
\
-TPageOffset
\
-TParam
\
-TParam
\
-TParamExecData
\
-TParamListInfo
\
-TParamListInfo
\
-TParamListInfoData
\
-TParamListInfoData
\
-TParamNo
\
-TParamNo
\
-TParamString
\
-TParamString
\
-TParseState
\
-TParseState
\
-TPasswordPacket
\
-TPasswordPacketV0
\
-TPath
\
-TPath
\
-TPathOrder
\
-TPathOrder
\
-TPlan
\
-TPlan
\
...
@@ -479,9 +483,9 @@ do
...
@@ -479,9 +483,9 @@ do
-TProcedureStmt
\
-TProcedureStmt
\
-TProcessingMode
\
-TProcessingMode
\
-TProjectionInfo
\
-TProjectionInfo
\
-TProtocolVersion
\
-TPsortstate
\
-TPsortstate
\
-TPsqlSettings
\
-TPsqlSettings
\
-TPurgeStmt
\
-TQuery
\
-TQuery
\
-TQueryDesc
\
-TQueryDesc
\
-TQueryTreeList
\
-TQueryTreeList
\
...
@@ -517,14 +521,12 @@ do
...
@@ -517,14 +521,12 @@ do
-TRemoveOperStmt
\
-TRemoveOperStmt
\
-TRemoveStmt
\
-TRemoveStmt
\
-TRenameStmt
\
-TRenameStmt
\
-TReplaceStmt
\
-TResTarget
\
-TResTarget
\
-TResdom
\
-TResdom
\
-TResult
\
-TResult
\
-TResultState
\
-TResultState
\
-TRetrieveIndexResult
\
-TRetrieveIndexResult
\
-TRetrieveIndexResultData
\
-TRetrieveIndexResultData
\
-TRetrieveStmt
\
-TRewriteInfo
\
-TRewriteInfo
\
-TRewriteRule
\
-TRewriteRule
\
-TRuleLock
\
-TRuleLock
\
...
@@ -547,6 +549,7 @@ do
...
@@ -547,6 +549,7 @@ do
-TScanKey
\
-TScanKey
\
-TScanKeyData
\
-TScanKeyData
\
-TScanKeyword
\
-TScanKeyword
\
-TSelectStmt
\
-TSeqScan
\
-TSeqScan
\
-TSeqTable
\
-TSeqTable
\
-TSeqTableData
\
-TSeqTableData
\
...
@@ -554,12 +557,13 @@ do
...
@@ -554,12 +557,13 @@ do
-TSharedInvalid
\
-TSharedInvalid
\
-TSharedInvalidData
\
-TSharedInvalidData
\
-TSize
\
-TSize
\
-TSockAddr
\
-TSort
\
-TSort
\
-TSortClause
\
-TSortClause
\
-TSortGroupBy
\
-TSortGroupBy
\
-TSortState
\
-TSortState
\
-TSplitNumber
\
-TSplitNumber
\
-TStartup
Info
\
-TStartup
Packet
\
-TStrategyEvaluation
\
-TStrategyEvaluation
\
-TStrategyEvaluationData
\
-TStrategyEvaluationData
\
-TStrategyExpression
\
-TStrategyExpression
\
...
@@ -577,7 +581,9 @@ do
...
@@ -577,7 +581,9 @@ do
-TStreamPtr
\
-TStreamPtr
\
-TStringInfo
\
-TStringInfo
\
-TStringInfoData
\
-TStringInfoData
\
-TSubSelect
\
-TSubLink
\
-TSubLinkType
\
-TSubPlan
\
-TSuperQE
\
-TSuperQE
\
-TSystemPortAddress
\
-TSystemPortAddress
\
-TTUPLE
\
-TTUPLE
\
...
@@ -592,13 +598,6 @@ do
...
@@ -592,13 +598,6 @@ do
-TTimeADT
\
-TTimeADT
\
-TTimeInterval
\
-TTimeInterval
\
-TTimeIntervalData
\
-TTimeIntervalData
\
-TTimeQual
\
-TTimeQualData
\
-TTimeQualMode
\
-TTimeQualSpace
\
-TTimeRange
\
-TTimeRelationContents
\
-TTimeRelationContentsData
\
-TTimeSpan
\
-TTimeSpan
\
-TTransactionId
\
-TTransactionId
\
-TTransactionState
\
-TTransactionState
\
...
@@ -621,9 +620,10 @@ do
...
@@ -621,9 +620,10 @@ do
-TTypeTupleForm
\
-TTypeTupleForm
\
-TTypeTupleFormData
\
-TTypeTupleFormData
\
-TUNDO_LIST
\
-TUNDO_LIST
\
-TUnionFlag
\
-TUnique
\
-TUnique
\
-TUniqueState
\
-TUniqueState
\
-TUpdateStmt
\
-TUserAuth
\
-TVAttList
\
-TVAttList
\
-TVAttListData
\
-TVAttListData
\
-TVFunction
\
-TVFunction
\
...
@@ -795,8 +795,11 @@ do
...
@@ -795,8 +795,11 @@ do
sed
's;^/\*\(DATA(.*\)\*/$;\1;'
|
sed
's;^/\*\(DATA(.*\)\*/$;\1;'
|
sed
's;/\*---X_X;/* ---;g'
|
sed
's;/\*---X_X;/* ---;g'
|
sed
's;^static[ ][ ]*;static ;g'
|
# workaround indent bug
sed
's;^static[ ][ ]*;static ;g'
|
# workaround indent bug
sed
's;^}[ ][ ]*/\*;} /*;'
|
detab
-t8
-qc
|
detab
-t8
-qc
|
entab
-t4
-qc
>
/tmp/
$$
&&
cat
/tmp/
$$
>
$FILE
entab
-t4
-qc
|
sed
's;^\([A-Za-z_][^ ]*\)[ ][ ]*\*$;\1 *;'
|
# move trailing * in function return type
cat
>
/tmp/
$$
&&
cat
/tmp/
$$
>
$FILE
done
done
# The 'for' loop makes these backup files useless
# The 'for' loop makes these backup files useless
...
...
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