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.96) (envelope-from ) id 1w2XYK-000Nlf-09 for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Mar 2026 16:45:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w2XYF-003FzB-0y for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Mar 2026 16:45:51 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w2XYF-003Fz2-02 for pgsql-hackers@lists.postgresql.org; Tue, 17 Mar 2026 16:45:51 +0000 Received: from mail-oo1-xc35.google.com ([2607:f8b0:4864:20::c35]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w2XY7-00000000DPe-1BCW for pgsql-hackers@lists.postgresql.org; Tue, 17 Mar 2026 16:45:50 +0000 Received: by mail-oo1-xc35.google.com with SMTP id 006d021491bc7-67ba5b0e00dso1699491eaf.2 for ; Tue, 17 Mar 2026 09:45:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773765944; x=1774370744; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ix1Mq18gDk71ED1xPcjMwp/xxInjt/QBR8mj01PIgZc=; b=I4O7dh+DVXxYP25teXytv36U3Pp/xd1K/Fqw5viD6oHsMsLFwVkEEj1Rrvnri5/yCm BSwJsRFqUF5GGkLc0E+UiU9+VuqHlRrz8JJF120lQSiRWEyPVuAHcEbeYATeC3k5kxJo ZWdoGOJj0hxXWXEK3PbZBDISEx4Ro06ad3AeoI29PpQrNaJct04jdRQfrD7IX9XSD2lC Q/YviFki0WDjCCidp1sfamkJvOkTRqNr2ffzWu5kc2wBxvHWtbfnoE8XyGPLPQ5tj+BT IegQlds1q1ZKqqCE18KL3tUcDLDSvgJaVuIX/BiIRb9wMMaup3pm/qXLBa0X2lAozMdC rHuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773765944; x=1774370744; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ix1Mq18gDk71ED1xPcjMwp/xxInjt/QBR8mj01PIgZc=; b=e7VX+GQP4/27UZNXm8S3WQUgSxyH/Fn4GYu8T3fkd7vVc+21RdN2OV/lwOkOM3Gb/Q 7oup8mu8lFmsPPdn1MRltgz/+GtaXJ/N10PS8lkwehnNMbjUKup7hTvrwiLHHThYZvxl 8mLf7+qdg+2k/WosaNUIsjlUDCoCjnZkiJ6hYA8YGiyzxEP8QwA7Q1x58Jh3766K2T/k 5Vkd+u1YU3KoNZnY91r7wNupJLjc8+kvVZscNGm3IV46P98W1VI2PUmFClbpxX5THYIG kVrhdIqAQLo3tsPyM9m6IN8ue1Za4+cZYvS3pesGdy1KlfvYO9wotSQ3VatEnZAMEWI+ 6t4g== X-Forwarded-Encrypted: i=1; AJvYcCUPjw8ZjqlQCNUBscfg+woQ+eBR8DtZJe6+0mY62+yqKK/7w+c8O/X01WgdpJJJKyCCGLq6z9JG4a99Vovw@lists.postgresql.org X-Gm-Message-State: AOJu0YzyXFS4uMTvT0IcfUsRP9TTT0io3R+9amgpDDmnuVZIgvm3q7LW 02sdT+eEGkB6pyCmn8jNbdb+5fcxjaJjhkPok3XEHvx4mwxBwpX1hiMJ X-Gm-Gg: ATEYQzzo8hcEJ7Y0w0eOVibmJQcjLL0SnysUvEUTSm21fyhZatNsYbkCYWcmA6waGUC lizHfqedTJqDlHnqLiah5mLQuaPNzJXSjoBvD+ykH20KBmkUitpZLgWE40MjM41Cay/BTqio/n4 2eC6TaI3+ubH8TH/44GFvnjPaPNKSuwEedtRVMxuZTKrYRfqk+AyzK06aJx0MCkxxOCiqhsWcNU W/nj9X9rzKUk0ivCG7TEA5Ng1H6B9d3kGrlEzoXilGtrlEvXWwYDLtPce8XgYNjeGnU3uu9U3wI cMk2kjK/PxEHSmKdnAoy/h88tqDwZT1ApQPbYkLaWIcddF4P0ucD3snSEUyIg6a60B+CsKE0c4+ CmIywkfLG2np0Hv9qy4JWuA5cFLXtyqswUuGn8npHLid4qbWIIQNYkLOlVB5pBDYfkPs86lFHRS tTUZfZn96j1ON5EzfWMavFhszkv/F6DeG+piwyZ0b5EzKLotPOKshqh9SdFQ71qkKg6kXhkuX4s rvgRgZP2Sscp/boCW8FIg== X-Received: by 2002:a05:6820:61f:b0:67b:b47f:6d7e with SMTP id 006d021491bc7-67bdaa62c5fmr10961152eaf.57.1773765944152; Tue, 17 Mar 2026 09:45:44 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-41bd2d4cc69sm136235fac.18.2026.03.17.09.45.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Mar 2026 09:45:43 -0700 (PDT) Date: Tue, 17 Mar 2026 11:45:41 -0500 From: Nathan Bossart To: Mahendra Singh Thalor Cc: Andrew Dunstan , PostgreSQL Hackers Subject: Re: pg_restore --format= option(without any value) should report an error as pg_dump is reporting an error Message-ID: References: <1d66a1e5-ce44-448b-8407-31d5ed9bc10d@dunslane.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Mar 17, 2026 at 02:51:56PM +0530, Mahendra Singh Thalor wrote: > I did some more testing and found that if there is an empty string with > --port/--host, then we don't report any error because we don't validate > empty strings. This looks weird to me but this is happening with all tools > so I was not adding any test case for --host and --port. Oh, weird. Unless new feedback materializes, I'll proceed with committing your patch within the next day or so. -- nathan