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
76ece169
Commit
76ece169
authored
Apr 26, 2018
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perltidy: Add option --nooutdent-long-comments
parent
d4f16d50
Changes
18
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
103 additions
and
102 deletions
+103
-102
src/backend/utils/Gen_dummy_probes.pl
src/backend/utils/Gen_dummy_probes.pl
+5
-5
src/backend/utils/mb/Unicode/UCS_to_BIG5.pl
src/backend/utils/mb/Unicode/UCS_to_BIG5.pl
+3
-3
src/backend/utils/mb/Unicode/convutils.pm
src/backend/utils/mb/Unicode/convutils.pm
+2
-2
src/bin/pg_basebackup/t/010_pg_basebackup.pl
src/bin/pg_basebackup/t/010_pg_basebackup.pl
+4
-4
src/bin/pg_dump/t/002_pg_dump.pl
src/bin/pg_dump/t/002_pg_dump.pl
+1
-1
src/bin/pgbench/t/001_pgbench_with_server.pl
src/bin/pgbench/t/001_pgbench_with_server.pl
+1
-1
src/interfaces/ecpg/preproc/parse.pl
src/interfaces/ecpg/preproc/parse.pl
+17
-17
src/pl/plperl/plperl_opmask.pl
src/pl/plperl/plperl_opmask.pl
+5
-5
src/test/modules/test_pg_dump/t/001_base.pl
src/test/modules/test_pg_dump/t/001_base.pl
+2
-2
src/test/perl/PostgresNode.pm
src/test/perl/PostgresNode.pm
+6
-6
src/test/recovery/t/006_logical_decoding.pl
src/test/recovery/t/006_logical_decoding.pl
+1
-1
src/test/recovery/t/011_crash_recovery.pl
src/test/recovery/t/011_crash_recovery.pl
+1
-1
src/test/ssl/ServerSetup.pm
src/test/ssl/ServerSetup.pm
+5
-5
src/tools/msvc/Mkvcbuild.pm
src/tools/msvc/Mkvcbuild.pm
+8
-8
src/tools/msvc/Project.pm
src/tools/msvc/Project.pm
+4
-4
src/tools/msvc/VSObjectFactory.pm
src/tools/msvc/VSObjectFactory.pm
+3
-3
src/tools/msvc/gendef.pl
src/tools/msvc/gendef.pl
+34
-34
src/tools/pgindent/perltidyrc
src/tools/pgindent/perltidyrc
+1
-0
No files found.
src/backend/utils/Gen_dummy_probes.pl
View file @
76ece169
...
@@ -97,35 +97,35 @@ sub Run()
...
@@ -97,35 +97,35 @@ sub Run()
$CondReg
||=
$s
;
$CondReg
||=
$s
;
}
}
# s/([^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\})/(INT1, INT2, INT3, INT4)/
# s/([^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\})/(INT1, INT2, INT3, INT4)/
{
{
$s
=
$s
=
s /\([^,)]+, [^,)]+, [^,)]+, [^,)]+\)/(INT1, INT2, INT3, INT4)/s
;
s /\([^,)]+, [^,)]+, [^,)]+, [^,)]+\)/(INT1, INT2, INT3, INT4)/s
;
$CondReg
||=
$s
;
$CondReg
||=
$s
;
}
}
# s/([^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\})/(INT1, INT2, INT3, INT4, INT5)/
# s/([^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\})/(INT1, INT2, INT3, INT4, INT5)/
{
{
$s
=
$s
=
s /\([^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+\)/(INT1, INT2, INT3, INT4, INT5)/s
;
s /\([^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+\)/(INT1, INT2, INT3, INT4, INT5)/s
;
$CondReg
||=
$s
;
$CondReg
||=
$s
;
}
}
# s/([^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\})/(INT1, INT2, INT3, INT4, INT5, INT6)/
# s/([^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\})/(INT1, INT2, INT3, INT4, INT5, INT6)/
{
{
$s
=
$s
=
s /\([^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+\)/(INT1, INT2, INT3, INT4, INT5, INT6)/s
;
s /\([^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+\)/(INT1, INT2, INT3, INT4, INT5, INT6)/s
;
$CondReg
||=
$s
;
$CondReg
||=
$s
;
}
}
# s/([^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\})/(INT1, INT2, INT3, INT4, INT5, INT6, INT7)/
# s/([^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\})/(INT1, INT2, INT3, INT4, INT5, INT6, INT7)/
{
{
$s
=
$s
=
s /\([^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+\)/(INT1, INT2, INT3, INT4, INT5, INT6, INT7)/s
;
s /\([^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+\)/(INT1, INT2, INT3, INT4, INT5, INT6, INT7)/s
;
$CondReg
||=
$s
;
$CondReg
||=
$s
;
}
}
# s/([^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\})/(INT1, INT2, INT3, INT4, INT5, INT6, INT7, INT8)/
# s/([^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\})/(INT1, INT2, INT3, INT4, INT5, INT6, INT7, INT8)/
{
{
$s
=
$s
=
s /\([^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+\)/(INT1, INT2, INT3, INT4, INT5, INT6, INT7, INT8)/s
;
s /\([^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+\)/(INT1, INT2, INT3, INT4, INT5, INT6, INT7, INT8)/s
;
...
...
src/backend/utils/mb/Unicode/UCS_to_BIG5.pl
View file @
76ece169
...
@@ -62,9 +62,9 @@ foreach my $i (@$all)
...
@@ -62,9 +62,9 @@ foreach my $i (@$all)
my
$code
=
$i
->
{
code
};
my
$code
=
$i
->
{
code
};
my
$ucs
=
$i
->
{
ucs
};
my
$ucs
=
$i
->
{
ucs
};
# BIG5.TXT maps several BIG5 characters to U+FFFD. The UTF-8 to BIG5 mapping can
# BIG5.TXT maps several BIG5 characters to U+FFFD. The UTF-8 to BIG5 mapping can
# contain only one of them. XXX: Doesn't really make sense to include any of them,
# contain only one of them. XXX: Doesn't really make sense to include any of them,
# but for historical reasons, we map the first one of them.
# but for historical reasons, we map the first one of them.
if
(
$i
->
{
ucs
}
==
0xFFFD
&&
$i
->
{
code
}
!=
0xA15A
)
if
(
$i
->
{
ucs
}
==
0xFFFD
&&
$i
->
{
code
}
!=
0xA15A
)
{
{
$i
->
{
direction
}
=
TO_UNICODE
;
$i
->
{
direction
}
=
TO_UNICODE
;
...
...
src/backend/utils/mb/Unicode/convutils.pm
View file @
76ece169
...
@@ -138,7 +138,7 @@ sub print_conversion_tables_direction
...
@@ -138,7 +138,7 @@ sub print_conversion_tables_direction
print
$out
"
/* src/backend/utils/mb/Unicode/
$fname
*/
\n
";
print
$out
"
/* src/backend/utils/mb/Unicode/
$fname
*/
\n
";
print
$out
"
/* This file is generated by
$this_script
*/
\n\n
";
print
$out
"
/* This file is generated by
$this_script
*/
\n\n
";
# Collect regular, non-combined, mappings, and create the radix tree from them.
# Collect regular, non-combined, mappings, and create the radix tree from them.
my
$charmap
=
&
make_charmap
(
$out
,
$charset
,
$direction
,
0
);
my
$charmap
=
&
make_charmap
(
$out
,
$charset
,
$direction
,
0
);
print_radix_table
(
$out
,
$tblname
,
$charmap
);
print_radix_table
(
$out
,
$tblname
,
$charmap
);
...
...
src/bin/pg_basebackup/t/010_pg_basebackup.pl
View file @
76ece169
src/bin/pg_dump/t/002_pg_dump.pl
View file @
76ece169
...
@@ -2864,7 +2864,7 @@ foreach my $run (sort keys %pgdump_runs)
...
@@ -2864,7 +2864,7 @@ foreach my $run (sort keys %pgdump_runs)
next
;
next
;
}
}
# If there is a like entry, but no unlike entry, then we will test the like case
# If there is a like entry, but no unlike entry, then we will test the like case
if
(
$tests
{
$test
}
->
{
like
}
->
{
$test_key
}
if
(
$tests
{
$test
}
->
{
like
}
->
{
$test_key
}
&&
!
defined
(
$tests
{
$test
}
->
{
unlike
}
->
{
$test_key
}))
&&
!
defined
(
$tests
{
$test
}
->
{
unlike
}
->
{
$test_key
}))
{
{
...
...
src/bin/pgbench/t/001_pgbench_with_server.pl
View file @
76ece169
src/interfaces/ecpg/preproc/parse.pl
View file @
76ece169
src/pl/plperl/plperl_opmask.pl
View file @
76ece169
src/test/modules/test_pg_dump/t/001_base.pl
View file @
76ece169
...
@@ -498,7 +498,7 @@ foreach my $run (sort keys %pgdump_runs)
...
@@ -498,7 +498,7 @@ foreach my $run (sort keys %pgdump_runs)
# Then count all the tests run against each run
# Then count all the tests run against each run
foreach
my
$test
(
sort
keys
%
tests
)
foreach
my
$test
(
sort
keys
%
tests
)
{
{
# If there is a like entry, but no unlike entry, then we will test the like case
# If there is a like entry, but no unlike entry, then we will test the like case
if
(
$tests
{
$test
}
->
{
like
}
->
{
$test_key
}
if
(
$tests
{
$test
}
->
{
like
}
->
{
$test_key
}
&&
!
defined
(
$tests
{
$test
}
->
{
unlike
}
->
{
$test_key
}))
&&
!
defined
(
$tests
{
$test
}
->
{
unlike
}
->
{
$test_key
}))
{
{
...
...
src/test/perl/PostgresNode.pm
View file @
76ece169
src/test/recovery/t/006_logical_decoding.pl
View file @
76ece169
src/test/recovery/t/011_crash_recovery.pl
View file @
76ece169
src/test/ssl/ServerSetup.pm
View file @
76ece169
...
@@ -115,7 +115,7 @@ sub configure_test_server_for_ssl
...
@@ -115,7 +115,7 @@ sub configure_test_server_for_ssl
open
my
$sslconf
,
'
>
',
"
$pgdata
/sslconfig.conf
";
open
my
$sslconf
,
'
>
',
"
$pgdata
/sslconfig.conf
";
close
$sslconf
;
close
$sslconf
;
# Copy all server certificates and keys, and client root cert, to the data dir
# Copy all server certificates and keys, and client root cert, to the data dir
copy_files
("
ssl/server-*.crt
",
$pgdata
);
copy_files
("
ssl/server-*.crt
",
$pgdata
);
copy_files
("
ssl/server-*.key
",
$pgdata
);
copy_files
("
ssl/server-*.key
",
$pgdata
);
chmod
(
0600
,
glob
"
$pgdata
/server-*.key
")
or
die
$!
;
chmod
(
0600
,
glob
"
$pgdata
/server-*.key
")
or
die
$!
;
...
...
src/tools/msvc/Mkvcbuild.pm
View file @
76ece169
...
@@ -530,9 +530,9 @@ sub mkvcbuild
...
@@ -530,9 +530,9 @@ sub mkvcbuild
my
$perl_path
=
$solution
->
{
options
}
->
{
perl
}
.
'
\
lib
\
CORE
\
*perl*
';
my
$perl_path
=
$solution
->
{
options
}
->
{
perl
}
.
'
\
lib
\
CORE
\
*perl*
';
# ActivePerl 5.16 provided perl516.lib; 5.18 provided libperl518.a
# ActivePerl 5.16 provided perl516.lib; 5.18 provided libperl518.a
# Starting with ActivePerl 5.24, both perlnn.lib and libperlnn.a are provided.
# Starting with ActivePerl 5.24, both perlnn.lib and libperlnn.a are provided.
# In this case, prefer .lib.
# In this case, prefer .lib.
my
@perl_libs
=
my
@perl_libs
=
reverse
sort
grep
{
/perl\d+\.lib$|libperl\d+\.a$/
}
reverse
sort
grep
{
/perl\d+\.lib$|libperl\d+\.a$/
}
glob
(
$perl_path
);
glob
(
$perl_path
);
...
...
src/tools/msvc/Project.pm
View file @
76ece169
...
@@ -345,15 +345,15 @@ sub Save
...
@@ -345,15 +345,15 @@ sub Save
{
{
my
(
$self
)
=
@_
;
my
(
$self
)
=
@_
;
# If doing DLL and haven't specified a DEF file, do a full export of all symbols
# If doing DLL and haven't specified a DEF file, do a full export of all symbols
# in the project.
# in the project.
if
(
$self
->
{
type
}
eq
"
dll
"
&&
!
$self
->
{
def
})
if
(
$self
->
{
type
}
eq
"
dll
"
&&
!
$self
->
{
def
})
{
{
$self
->
FullExportDLL
(
$self
->
{
name
}
.
"
.lib
");
$self
->
FullExportDLL
(
$self
->
{
name
}
.
"
.lib
");
}
}
# Warning 4197 is about double exporting, disable this per
# Warning 4197 is about double exporting, disable this per
# http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=99193
# http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=99193
$self
->
DisableLinkerWarnings
('
4197
')
if
(
$self
->
{
platform
}
eq
'
x64
');
$self
->
DisableLinkerWarnings
('
4197
')
if
(
$self
->
{
platform
}
eq
'
x64
');
# Dump the project
# Dump the project
...
...
src/tools/msvc/VSObjectFactory.pm
View file @
76ece169
...
@@ -54,7 +54,7 @@ sub CreateSolution
...
@@ -54,7 +54,7 @@ sub CreateSolution
return
new
VS2015Solution
(
@_
);
return
new
VS2015Solution
(
@_
);
}
}
# visual 2017 hasn't changed the nmake version to 15, so adjust the check to support it.
# visual 2017 hasn't changed the nmake version to 15, so adjust the check to support it.
elsif
((
$visualStudioVersion
ge
'
14.10
')
elsif
((
$visualStudioVersion
ge
'
14.10
')
or
(
$visualStudioVersion
eq
'
15.00
'))
or
(
$visualStudioVersion
eq
'
15.00
'))
{
{
...
@@ -101,7 +101,7 @@ sub CreateProject
...
@@ -101,7 +101,7 @@ sub CreateProject
return
new
VC2015Project
(
@_
);
return
new
VC2015Project
(
@_
);
}
}
# visual 2017 hasn't changed the nmake version to 15, so adjust the check to support it.
# visual 2017 hasn't changed the nmake version to 15, so adjust the check to support it.
elsif
((
$visualStudioVersion
ge
'
14.10
')
elsif
((
$visualStudioVersion
ge
'
14.10
')
or
(
$visualStudioVersion
eq
'
15.00
'))
or
(
$visualStudioVersion
eq
'
15.00
'))
{
{
...
@@ -137,7 +137,7 @@ sub _GetVisualStudioVersion
...
@@ -137,7 +137,7 @@ sub _GetVisualStudioVersion
{
{
my
(
$major
,
$minor
)
=
@_
;
my
(
$major
,
$minor
)
=
@_
;
# visual 2017 hasn't changed the nmake version to 15, so still using the older version for comparison.
# visual 2017 hasn't changed the nmake version to 15, so still using the older version for comparison.
if
(
$major
>
14
)
if
(
$major
>
14
)
{
{
carp
carp
...
...
src/tools/msvc/gendef.pl
View file @
76ece169
src/tools/pgindent/perltidyrc
View file @
76ece169
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
--entab-leading-whitespace=4
--entab-leading-whitespace=4
--keep-old-blank-lines=2
--keep-old-blank-lines=2
--maximum-line-length=78
--maximum-line-length=78
--nooutdent-long-comments
--nooutdent-long-quotes
--nooutdent-long-quotes
--nospace-for-semicolon
--nospace-for-semicolon
--opening-brace-on-new-line
--opening-brace-on-new-line
...
...
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