Skip to content

Commit 53828a0

Browse files
authored
Merge pull request IvorySQL#707 from jiaoshuntian/merge_pg_master3
Merge pg master to 2024.3.31
2 parents 58289ac + 2775ce3 commit 53828a0

1,279 files changed

Lines changed: 62697 additions & 16142 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cirrus.tasks.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,9 @@ task:
126126
name: FreeBSD - 13 - Meson
127127

128128
env:
129-
# FreeBSD on GCP is slow when running with larger number of CPUS /
130-
# jobs. Using one more job than cpus seems to work best.
131-
CPUS: 2
132-
BUILD_JOBS: 3
133-
TEST_JOBS: 3
129+
CPUS: 4
130+
BUILD_JOBS: 4
131+
TEST_JOBS: 8
134132
IMAGE_FAMILY: pg-ci-freebsd-13
135133
DISK_SIZE: 50
136134

@@ -473,8 +471,11 @@ task:
473471
openssl \
474472
p5.34-io-tty \
475473
p5.34-ipc-run \
474+
python312 \
476475
tcl \
477476
zstd
477+
# system python doesn't provide headers
478+
sudo /opt/local/bin/port select python3 python312
478479
# Make macports install visible for subsequent steps
479480
echo PATH=/opt/local/sbin/:/opt/local/bin/:$PATH >> $CIRRUS_ENV
480481
upload_caches: macports

.git-blame-ignore-revs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,21 @@
1414
#
1515
# $ git log --pretty=format:"%H # %cd%n# %s" $PGINDENTGITHASH -1 --date=iso
1616

17+
64e401b62b1559d617db5c1e1070d7a05e794c27 # 2024-03-25 14:18:33 +0100
18+
# Fix indentation from a11f330b5
19+
20+
0984a3b851abe89bec6c3eff51b03038808e1997 # 2024-03-05 11:16:23 -0800
21+
# Run pgindent again on the same file.
22+
23+
b406af1806e9fc5c090e58282c7d98f22a4b397f # 2024-03-05 10:58:24 -0800
24+
# Run pgindent for commit ef4cfdce0e.
25+
26+
dd7ea37c435e10f9c5aa3fb257a05c08814a4ad2 # 2024-03-04 14:37:35 -0500
27+
# Fix pgindent damage.
28+
29+
3d47b75546d1ef70145f58e162a96f7e0c649389 # 2024-02-22 08:00:58 +0100
30+
# pgindent fix
31+
1732
49e7c6f78ed608c5d5454080ae19c0e7f1b09a04 # 2024-02-09 11:05:01 +0900
1833
# Fix indentation of copyto.c
1934

GNUmakefile.in

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -111,29 +111,25 @@ update-unicode: | submake-generated-headers submake-libpgport
111111
distdir = postgresql-$(VERSION)
112112
dummy = =install=
113113

114-
dist: $(distdir).tar.gz $(distdir).tar.bz2
115-
rm -rf $(distdir)
114+
GIT = git
116115

117-
$(distdir).tar: distdir
118-
$(TAR) chf $@ $(distdir)
116+
dist: $(distdir).tar.gz $(distdir).tar.bz2
119117

120-
.INTERMEDIATE: $(distdir).tar
118+
.PHONY: $(distdir).tar.gz $(distdir).tar.bz2
121119

122120
distdir-location:
123121
@echo $(distdir)
124122

125-
distdir:
126-
rm -rf $(distdir)* $(dummy)
127-
for x in `cd $(top_srcdir) && find . \( -name CVS -prune \) -o \( -name .git -prune \) -o -print`; do \
128-
file=`expr X$$x : 'X\./\(.*\)'`; \
129-
if test -d "$(top_srcdir)/$$file" ; then \
130-
mkdir "$(distdir)/$$file" && chmod 777 "$(distdir)/$$file"; \
131-
else \
132-
ln "$(top_srcdir)/$$file" "$(distdir)/$$file" >/dev/null 2>&1 \
133-
|| cp "$(top_srcdir)/$$file" "$(distdir)/$$file"; \
134-
fi || exit; \
135-
done
136-
$(MAKE) -C $(distdir) distclean
123+
# Note: core.autocrlf=false is needed to avoid line-ending conversion
124+
# in case the environment has a different setting. Without this, a
125+
# tarball created on Windows might be different than on, and unusable
126+
# on, Unix machines.
127+
128+
$(distdir).tar.gz:
129+
$(GIT) -C $(srcdir) -c core.autocrlf=false archive --format tar.gz -9 --prefix $(distdir)/ HEAD -o $(abs_top_builddir)/$@
130+
131+
$(distdir).tar.bz2:
132+
$(GIT) -C $(srcdir) -c core.autocrlf=false -c tar.tar.bz2.command='$(BZIP2) -c' archive --format tar.bz2 --prefix $(distdir)/ HEAD -o $(abs_top_builddir)/$@
137133

138134
distcheck: dist
139135
rm -rf $(dummy)
@@ -157,9 +153,9 @@ headerscheck: submake-generated-headers
157153
$(top_srcdir)/src/tools/pginclude/headerscheck $(top_srcdir) $(abs_top_builddir)
158154

159155
cpluspluscheck: submake-generated-headers
160-
$(top_srcdir)/src/tools/pginclude/cpluspluscheck $(top_srcdir) $(abs_top_builddir)
156+
$(top_srcdir)/src/tools/pginclude/headerscheck --cplusplus $(top_srcdir) $(abs_top_builddir)
161157

162158
#.PHONY: dist distdir distcheck docs install-docs world check-world install-world installcheck-world headerscheck cpluspluscheck
163159

164-
.PHONY: dist distdir distcheck docs install-docs world check-world install-world installcheck-world headerscheck cpluspluscheck oracle-pg-check-world oracle-check-world oracle-installcheck-world all-check all-check-world all-installcheck-world
160+
.PHONY: dist distcheck docs install-docs world check-world install-world installcheck-world headerscheck cpluspluscheck oracle-pg-check-world oracle-check-world oracle-installcheck-world all-check all-check-world all-installcheck-world
165161

PG_README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ and functions. This distribution also contains C language bindings.
1111

1212
Copyright and license information can be found in the file COPYRIGHT.
1313

14-
General documentation about this version of PostgreSQL can be found at:
15-
<https://www.postgresql.org/docs/devel/>
16-
In particular, information about building PostgreSQL from the source
17-
code can be found at:
18-
<https://www.postgresql.org/docs/devel/installation.html>
14+
General documentation about this version of PostgreSQL can be found at
15+
<https://www.postgresql.org/docs/devel/>. In particular, information
16+
about building PostgreSQL from the source code can be found at
17+
<https://www.postgresql.org/docs/devel/installation.html>.
1918

2019
The latest version of this software, and related software, may be
2120
obtained at <https://www.postgresql.org/download/>. For more information

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15378,7 +15378,7 @@ fi
1537815378
LIBS_including_readline="$LIBS"
1537915379
LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
1538015380

15381-
for ac_func in backtrace_symbols copyfile getifaddrs getpeerucred inet_pton kqueue mbstowcs_l memset_s posix_fallocate ppoll pthread_is_threaded_np setproctitle setproctitle_fast strchrnul strsignal syncfs sync_file_range uselocale wcstombs_l
15381+
for ac_func in backtrace_symbols copyfile copy_file_range getifaddrs getpeerucred inet_pton kqueue mbstowcs_l memset_s posix_fallocate ppoll pthread_is_threaded_np setproctitle setproctitle_fast strchrnul strsignal syncfs sync_file_range uselocale wcstombs_l
1538215382
do :
1538315383
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
1538415384
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1822,6 +1822,7 @@ LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
18221822
AC_CHECK_FUNCS(m4_normalize([
18231823
backtrace_symbols
18241824
copyfile
1825+
copy_file_range
18251826
getifaddrs
18261827
getpeerucred
18271828
inet_pton

contrib/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ top_builddir = ..
55
include $(top_builddir)/src/Makefile.global
66

77
SUBDIRS = \
8-
adminpack \
98
amcheck \
109
auth_delay \
1110
auto_explain \

contrib/adminpack/Makefile

Lines changed: 0 additions & 25 deletions
This file was deleted.

contrib/adminpack/adminpack--1.0--1.1.sql

Lines changed: 0 additions & 6 deletions
This file was deleted.

contrib/adminpack/adminpack--1.0.sql

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)