Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n53HM-0002lF-Tg for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Jan 2022 10:12:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n53Gp-0000Oo-G3 for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Jan 2022 10:11:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n53Go-0000Oe-Se for pgsql-hackers@lists.postgresql.org; Wed, 05 Jan 2022 10:11:51 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n53Gk-0007mi-5o for pgsql-hackers@postgresql.org; Wed, 05 Jan 2022 10:11:49 +0000 Received: by mail-wr1-x434.google.com with SMTP id r17so81868655wrc.3 for ; Wed, 05 Jan 2022 02:11:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=PHgf6nVUO4tZUclPXYMYfy9ik/CmLRtbynSBLRmtcgY=; b=knwIVgIDTqjkGvZL/PifLQbMfueKJ/Igh/wujMIO0hMFuc1EySb9OWu+0sUFcr7YzY 2yZiHUMxJxmIiqnHI3b5/gPYU1DKhcHxYtPXs+R76RppHUCCp1M4j7ZRNkaea0sPGohI D+jF7NwEwocaf2+PQQ2+5XXZBdX2GAXtDcwujvHsGOORwjDu/cgyDkMrv6ZfZTNkSEaV RqBksdT2Hfs4/717x25Xx/yUrEaeTXBlkohIhNHhhZwRrjdYM5igSyCdYjp5HDkJYu/b rFFA8V3Zj3nv+N+W46YY+2sO3l7ZDVLR3y0+qhuTjsiM135iO/O3k4WN/uWEXBGbbRP+ 0hUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=PHgf6nVUO4tZUclPXYMYfy9ik/CmLRtbynSBLRmtcgY=; b=SkMFop7mabRAMVnWKnIaEdxPHt7FfKUVfuffxCYhNxhT66p6rkeUFJuXH6BbpBnVed ZTVzJNQhe8Co9sdzhL08kXR09HVSCRqNqGcXyetl7VywN/9293B7jQAhTZ/MLWi2QzxU qmLmPKautzMI2n1kIgx9QYV32pOuYm1ncTOsjZ8WEduDyjq4msA57tL4DXDvPjJJQ0s3 mr5Mjm+5cIBUejulNP3I31cVsohwC9RJldRSWTVpmGD7yL8OtAVSP6vfXFPQyIgtypc0 l+DU2PV91O6L+ltQJlp0kTG4PisRxYeNz4WAbCy+K2gFxaQBscBJ5U32dDaUzTlUUV83 l75g== X-Gm-Message-State: AOAM533hpBh4yQN4i/ABllhcatBZ8PgjwHnKq6AVhR1EE/Dw+VGaAQHi 5sLOFJTEhCxjAKFzkMwrQQEASCD68KglXwqJZr7y48UuvDXbPOmRTwIrPkFfWe+qCSXqRU6U1Mg t5x8rtSriRWLlI4Ixnw1SlW3BW/o3wJuWLL44DM5aiwibFX/bLpoBeX81Xh8cXFRntMoBLUQXs0 P0i5gHFQOdvRwQ0IR5nKfrsNdX/d23/EqLwXx+nakgW+bK/lyPt88s887x1P8wTBeP7oqMvzwLH BCzACkuh5pIgV1eQkr4GJImPq9SvpymEw2Q8w== X-Google-Smtp-Source: ABdhPJxQt8mlCnxL/t0XzctbafON3otBUXMsYZYxjzP2W1adR1tVbZWUDv7A1Eo1SK/vLAe8Z2YLHA== X-Received: by 2002:a5d:404a:: with SMTP id w10mr47219334wrp.573.1641377504362; Wed, 05 Jan 2022 02:11:44 -0800 (PST) Received: from localhost.localdomain ([45.113.251.168]) by smtp.gmail.com with ESMTPSA id b7sm767964wro.68.2022.01.05.02.11.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 05 Jan 2022 02:11:43 -0800 (PST) Subject: Re: refactoring basebackup.c To: Robert Haas Cc: Jeevan Ladhe , Dmitry Dolgov <9erthalion6@gmail.com>, Mark Dilger , "pgsql-hackers@postgresql.org" References: <20211115162641.dmo6l32fklh64gnw@localhost> <38e18142-9fd7-0d05-501c-451081060407@enterprisedb.com> From: tushar Message-ID: Date: Wed, 5 Jan 2022 15:41:38 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 1/4/22 8:07 PM, Robert Haas wrote: > Before sending an email like this, it would be a good idea to read the > documentation for the --server-compression option. Sure, Thanks Robert. One scenario where I feel error message is confusing and if it is not supported at all then error message need to be a little bit more clear if we use -z  (or -Z ) with -t , we are getting this error [edb@centos7tushar bin]$  ./pg_basebackup -t server:/tmp/test0 -Xfetch -z pg_basebackup: error: only tar mode backups can be compressed Try "pg_basebackup --help" for more information. but after removing -z option  backup is in tar mode only edb@centos7tushar bin]$  ./pg_basebackup -t server:/tmp/test0 -Xfetch [edb@centos7tushar bin]$ ls /tmp/test0 backup_manifest  base.tar -- regards,tushar EnterpriseDB https://www.enterprisedb.com/ The Enterprise PostgreSQL Company