Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
d067f83b
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d067f83b
编写于
2月 25, 1998
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
pgindent changes for Thomas proc/lock cleanup
上级
19ba2292
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
34 addition
and
31 deletion
+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
未找到文件。
src/backend/storage/lmgr/proc.c
浏览文件 @
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
浏览文件 @
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
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录