From 7b3d0b305687f65b805ce354261625e9b16113df Mon Sep 17 00:00:00 2001 From: z00848344 Date: Wed, 8 Nov 2023 17:28:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dpg=5Fxlogdump=E9=80=82?= =?UTF-8?q?=E9=85=8D=E8=B5=84=E6=BA=90=E6=B1=A0=E5=8C=96=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E4=B8=8D=E6=8C=87=E5=AE=9A-p=E7=94=A8=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contrib/pg_xlogdump/pg_xlogdump.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/contrib/pg_xlogdump/pg_xlogdump.cpp b/contrib/pg_xlogdump/pg_xlogdump.cpp index cedb2a062..ee9c623e4 100644 --- a/contrib/pg_xlogdump/pg_xlogdump.cpp +++ b/contrib/pg_xlogdump/pg_xlogdump.cpp @@ -1003,8 +1003,14 @@ int main(int argc, char** argv) } } - if (!dumpprivate.enable_dss && dumpprivate.inpath != NULL && dumpprivate.inpath[0] == '+') { - dumpprivate.enable_dss = true; + if (!dumpprivate.enable_dss) { + if (dumpprivate.inpath != NULL && dumpprivate.inpath[0] == '+') { + dumpprivate.enable_dss = true; + } else { + if (dumpprivate.inpath == NULL && argv[optind] != NULL and argv[optind][0] == '+') { + dumpprivate.enable_dss = true; + } + } } if (dumpprivate.enable_dss && dumpprivate.socketpath == NULL) {