Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tWduO-000YES-7A for pgsql-hackers@arkaria.postgresql.org; Sat, 11 Jan 2025 16:00:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tWduN-00AMno-CB for pgsql-hackers@arkaria.postgresql.org; Sat, 11 Jan 2025 16:00:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tWduN-00AMnf-0g for pgsql-hackers@lists.postgresql.org; Sat, 11 Jan 2025 16:00:18 +0000 Received: from mail-ua1-x933.google.com ([2607:f8b0:4864:20::933]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tWduJ-0015sR-2I for pgsql-hackers@postgresql.org; Sat, 11 Jan 2025 16:00:18 +0000 Received: by mail-ua1-x933.google.com with SMTP id a1e0cc1a2514c-85c5d4f3d58so755889241.3 for ; Sat, 11 Jan 2025 08:00:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736611214; x=1737216014; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=NjAOnynXBHiNxoiOHvxcgVpzto12rfDHOY11mXWdmAA=; b=bxOnKkbBQDdEgmCH+UIPgQx3rR3DWQ76LFlPWQffPiyA0Bc1/zb5v96UM7lVBLclqv 9qsjSCKfrtsBKHttX5h/otcMhdJ8HrjpaMgDw1n4swCcMsKp2KHBcgbck73EQGhRJNZh 0EpD1+yZEaZLt2x9kSvEZS5bR+1q2yH+SbapzpEGI/o5NCbmolGsCTDbTE1evHM6CkGZ w+OgZ1bObNqhV2GTYQ3SedzpR4ngLGsjPuumTOJykDuWnxPgjA3ZrF1VkXTR9iMR3BTe DYl5Je53a9qrFOtNPOLwpjJvGZuG91H0ZbmgnYapXVUdIlDA31xT203oPh6JOe9fw7Ex urnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736611214; x=1737216014; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NjAOnynXBHiNxoiOHvxcgVpzto12rfDHOY11mXWdmAA=; b=XCGVEPHp3+Xr++5eOQslnF2zIt9TQRJuNfN79guvsdObU0X7ksADxBcPOcM6I6xiub RYIctrHu9ICyQACsSoUVIc+C562jDFAGnP+elqbzy2TBS7QxsYYnEVVuTmVLuOdOISSu 1fAeZuDILHNvClxBgwwabFqdZAnTOw8c2b9CfrfnnnJoDwqzImZo1PMr9n5+G1atIWGr BHLkMskAGJwALrHS3cX8zBcr3WUvuCkBscQG+EOJKTPqwQEKRf9J5RS2Lprn0vN6W0JW t4S8Ex8uNK25C5dKtgKMtB/J1WRGybYtIShpOAhca1eYLdhpqJm0q38CZZsXQ0ihIHGh nNJQ== X-Forwarded-Encrypted: i=1; AJvYcCUsKHj35tq6rO44aY1+iylbsnPCtYdcp/ZBG2Zr2vlcd/CWoRfFWaHSPZWgR9/UiGMoC2VD5Nm+F4xagUj8@postgresql.org X-Gm-Message-State: AOJu0Yy91b2uwielGkYHFRqNONN0u0GvBNPtYGj4+62dKDOZ/6+/NBvZ cnCFfWWdLWTVjTAcq+ivar+ld+Iqeids1VjReJL4lx2/i+4T3SykhkH7D1eWPQLEq7TWDBY5Tk+ vb7Z585xQj5DFvY4AmEtX0rOfzas= X-Gm-Gg: ASbGncvl5Yew8zi3E32xOZoSZBlwzi9/I6Gq5kffxCqqKzhEiypv6xQLD7ZbpBPDyWG unxWkaTYX25wQjuiiEAB4VUgUYr+kmWHfcf5E X-Google-Smtp-Source: AGHT+IF3UA6EZ2pWJ1GUBayR7cl1ctlwproHRoMeHTQpMCouTNAHnpKgaHDs/hCxIKuzDCsWOac9usrtqW95oQY/fJk= X-Received: by 2002:a05:6102:508a:b0:4b6:1ce1:3080 with SMTP id ada2fe7eead31-4b61ce13307mr10029106137.0.1736611214339; Sat, 11 Jan 2025 08:00:14 -0800 (PST) MIME-Version: 1.0 References: <202501110844.5ztsym4vbflm@alvherre.pgsql> In-Reply-To: From: jian he Date: Sat, 11 Jan 2025 23:59:37 +0800 X-Gm-Features: AbW1kvaoTdFvayP-LV3ugftOc9hjiq9tj5FcY3NOB6772sNMU9r_2fr-S35U8IA Message-ID: Subject: Re: Non-text mode for pg_dumpall To: Mahendra Singh Thalor Cc: Alvaro Herrera , Guillaume Lelarge , Nathan Bossart , Magnus Hagander , Tom Lane , Andrew Dunstan , PostgreSQL-development , Dilip Kumar Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk hi. the following two tests, you can add to src/bin/pg_dump/t/001_basic.pl command_fails_like( [ 'pg_restore', '--globals-only', '-f', 'xxx' ], qr/\Qpg_restore: error: option -g\/--globals-only requires option -d\/--dbname\E/, 'pg_restore: error: option -g/--globals-only requires option -d/--dbname' ); command_fails_like( [ 'pg_restore', '--globals-only', '--file=xxx', '--exclude-database=x',], qr/\Qpg_restore: error: option --exclude-database cannot be used together with -g\/--globals-only\E/, 'pg_restore: error: option --exclude-database cannot be used together with -g/--globals-only' ); in pg_restore.sgml. the position should right after should pg_restore --globals-only pg_restore --exclude-database=pattern be in a separate patch? i am also wondering what will happen: pg_restore --exclude-database=pattern --dbname=pattern