public inbox for [email protected]help / color / mirror / Atom feed
[PATCH 06/10] Default to LZ4.. 3+ messages / 3 participants [nested] [flat]
* [PATCH 06/10] Default to LZ4.. @ 2021-03-12 21:35 Justin Pryzby <[email protected]> 0 siblings, 0 replies; 3+ messages in thread From: Justin Pryzby @ 2021-03-12 21:35 UTC (permalink / raw) this is meant to exercise in the CIs, and not meant to be merged --- configure | 6 ++++-- configure.ac | 4 ++-- src/backend/access/transam/xlog.c | 2 +- src/backend/utils/misc/guc.c | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/configure b/configure index 9b590eb432..3afa1e87e3 100755 --- a/configure +++ b/configure @@ -1575,7 +1575,7 @@ Optional Packages: --with-system-tzdata=DIR use system time zone data in DIR --without-zlib do not use Zlib - --with-lz4 build with LZ4 support + --without-lz4 build without LZ4 support --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-ssl=LIB use LIB for SSL/TLS support (openssl) --with-openssl obsolete spelling of --with-ssl=openssl @@ -8598,7 +8598,9 @@ $as_echo "#define USE_LZ4 1" >>confdefs.h esac else - with_lz4=no + with_lz4=yes + +$as_echo "#define USE_LZ4 1" >>confdefs.h fi diff --git a/configure.ac b/configure.ac index 2b3b5676eb..d62ea5f742 100644 --- a/configure.ac +++ b/configure.ac @@ -990,8 +990,8 @@ AC_SUBST(with_zlib) # LZ4 # AC_MSG_CHECKING([whether to build with LZ4 support]) -PGAC_ARG_BOOL(with, lz4, no, [build with LZ4 support], - [AC_DEFINE([USE_LZ4], 1, [Define to 1 to build with LZ4 support. (--with-lz4)])]) +PGAC_ARG_BOOL(with, lz4, yes, [build without LZ4 support], + [AC_DEFINE([USE_LZ4], 1, [Define to 1 to build without LZ4 support. (--without-lz4)])]) AC_MSG_RESULT([$with_lz4]) AC_SUBST(with_lz4) diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index f33355e44a..609d954a3a 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -99,7 +99,7 @@ bool EnableHotStandby = false; bool fullPageWrites = true; bool wal_log_hints = false; bool wal_compression = false; -int wal_compression_method = WAL_COMPRESSION_ZLIB; +int wal_compression_method = WAL_COMPRESSION_LZ4; char *wal_consistency_checking_string = NULL; bool *wal_consistency_checking = NULL; bool wal_init_zero = true; diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index c37a8313d3..52f9cd0242 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -4728,7 +4728,7 @@ static struct config_enum ConfigureNamesEnum[] = NULL }, &wal_compression_method, - WAL_COMPRESSION_ZLIB, wal_compression_options, + WAL_COMPRESSION_LZ4, wal_compression_options, NULL, NULL, NULL }, -- 2.17.0 --0qVF/w3MHQqLSynd Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0007-add-wal_compression_method-zstd.patch" ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Postgres Version want to update from 9.2 to 9.5 version in CentOS 7.9 @ 2023-04-28 16:38 Tom Lane <[email protected]> 2023-04-28 18:10 ` Re: Postgres Version want to update from 9.2 to 9.5 version in CentOS 7.9 Gautham Raj <[email protected]> 0 siblings, 1 reply; 3+ messages in thread From: Tom Lane @ 2023-04-28 16:38 UTC (permalink / raw) To: Gautham Raj <[email protected]>; +Cc: [email protected] Gautham Raj <[email protected]> writes: > *Problem: Having multiple versions of Postgres installed in CentOS 7. I > Want to set the 9.5 version as default. Not able to access Postgres 9.5 > through the terminal as well.* > 1. For Command *psql --version* I'm getting 9.5 as the version. > 2. For Command *sudo -u postgres psql *I'm getting 9.2 as the version. You'd need to read up on Red Hat's "SCL" packaging system to understand how to use that rh-postgresql95 package. SCL is since my time there, but I'm pretty sure it's intentional that it's not in the default PATH. But TBH, all the versions available from Red Hat for RHEL7/CentOS7 are out of support as far as the upstream community is concerned; to us it's pretty mystifying why you'd be trying to migrate to an already-years-dead release branch. I'd suggest getting some more modern release from https://www.postgresql.org/download/ regards, tom lane ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Postgres Version want to update from 9.2 to 9.5 version in CentOS 7.9 2023-04-28 16:38 Re: Postgres Version want to update from 9.2 to 9.5 version in CentOS 7.9 Tom Lane <[email protected]> @ 2023-04-28 18:10 ` Gautham Raj <[email protected]> 0 siblings, 0 replies; 3+ messages in thread From: Gautham Raj @ 2023-04-28 18:10 UTC (permalink / raw) To: Tom Lane <[email protected]>; +Cc: [email protected] Thank you for the quick response. Yes, I'm willing to get the latest version. I read some articles CentOS 7 doesn't support the latest versions. So was trying the old versions. I tried the article shared but, got the below error at the step. [image: image.png] Something is wrong here. Please suggest the steps for resolving this issue. Thanks & Regards, Gautham On Fri, Apr 28, 2023 at 10:08 PM Tom Lane <[email protected]> wrote: > Gautham Raj <[email protected]> writes: > > *Problem: Having multiple versions of Postgres installed in CentOS 7. I > > Want to set the 9.5 version as default. Not able to access Postgres 9.5 > > through the terminal as well.* > > > 1. For Command *psql --version* I'm getting 9.5 as the version. > > 2. For Command *sudo -u postgres psql *I'm getting 9.2 as the version. > > You'd need to read up on Red Hat's "SCL" packaging system to understand > how to use that rh-postgresql95 package. SCL is since my time there, > but I'm pretty sure it's intentional that it's not in the default PATH. > > But TBH, all the versions available from Red Hat for RHEL7/CentOS7 are > out of support as far as the upstream community is concerned; to us it's > pretty mystifying why you'd be trying to migrate to an already-years-dead > release branch. I'd suggest getting some more modern release from > https://www.postgresql.org/download/ > > regards, tom lane > Attachments: [image/png] image.png (88.5K, ../../CAHByZMCoUVwPDcV4yJNwLOE-rT_Nd04DxdndC+aFAL9EGAKmNg@mail.gmail.com/3-image.png) download | view image ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2023-04-28 18:10 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2021-03-12 21:35 [PATCH 06/10] Default to LZ4.. Justin Pryzby <[email protected]> 2023-04-28 16:38 Re: Postgres Version want to update from 9.2 to 9.5 version in CentOS 7.9 Tom Lane <[email protected]> 2023-04-28 18:10 ` Re: Postgres Version want to update from 9.2 to 9.5 version in CentOS 7.9 Gautham Raj <[email protected]>
This inbox is served by agora; see mirroring instructions for how to clone and mirror all data and code used for this inbox