[COMMITTERS] pgsql: Fix comment.

2017-07-31 Thread Tatsuo Ishii
Fix comment.

XLByteToSeg and XLByteToPrevSeg calculate only a segment number.  The
definition of these macros were modified by commit
dfda6ebaec6763090fb78b458a979b558c50b39b but the comment remain
unchanged.

Patch by Yugo Nagata. Back patched to 9.3 and beyond.

Branch
--
REL9_6_STABLE

Details
---
https://git.postgresql.org/pg/commitdiff/bd8ff38760080362aa3ee126ed9a5e4b0d32c2a8

Modified Files
--
src/include/access/xlog_internal.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: Fix comment.

2017-07-31 Thread Tatsuo Ishii
Fix comment.

XLByteToSeg and XLByteToPrevSeg calculate only a segment number.  The
definition of these macros were modified by commit
dfda6ebaec6763090fb78b458a979b558c50b39b but the comment remain
unchanged.

Patch by Yugo Nagata. Back patched to 9.3 and beyond.

Branch
--
REL9_4_STABLE

Details
---
https://git.postgresql.org/pg/commitdiff/a282d1871c9b35045290315403335719b80e3ac1

Modified Files
--
src/include/access/xlog_internal.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: Fix comment.

2017-07-31 Thread Tatsuo Ishii
Fix comment.

XLByteToSeg and XLByteToPrevSeg calculate only a segment number.  The
definition of these macros were modified by commit
dfda6ebaec6763090fb78b458a979b558c50b39b but the comment remain
unchanged.

Patch by Yugo Nagata. Back patched to 9.3 and beyond.

Branch
--
REL9_5_STABLE

Details
---
https://git.postgresql.org/pg/commitdiff/ca99f5b5fd90828f150714021f517de46a47dfe6

Modified Files
--
src/include/access/xlog_internal.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: Fix comment.

2017-07-31 Thread Tatsuo Ishii
Fix comment.

XLByteToSeg and XLByteToPrevSeg calculate only a segment number.  The
definition of these macros were modified by commit
dfda6ebaec6763090fb78b458a979b558c50b39b but the comment remain
unchanged.

Patch by Yugo Nagata. Back patched to 9.3 and beyond.

Branch
--
master

Details
---
https://git.postgresql.org/pg/commitdiff/e662ef0f2e95d9da3df705ddaaff36b0c01c7acc

Modified Files
--
src/include/access/xlog_internal.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: Fix comment.

2017-07-31 Thread Tatsuo Ishii
Fix comment.

XLByteToSeg and XLByteToPrevSeg calculate only a segment number.  The
definition of these macros were modified by commit
dfda6ebaec6763090fb78b458a979b558c50b39b but the comment remain
unchanged.

Patch by Yugo Nagata. Back patched to 9.3 and beyond.

Branch
--
REL9_3_STABLE

Details
---
https://git.postgresql.org/pg/commitdiff/bf19a6fe32840bbb56c10a370df38a5994cb

Modified Files
--
src/include/access/xlog_internal.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: Fix typo

2017-07-31 Thread Peter Eisentraut
Fix typo

Author: Masahiko Sawada 

Branch
--
master

Details
---
https://git.postgresql.org/pg/commitdiff/0b02e3f1289e0454d313e6add45f43a287ebaf8b

Modified Files
--
src/bin/pg_upgrade/info.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: Fix typo

2017-07-31 Thread Peter Eisentraut
Fix typo

Author: Etsuro Fujita 

Branch
--
master

Details
---
https://git.postgresql.org/pg/commitdiff/f40254a799f7057a415917dacb5ba7eab5b17a99

Modified Files
--
src/backend/executor/execMain.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: Doc: add v10 release notes entries for the DH parameter changes.

2017-07-31 Thread Heikki Linnakangas
Doc: add v10 release notes entries for the DH parameter changes.

Branch
--
master

Details
---
https://git.postgresql.org/pg/commitdiff/4427b515e6195bd2304e082ea5a5c5d6d36c4eb5

Modified Files
--
doc/src/sgml/release-10.sgml | 37 +
1 file changed, 37 insertions(+)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: Always use 2048 bit DH parameters for OpenSSL ephemeral DH ciphe

2017-07-31 Thread Heikki Linnakangas
Always use 2048 bit DH parameters for OpenSSL ephemeral DH ciphers.

1024 bits is considered weak these days, but OpenSSL always passes 1024 as
the key length to the tmp_dh callback. All the code to handle other key
lengths is, in fact, dead.

To remedy those issues:

* Only include hard-coded 2048-bit parameters.
* Set the parameters directly with SSL_CTX_set_tmp_dh(), without the
  callback
* The name of the file containing the DH parameters is now a GUC. This
  replaces the old hardcoded "dh1024.pem" filename. (The files for other
  key lengths, dh512.pem, dh2048.pem, etc. were never actually used.)

This is not a new problem, but it doesn't seem worth the risk and churn to
backport. If you care enough about the strength of the DH parameters on
old versions, you can create custom DH parameters, with as many bits as you
wish, and put them in the "dh1024.pem" file.

Per report by Nicolas Guini and Damian Quiroga. Reviewed by Michael Paquier.

Discussion: 
https://www.postgresql.org/message-id/camxbouyjooautvozn6ofzym828anrdjuccotccquxjws-l2...@mail.gmail.com

Branch
--
master

Details
---
https://git.postgresql.org/pg/commitdiff/c0a15e07cd718cb6e455e68328f522ac076a0e4b

Modified Files
--
doc/src/sgml/config.sgml  |  24 +++
src/backend/libpq/be-secure-openssl.c | 264 +-
src/backend/libpq/be-secure.c |   1 +
src/backend/utils/misc/guc.c  |  11 ++
src/backend/utils/misc/postgresql.conf.sample |   1 +
src/include/libpq/libpq.h |   1 +
6 files changed, 133 insertions(+), 169 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Re: [COMMITTERS] pgsql: Work around Msys weakness in Testlib.pm's command_like()

2017-07-31 Thread Peter Eisentraut
On 7/26/17 22:49, Andrew Dunstan wrote:
> Work around Msys weakness in Testlib.pm's command_like()
> 
> When output of IPC::Run::run () is redirected to scalar references, in
> certain circumstances the Msys perl does not correctly detect that the
> end of file has been seen, making the test hang indefinitely. One such
> circumstance is when the command is 'pg_ctl start', and such a change
> was made in commit f13ea95f9e. The workaround, which only applies on
> MSys, is to redirect the output to temporary files and then read them in
> when the process has finished.

This commit message contains interesting information that would be
useful to record in a code comment.  Otherwise it's not really clear
when or why to use the "safe" variant.

-- 
Peter Eisentraut  http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: Doc: specify that the minimum supported version of Perl is 5.8.3

2017-07-31 Thread Tom Lane
Doc: specify that the minimum supported version of Perl is 5.8.3.

Previously the docs just said "5.8 or later".  Experimentation shows
that while you can build on Unix from a git checkout with 5.8.0,
compiling recent PL/Perl requires at least 5.8.1, and you won't be
able to run the TAP tests with less than 5.8.3 because that's when
they added "prove".  (I do not have any information on just what the
MSVC build scripts require.)

Since all these versions are quite ancient, let's not split hairs
in the docs, but just say that 5.8.3 is the minimum requirement.

Discussion: https://postgr.es/m/16894.1501392...@sss.pgh.pa.us

Branch
--
REL9_5_STABLE

Details
---
https://git.postgresql.org/pg/commitdiff/d6f87a23d016d6cae9a062fb83d3d851ff1a5305

Modified Files
--
doc/src/sgml/install-windows.sgml | 3 ++-
doc/src/sgml/installation.sgml| 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: Doc: specify that the minimum supported version of Perl is 5.8.3

2017-07-31 Thread Tom Lane
Doc: specify that the minimum supported version of Perl is 5.8.3.

Previously the docs just said "5.8 or later".  Experimentation shows
that while you can build on Unix from a git checkout with 5.8.0,
compiling recent PL/Perl requires at least 5.8.1, and you won't be
able to run the TAP tests with less than 5.8.3 because that's when
they added "prove".  (I do not have any information on just what the
MSVC build scripts require.)

Since all these versions are quite ancient, let's not split hairs
in the docs, but just say that 5.8.3 is the minimum requirement.

Discussion: https://postgr.es/m/16894.1501392...@sss.pgh.pa.us

Branch
--
master

Details
---
https://git.postgresql.org/pg/commitdiff/dea6ba939fd2b70dd444349d52585a0694578571

Modified Files
--
doc/src/sgml/install-windows.sgml | 3 ++-
doc/src/sgml/installation.sgml| 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: Doc: specify that the minimum supported version of Perl is 5.8.3

2017-07-31 Thread Tom Lane
Doc: specify that the minimum supported version of Perl is 5.8.3.

Previously the docs just said "5.8 or later".  Experimentation shows
that while you can build on Unix from a git checkout with 5.8.0,
compiling recent PL/Perl requires at least 5.8.1, and you won't be
able to run the TAP tests with less than 5.8.3 because that's when
they added "prove".  (I do not have any information on just what the
MSVC build scripts require.)

Since all these versions are quite ancient, let's not split hairs
in the docs, but just say that 5.8.3 is the minimum requirement.

Discussion: https://postgr.es/m/16894.1501392...@sss.pgh.pa.us

Branch
--
REL9_2_STABLE

Details
---
https://git.postgresql.org/pg/commitdiff/c522b52d3cf2b1a42fd7795c652d6fb1574a435c

Modified Files
--
doc/src/sgml/install-windows.sgml | 3 ++-
doc/src/sgml/installation.sgml| 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: Doc: specify that the minimum supported version of Perl is 5.8.3

2017-07-31 Thread Tom Lane
Doc: specify that the minimum supported version of Perl is 5.8.3.

Previously the docs just said "5.8 or later".  Experimentation shows
that while you can build on Unix from a git checkout with 5.8.0,
compiling recent PL/Perl requires at least 5.8.1, and you won't be
able to run the TAP tests with less than 5.8.3 because that's when
they added "prove".  (I do not have any information on just what the
MSVC build scripts require.)

Since all these versions are quite ancient, let's not split hairs
in the docs, but just say that 5.8.3 is the minimum requirement.

Discussion: https://postgr.es/m/16894.1501392...@sss.pgh.pa.us

Branch
--
REL9_3_STABLE

Details
---
https://git.postgresql.org/pg/commitdiff/3bf894feebcb8339b5e7348facf20f7ccf596af4

Modified Files
--
doc/src/sgml/install-windows.sgml | 3 ++-
doc/src/sgml/installation.sgml| 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: Doc: specify that the minimum supported version of Perl is 5.8.3

2017-07-31 Thread Tom Lane
Doc: specify that the minimum supported version of Perl is 5.8.3.

Previously the docs just said "5.8 or later".  Experimentation shows
that while you can build on Unix from a git checkout with 5.8.0,
compiling recent PL/Perl requires at least 5.8.1, and you won't be
able to run the TAP tests with less than 5.8.3 because that's when
they added "prove".  (I do not have any information on just what the
MSVC build scripts require.)

Since all these versions are quite ancient, let's not split hairs
in the docs, but just say that 5.8.3 is the minimum requirement.

Discussion: https://postgr.es/m/16894.1501392...@sss.pgh.pa.us

Branch
--
REL9_6_STABLE

Details
---
https://git.postgresql.org/pg/commitdiff/3521131cb120ab5fb2f5a5b9cbf15003ef6b98ab

Modified Files
--
doc/src/sgml/install-windows.sgml | 3 ++-
doc/src/sgml/installation.sgml| 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: Doc: specify that the minimum supported version of Perl is 5.8.3

2017-07-31 Thread Tom Lane
Doc: specify that the minimum supported version of Perl is 5.8.3.

Previously the docs just said "5.8 or later".  Experimentation shows
that while you can build on Unix from a git checkout with 5.8.0,
compiling recent PL/Perl requires at least 5.8.1, and you won't be
able to run the TAP tests with less than 5.8.3 because that's when
they added "prove".  (I do not have any information on just what the
MSVC build scripts require.)

Since all these versions are quite ancient, let's not split hairs
in the docs, but just say that 5.8.3 is the minimum requirement.

Discussion: https://postgr.es/m/16894.1501392...@sss.pgh.pa.us

Branch
--
REL9_4_STABLE

Details
---
https://git.postgresql.org/pg/commitdiff/23c20e83d681ec74f2b9f51aa0bc19362a506fc7

Modified Files
--
doc/src/sgml/install-windows.sgml | 3 ++-
doc/src/sgml/installation.sgml| 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: Record full paths of programs sought by "configure".

2017-07-31 Thread Tom Lane
Record full paths of programs sought by "configure".

Previously we had a mix of uses of AC_CHECK_PROG[S] and AC_PATH_PROG[S].
The only difference between those macros is that the latter emits the
full path to the program it finds, eg "/usr/bin/prove", whereas the
former emits just "prove".  Let's standardize on always emitting the
full path; this is better for documentation of the build, and it might
prevent some types of failures if later build steps are done with
a different PATH setting.

I did not touch the AC_CHECK_PROG[S] calls in ax_pthread.m4 and
ax_prog_perl_modules.m4.  There seems no need to make those diverge from
upstream, since we do not record the programs sought by the former, while
the latter's call to AC_CHECK_PROG(PERL,...) will never be reached.

Discussion: https://postgr.es/m/25937.1501433...@sss.pgh.pa.us

Branch
--
master

Details
---
https://git.postgresql.org/pg/commitdiff/40b9f192170a300cd9456eb71ba7c792ba9533e1

Modified Files
--
config/docbook.m4  |   2 +-
config/programs.m4 |   6 +-
configure  | 285 +++--
configure.in   |  22 ++---
4 files changed, 180 insertions(+), 135 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: PL/Perl portability fix: absorb relevant -D switches from Perl.

2017-07-31 Thread Tom Lane
PL/Perl portability fix: absorb relevant -D switches from Perl.

Back-patch of commit 3c163a7fc76debbbdad1bdd3c43721cffe72f4db,
which see for more info.

Also throw in commit b4cc35fbb709bd6fcae8998f041fd731c9acbf42,
so Coverity doesn't whine about the back branches.

Ashutosh Sharma, some adjustments by me

Discussion: 
https://postgr.es/m/CANFyU97OVQ3+Mzfmt3MhuUm5NwPU=-FtbNH5Eb7nZL9ua8=r...@mail.gmail.com

Branch
--
REL9_5_STABLE

Details
---
https://git.postgresql.org/pg/commitdiff/df52739ce3e7b57791c3d2278fa945a4bed61947

Modified Files
--
config/perl.m4 | 25 +
configure  | 13 +
configure.in   |  1 +
contrib/hstore_plperl/Makefile |  2 +-
src/Makefile.global.in |  1 +
src/pl/plperl/GNUmakefile  |  6 +-
src/pl/plperl/plperl.c | 28 +---
src/tools/msvc/Mkvcbuild.pm| 27 +--
8 files changed, 88 insertions(+), 15 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: PL/Perl portability fix: absorb relevant -D switches from Perl.

2017-07-31 Thread Tom Lane
PL/Perl portability fix: absorb relevant -D switches from Perl.

Back-patch of commit 3c163a7fc76debbbdad1bdd3c43721cffe72f4db,
which see for more info.

Also throw in commit b4cc35fbb709bd6fcae8998f041fd731c9acbf42,
so Coverity doesn't whine about the back branches.

Ashutosh Sharma, some adjustments by me

Discussion: 
https://postgr.es/m/CANFyU97OVQ3+Mzfmt3MhuUm5NwPU=-FtbNH5Eb7nZL9ua8=r...@mail.gmail.com

Branch
--
REL9_4_STABLE

Details
---
https://git.postgresql.org/pg/commitdiff/9cbdc689418b8a3e5b918ba9b76c5ed91d7406c0

Modified Files
--
config/perl.m4  | 25 +
configure   | 13 +
configure.in|  1 +
src/Makefile.global.in  |  1 +
src/pl/plperl/GNUmakefile   |  6 +-
src/pl/plperl/plperl.c  | 28 +---
src/tools/msvc/Mkvcbuild.pm | 21 -
7 files changed, 82 insertions(+), 13 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: PL/Perl portability fix: absorb relevant -D switches from Perl.

2017-07-31 Thread Tom Lane
PL/Perl portability fix: absorb relevant -D switches from Perl.

Back-patch of commit 3c163a7fc76debbbdad1bdd3c43721cffe72f4db,
which see for more info.

Also throw in commit b4cc35fbb709bd6fcae8998f041fd731c9acbf42,
so Coverity doesn't whine about the back branches.

Ashutosh Sharma, some adjustments by me

Discussion: 
https://postgr.es/m/CANFyU97OVQ3+Mzfmt3MhuUm5NwPU=-FtbNH5Eb7nZL9ua8=r...@mail.gmail.com

Branch
--
REL9_3_STABLE

Details
---
https://git.postgresql.org/pg/commitdiff/0d8f015e7726f5c9635b0b435a4cdf4d6dcdfdbe

Modified Files
--
config/perl.m4  | 25 +
configure   | 13 +
configure.in|  1 +
src/Makefile.global.in  |  1 +
src/pl/plperl/GNUmakefile   |  6 +-
src/pl/plperl/plperl.c  | 28 +---
src/tools/msvc/Mkvcbuild.pm | 21 -
7 files changed, 82 insertions(+), 13 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: PL/Perl portability fix: avoid including XSUB.h in plperl.c.

2017-07-31 Thread Tom Lane
PL/Perl portability fix: avoid including XSUB.h in plperl.c.

Back-patch of commit bebe174bb4462ef079a1d7eeafb82ff969f160a4,
which see for more info.

Patch by me, with some help from Ashutosh Sharma

Discussion: 
https://postgr.es/m/CANFyU97OVQ3+Mzfmt3MhuUm5NwPU=-FtbNH5Eb7nZL9ua8=r...@mail.gmail.com

Branch
--
REL9_4_STABLE

Details
---
https://git.postgresql.org/pg/commitdiff/d48180ec812d6d2c1c17900613d05bf6e8d76994

Modified Files
--
src/pl/plperl/SPI.xs   |  32 +-
src/pl/plperl/Util.xs  |  44 +---
src/pl/plperl/plperl.c | 238 +++--
src/pl/plperl/plperl.h |  17 ++-
src/pl/plperl/plperl_helpers.h |   6 ++
5 files changed, 206 insertions(+), 131 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: PL/Perl portability fix: avoid including XSUB.h in plperl.c.

2017-07-31 Thread Tom Lane
PL/Perl portability fix: avoid including XSUB.h in plperl.c.

Back-patch of commit bebe174bb4462ef079a1d7eeafb82ff969f160a4,
which see for more info.

Patch by me, with some help from Ashutosh Sharma

Discussion: 
https://postgr.es/m/CANFyU97OVQ3+Mzfmt3MhuUm5NwPU=-FtbNH5Eb7nZL9ua8=r...@mail.gmail.com

Branch
--
REL9_6_STABLE

Details
---
https://git.postgresql.org/pg/commitdiff/30a5c8bfbd7bec07385c7d40305b06385d700b3f

Modified Files
--
contrib/hstore_plperl/hstore_plperl.c |   6 +-
src/pl/plperl/SPI.xs  |  32 +
src/pl/plperl/Util.xs |  44 +-
src/pl/plperl/plperl.c| 244 +-
src/pl/plperl/plperl.h|  17 ++-
src/pl/plperl/plperl_helpers.h|   4 +
6 files changed, 210 insertions(+), 137 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: PL/Perl portability fix: avoid including XSUB.h in plperl.c.

2017-07-31 Thread Tom Lane
PL/Perl portability fix: avoid including XSUB.h in plperl.c.

Back-patch of commit bebe174bb4462ef079a1d7eeafb82ff969f160a4,
which see for more info.

Patch by me, with some help from Ashutosh Sharma

Discussion: 
https://postgr.es/m/CANFyU97OVQ3+Mzfmt3MhuUm5NwPU=-FtbNH5Eb7nZL9ua8=r...@mail.gmail.com

Branch
--
REL9_3_STABLE

Details
---
https://git.postgresql.org/pg/commitdiff/b92f17277eb92da18366ccddeffcea997692f9e5

Modified Files
--
src/pl/plperl/SPI.xs   |  32 +-
src/pl/plperl/Util.xs  |  44 +---
src/pl/plperl/plperl.c | 236 +++--
src/pl/plperl/plperl.h |  17 ++-
src/pl/plperl/plperl_helpers.h |   6 ++
5 files changed, 205 insertions(+), 130 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: PL/Perl portability fix: avoid including XSUB.h in plperl.c.

2017-07-31 Thread Tom Lane
PL/Perl portability fix: avoid including XSUB.h in plperl.c.

Back-patch of commit bebe174bb4462ef079a1d7eeafb82ff969f160a4,
which see for more info.

Patch by me, with some help from Ashutosh Sharma

Discussion: 
https://postgr.es/m/CANFyU97OVQ3+Mzfmt3MhuUm5NwPU=-FtbNH5Eb7nZL9ua8=r...@mail.gmail.com

Branch
--
REL9_2_STABLE

Details
---
https://git.postgresql.org/pg/commitdiff/b4b958251fbfc45690656d306938a76a46d91145

Modified Files
--
src/pl/plperl/SPI.xs   |  32 +-
src/pl/plperl/Util.xs  |  44 +---
src/pl/plperl/plperl.c | 236 +++--
src/pl/plperl/plperl.h |  17 ++-
src/pl/plperl/plperl_helpers.h |   6 ++
5 files changed, 205 insertions(+), 130 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: PL/Perl portability fix: absorb relevant -D switches from Perl.

2017-07-31 Thread Tom Lane
PL/Perl portability fix: absorb relevant -D switches from Perl.

Back-patch of commit 3c163a7fc76debbbdad1bdd3c43721cffe72f4db,
which see for more info.

Also throw in commit b4cc35fbb709bd6fcae8998f041fd731c9acbf42,
so Coverity doesn't whine about the back branches.

Ashutosh Sharma, some adjustments by me

Discussion: 
https://postgr.es/m/CANFyU97OVQ3+Mzfmt3MhuUm5NwPU=-FtbNH5Eb7nZL9ua8=r...@mail.gmail.com

Branch
--
REL9_2_STABLE

Details
---
https://git.postgresql.org/pg/commitdiff/456c7dff2af1b32ae2d1922ca672cf93ec9edf1d

Modified Files
--
config/perl.m4  | 25 +
configure   | 13 +
configure.in|  1 +
src/Makefile.global.in  |  1 +
src/pl/plperl/GNUmakefile   |  6 +-
src/pl/plperl/plperl.c  | 28 +---
src/tools/msvc/Mkvcbuild.pm | 21 -
7 files changed, 82 insertions(+), 13 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: PL/Perl portability fix: avoid including XSUB.h in plperl.c.

2017-07-31 Thread Tom Lane
PL/Perl portability fix: avoid including XSUB.h in plperl.c.

Back-patch of commit bebe174bb4462ef079a1d7eeafb82ff969f160a4,
which see for more info.

Patch by me, with some help from Ashutosh Sharma

Discussion: 
https://postgr.es/m/CANFyU97OVQ3+Mzfmt3MhuUm5NwPU=-FtbNH5Eb7nZL9ua8=r...@mail.gmail.com

Branch
--
REL9_5_STABLE

Details
---
https://git.postgresql.org/pg/commitdiff/99eea89dbe31fbd78d08a56e53f5bc272bbcd064

Modified Files
--
contrib/hstore_plperl/hstore_plperl.c |   6 +-
src/pl/plperl/SPI.xs  |  32 +
src/pl/plperl/Util.xs |  44 +-
src/pl/plperl/plperl.c| 244 +-
src/pl/plperl/plperl.h|  17 ++-
src/pl/plperl/plperl_helpers.h|   4 +
6 files changed, 210 insertions(+), 137 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: PL/Perl portability fix: absorb relevant -D switches from Perl.

2017-07-31 Thread Tom Lane
PL/Perl portability fix: absorb relevant -D switches from Perl.

Back-patch of commit 3c163a7fc76debbbdad1bdd3c43721cffe72f4db,
which see for more info.

Also throw in commit b4cc35fbb709bd6fcae8998f041fd731c9acbf42,
so Coverity doesn't whine about the back branches.

Ashutosh Sharma, some adjustments by me

Discussion: 
https://postgr.es/m/CANFyU97OVQ3+Mzfmt3MhuUm5NwPU=-FtbNH5Eb7nZL9ua8=r...@mail.gmail.com

Branch
--
REL9_6_STABLE

Details
---
https://git.postgresql.org/pg/commitdiff/1e58c503ec46ec78ddf19aa5bad7d095f14e042b

Modified Files
--
config/perl.m4 | 25 +
configure  | 13 +
configure.in   |  1 +
contrib/hstore_plperl/Makefile |  2 +-
src/Makefile.global.in |  1 +
src/pl/plperl/GNUmakefile  |  6 +-
src/pl/plperl/plperl.c | 28 +---
src/tools/msvc/Mkvcbuild.pm| 27 +--
8 files changed, 88 insertions(+), 15 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: Tighten coding for non-composite case in plperl's return_next.

2017-07-31 Thread Tom Lane
Tighten coding for non-composite case in plperl's return_next.

Coverity complained about this code's practice of using scalar variables
as single-element arrays.  While that's really just nitpicking, it probably
is more readable to declare them as arrays, so let's do that.  A more
important point is that the code was just blithely assuming that the
result tupledesc has exactly one column; if it doesn't, we'd likely get
a crash of some sort in tuplestore_putvalues.  Since the tupledesc is
manufactured outside of plperl, that seems like an uncomfortably long
chain of assumptions.  We can nail it down at little cost with a sanity
check earlier in the function.

Branch
--
master

Details
---
https://git.postgresql.org/pg/commitdiff/b4cc35fbb709bd6fcae8998f041fd731c9acbf42

Modified Files
--
src/pl/plperl/plperl.c | 28 +---
1 file changed, 17 insertions(+), 11 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: Fix function comment for dumpACL()

2017-07-31 Thread Stephen Frost
Fix function comment for dumpACL()

The comment for dumpACL() got neglected when initacls and initracls were
added and the discussion of what 'racls' is wasn't very clear either.

Per complaint from Tom.

Branch
--
master

Details
---
https://git.postgresql.org/pg/commitdiff/d2a51e3efcbab5b288bbadba1a7dfa123a50ba5b

Modified Files
--
src/bin/pg_dump/pg_dump.c | 18 ++
1 file changed, 14 insertions(+), 4 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: Fix function comment for dumpACL()

2017-07-31 Thread Stephen Frost
Fix function comment for dumpACL()

The comment for dumpACL() got neglected when initacls and initracls were
added and the discussion of what 'racls' is wasn't very clear either.

Per complaint from Tom.

Branch
--
REL9_6_STABLE

Details
---
https://git.postgresql.org/pg/commitdiff/d38e706ff149eb0937502cc0be27645e70bbfec6

Modified Files
--
src/bin/pg_dump/pg_dump.c | 18 ++
1 file changed, 14 insertions(+), 4 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers