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 1pkaMr-00042Z-Ep for pgsql-general@arkaria.postgresql.org; Fri, 07 Apr 2023 00:54:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pkaMq-0007EY-CW for pgsql-general@arkaria.postgresql.org; Fri, 07 Apr 2023 00:54:16 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pkaMq-0007EN-2M for pgsql-general@lists.postgresql.org; Fri, 07 Apr 2023 00:54:16 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pkaMn-0006v5-9s for pgsql-general@lists.postgresql.org; Fri, 07 Apr 2023 00:54:15 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 3370sBIA2839492; Thu, 6 Apr 2023 20:54:11 -0400 From: Tom Lane To: Atul Kumar cc: pgsql-general Subject: Re: Backup schema without data In-reply-to: References: Comments: In-reply-to Atul Kumar message dated "Fri, 07 Apr 2023 06:10:30 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2839490.1680828851.1@sss.pgh.pa.us> Date: Thu, 06 Apr 2023 20:54:11 -0400 Message-ID: <2839491.1680828851@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Atul Kumar writes: > Please help me in telling that how I can take the backup of one single > schema without its data using pg_dump utility ? Doesn't "pg_dump -s -n ..." do what you want? regards, tom lane