why -Fdance archive format option works with ./pg_restore but not with ./pg_dump?

Srinath Reddy Sadipiralla <srinath2133@gmail.com>

From: Srinath Reddy <srinath2133@gmail.com>
To: pgsql-hackers@lists.postgresql.org
Date: 2025-01-23T08:18:56Z
Lists: pgsql-hackers
Hi,

in pg_restore archive format option is parsed using only the first
character of the value but in pg_dump the archive format option's value is
compared with whole string using pg_strcasecmp is there any specific reason?

Regards,
Srinath Reddy Sadipiralla
EnterpriseDB: http://www.enterprisedb.com

Commits

  1. Tighten pg_restore's recognition of its -F (format) option values.