pgsql: Remove another test that doesn't work on Windows.

2020-11-13 Thread Heikki Linnakangas
Remove another test that doesn't work on Windows.

Apparently double-quotes are not allowed in filenames on Windows, either.

Per buildfarm.

Branch
--
master

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

Modified Files
--
src/bin/pg_rewind/t/003_extrafiles.pl | 10 +++---
1 file changed, 3 insertions(+), 7 deletions(-)



pgsql: Support negative indexes in split_part().

2020-11-13 Thread Tom Lane
Support negative indexes in split_part().

This provides a handy way to get, say, the last field of the string.
Use of a negative index in this way has precedent in the nearby
left() and right() functions.

The implementation scans the string twice when N < -1, but it seems
likely that N = -1 will be the huge majority of actual use cases,
so I'm not really excited about adding complexity to avoid that.

Nikhil Benesch, reviewed by Jacob Champion; cosmetic tweakage by me

Discussion: https://postgr.es/m/[email protected]

Branch
--
master

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

Modified Files
--
doc/src/sgml/func.sgml|  8 +++-
src/backend/utils/adt/varlena.c   | 83 ---
src/test/regress/expected/strings.out | 74 ++-
src/test/regress/sql/strings.sql  | 24 ++
4 files changed, 172 insertions(+), 17 deletions(-)



pgsql: Fix some typos

2020-11-13 Thread Michael Paquier
Fix some typos

Author: Daniel Gustafsson
Discussion: https://postgr.es/m/[email protected]

Branch
--
master

Details
---
https://git.postgresql.org/pg/commitdiff/788dd0b839fc9f2c85caf86014105afdb60ed5e3

Modified Files
--
contrib/amcheck/verify_heapam.c   | 2 +-
contrib/sepgsql/selinux.c | 2 +-
src/backend/catalog/objectaddress.c   | 2 +-
src/backend/catalog/pg_type.c | 2 +-
src/backend/storage/ipc/procarray.c   | 2 +-
src/backend/utils/mb/Unicode/UCS_to_EUC_JP.pl | 2 +-
src/include/access/gist.h | 2 +-
src/include/replication/logicalproto.h| 4 ++--
8 files changed, 9 insertions(+), 9 deletions(-)