BUG #17148: About --no-strict-names option and --quiet option of pg_amcheck command

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: chenjq(dot)jy(at)fujitsu(dot)com
Subject: BUG #17148: About --no-strict-names option and --quiet option of pg_amcheck command
Date: 2021-08-17 04:34:28
Message-ID: 17148-b5087318e2b04fc6@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 17148
Logged by: Chen Jiaoqian
Email address: chenjq(dot)jy(at)fujitsu(dot)com
PostgreSQL version: 14beta3
Operating system: Red Hat Enterprise Linux Server release 7.8
Description:

Hi, Author

In PG14 beta3, when I use pg_amcheck command, both --no-strict-names
option and --quiet option are specified, the warning message of --database
option is not suppressed.
The official website is described as follows:
> --no-strict-names
> By default, if an argument to --database, --table, --index, or
--relation matches no objects, it is a fatal error.
> This option downgrades that error to a warning. If this option is
used with --quiet, the warning will be suppressed as well.

When I specify a non-existent database name for the --database option,
and specify the --no-strict-names option and the --quiet option,
pg_amcheck command should not return any message, but it still returns
the warning message.

My steps are as follows:
1)Install the amcheck plguin in the PG source package
../contrib/amcheck directory;
2)In the postgres database, execute SQL "create extension
amcheck;"
3)On the OS command line, execute pg_amcheck command, specify
--no-strict-names option and --quiet option, and specify a non-existent
database name for the --database option

The result are as follows:
[postgres14(at)localhost ~]$ pg_amcheck -p 51403 -d postgres -d db01
--no-strict-names --quiet
pg_amcheck: warning: no connectable databases to check matching
"db01"
[postgres14(at)localhost ~]$

Regards.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2021-08-17 04:36:44 BUG #17149: About --skip option of pg_amcheck command
Previous Message Tom Lane 2021-08-16 19:36:59 ALTER TYPE vs extension membership (was Re: BUG #17144: Upgrade from v13 to v14 with the cube extension failed)