From db309d1d2bc11fff7b73589955aa30d28ad05370 Mon Sep 17 00:00:00 2001 From: Anthonin Bonnefoy Date: Fri, 24 Jul 2026 09:39:39 +0200 Subject: Make parse_compress_options available to backend With the new compression support, the backend will need compress options that will be stored in configuration. This patch allows backends to use the existing parse_compress_options function. --- src/common/compression.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/common/compression.c b/src/common/compression.c index e78913ad9dc..fcde4dc27c5 100644 --- a/src/common/compression.c +++ b/src/common/compression.c @@ -456,11 +456,9 @@ validate_compress_specification(pg_compress_specification *spec) return NULL; } -#ifdef FRONTEND - /* - * Basic parsing of a value specified through a command-line option, commonly - * -Z/--compress. + * Basic parsing of a value specified through a command-line option or + * GUC value. * * The parsing consists of a METHOD:DETAIL string fed later to * parse_compress_specification(). This only extracts METHOD and DETAIL. @@ -517,4 +515,3 @@ parse_compress_options(const char *option, char **algorithm, char **detail) *detail = pstrdup(sep + 1); } } -#endif /* FRONTEND */ -- 2.50.1 (Apple Git-155)