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 1syRkY-00Grjw-2H for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Oct 2024 08:08:50 +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 1syRkW-00FLs1-OL for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Oct 2024 08:08:48 +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.94.2) (envelope-from ) id 1syRkW-00FLrp-Ef for pgsql-hackers@lists.postgresql.org; Wed, 09 Oct 2024 08:08:48 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1syRkT-003HHr-IW for pgsql-hackers@lists.postgresql.org; Wed, 09 Oct 2024 08:08:47 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 5C2DBADE74 for ; Wed, 09 Oct 2024 10:08:42 +0200 (CEST) Received: from s980.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id 4E2E7ADA8B for ; Wed, 09 Oct 2024 10:08:42 +0200 (CEST) Received: from s898.loopia.se (unknown [172.22.191.6]) by s980.loopia.se (Postfix) with ESMTP id 4CF682201667 for ; Wed, 09 Oct 2024 10:08:42 +0200 (CEST) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1.2 X-Spam-Level: X-Spam-Status: No, score=-1.2 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1] autolearn=disabled Authentication-Results: s898.loopia.se (amavisd-new); dkim=pass (2048-bit key) header.d=yesql.se Received: from s934.loopia.se ([172.22.191.5]) by s898.loopia.se (s898.loopia.se [172.22.190.17]) (amavisd-new, port 10024) with UTF8LMTP id XQcnbxCnZCro for ; Wed, 9 Oct 2024 10:08:41 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.193 Received: from smtpclient.apple (customer-89-255-232-193.stosn.net [89.255.232.193]) (Authenticated sender: daniel@yesql.se) by s934.loopia.se (Postfix) with ESMTPSA id CB4FB7CEA81 for ; Wed, 09 Oct 2024 10:08:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yesql.se; s=loopiadkim1707475645; t=1728461321; bh=Jrwhi3Lh8g8VgDjfNfjGCmvuR/thAPombhBpHhMLB0s=; h=From:Subject:Date:To; b=nUZw3ERwdlW2LCO0wdtAAUh97INXiW+AYCCyvWo11ybqCEctMv1VPbxZlNj2/jX5C D0GD+YdOWFHwc/VolbiGe5VVKVi0uOcnSxnfYY8zlk6Y0gIIFsNC2P71bVzztXAjN+ FRHjZhgXXApgCLTpVB2QCRbgoh3c2yhKKgT1ZSF1g9lAHw/fLm4o0VK/NoD9f1sBs8 AxV7DRfLZiR61vDoJtU+qlGTUVQ8/QE+wjq3DBd7lqmZi/WLJp4gfdFge7NGfixhcR 0g/EMUSquFVQQO9WR89ImTNjuv3vc87iK21gv1847aNjUtxjlM/VSpNrKWtotFHs0J y3kC75Rg5vkcw== From: Daniel Gustafsson Content-Type: multipart/mixed; boundary="Apple-Mail=_C1818D6E-1796-4EE9-8D92-B1BF15007256" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Remove deprecated -H option from oid2name Message-Id: Date: Wed, 9 Oct 2024 10:08:31 +0200 To: PostgreSQL Hackers X-Mailer: Apple Mail (2.3774.600.62) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail=_C1818D6E-1796-4EE9-8D92-B1BF15007256 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii The -H option to oid2name was deprecated in v12, and with v12 going out = of support it seems about time to remove it for v18. Not the most = groundbreaking cleanup, but also no point in carrying it around for 5 more years. -- Daniel Gustafsson --Apple-Mail=_C1818D6E-1796-4EE9-8D92-B1BF15007256 Content-Disposition: attachment; filename=v1-0001-Remove-depracated-H-option-for-host.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="v1-0001-Remove-depracated-H-option-for-host.patch" Content-Transfer-Encoding: quoted-printable =46rom=20f921d08151577b520a3ed09710675fe8dcc22039=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20Daniel=20Gustafsson=20= =0ADate:=20Wed,=209=20Oct=202024=2010:01:13=20= +0200=0ASubject:=20[PATCH=20v1]=20Remove=20depracated=20-H=20option=20= for=20host=0A=0AThe=20-H=20option=20for=20specifying=20the=20host=20has=20= been=20deprecated=20since=20v12=0Aso=20it's=20about=20time=20to=20remove=20= it=20now.=0A---=0A=20contrib/oid2name/oid2name.c=20|=203=20---=0A=20= doc/src/sgml/oid2name.sgml=20=20|=207=20-------=0A=202=20files=20= changed,=2010=20deletions(-)=0A=0Adiff=20--git=20= a/contrib/oid2name/oid2name.c=20b/contrib/oid2name/oid2name.c=0Aindex=20= 5180290713..62d3bd17ec=20100644=0A---=20a/contrib/oid2name/oid2name.c=0A= +++=20b/contrib/oid2name/oid2name.c=0A@@=20-65,7=20+65,6=20@@=20= get_opts(int=20argc,=20char=20**argv,=20struct=20options=20*my_opts)=0A=20= =09static=20const=20struct=20option=20long_options[]=20=3D=20{=0A=20=09=09= {"dbname",=20required_argument,=20NULL,=20'd'},=0A=20=09=09{"host",=20= required_argument,=20NULL,=20'h'},=0A-=09=09{"host",=20= required_argument,=20NULL,=20'H'},=20/*=20deprecated=20*/=0A=20=09=09= {"filenode",=20required_argument,=20NULL,=20'f'},=0A=20=09=09{"indexes",=20= no_argument,=20NULL,=20'i'},=0A=20=09=09{"oid",=20required_argument,=20= NULL,=20'o'},=0A@@=20-131,7=20+130,6=20@@=20get_opts(int=20argc,=20char=20= **argv,=20struct=20options=20*my_opts)=0A=20=09=09=09=09break;=0A=20=0A=20= =09=09=09=09/*=20host=20to=20connect=20to=20*/=0A-=09=09=09case=20'H':=09= =09=09/*=20deprecated=20*/=0A=20=09=09=09case=20'h':=0A=20=09=09=09=09= my_opts->hostname=20=3D=20pg_strdup(optarg);=0A=20=09=09=09=09break;=0A= @@=20-217,7=20+215,6=20@@=20help(const=20char=20*progname)=0A=20=09=09=20= =20=20"\nConnection=20options:\n"=0A=20=09=09=20=20=20"=20=20-d,=20= --dbname=3DDBNAME=20=20=20=20=20=20=20=20database=20to=20connect=20to\n"=0A= =20=09=09=20=20=20"=20=20-h,=20--host=3DHOSTNAME=20=20=20=20=20=20=20=20= database=20server=20host=20or=20socket=20directory\n"=0A-=09=09=20=20=20= "=20=20-H=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20(same=20as=20-h,=20deprecated)\n"=0A=20=09=09=20=20=20"=20=20= -p,=20--port=3DPORT=20=20=20=20=20=20=20=20=20=20=20=20database=20server=20= port=20number\n"=0A=20=09=09=20=20=20"=20=20-U,=20--username=3DUSERNAME=20= =20=20=20connect=20as=20specified=20database=20user\n"=0A=20=09=09=20=20=20= "\nThe=20default=20action=20is=20to=20show=20all=20database=20OIDs.\n\n"=0A= diff=20--git=20a/doc/src/sgml/oid2name.sgml=20= b/doc/src/sgml/oid2name.sgml=0Aindex=2054cc9be2b8..2600070942=20100644=0A= ---=20a/doc/src/sgml/oid2name.sgml=0A+++=20b/doc/src/sgml/oid2name.sgml=0A= @@=20-152,13=20+152,6=20@@=0A=20=20=20=20=20=20database=20= server's=20host.=0A=20=20=20=20=20=0A=20= =0A-=20=20=20=20=0A-=20=20=20=20=20=0A= -=20=20=20=20=20database=20server's=20host.=20=20Use=20= of=20this=20parameter=20is=0A-=20=20=20=20=20= deprecated=20as=20of=0A-=20=20=20=20=20= PostgreSQL=2012.=0A-=20=20=20= =20=0A-=0A=20=20=20=20=20=0A=20=20=20=20=20=20= =0A=20=20=20=20=20=20= =0A--=20=0A2.39.3=20= (Apple=20Git-146)=0A=0A= --Apple-Mail=_C1818D6E-1796-4EE9-8D92-B1BF15007256--