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