psql: Clean up terminology in \dAp command
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 4 Jun 2020 20:09:41 +0000 (22:09 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 4 Jun 2020 20:09:41 +0000 (22:09 +0200)
The preferred terminology has been support "function", not procedure,
for some time, so change that over.  The command stays \dAp, since
\dAf is already something else.

doc/src/sgml/ref/psql-ref.sgml
src/bin/psql/command.c
src/bin/psql/describe.c
src/bin/psql/describe.h
src/bin/psql/help.c
src/test/regress/expected/psql.out

index 07bf272a201636e6fd16fcab0c003e4cb712fbcd..62fee5a7dddd4313b3fd3710b60e90b9feb7fbef 100644 (file)
@@ -1309,7 +1309,7 @@ testdb=&gt;
         </term>
         <listitem>
         <para>
-        Lists procedures associated with operator families
+        Lists functions associated with operator families
         (<xref linkend="catalog-pg-amproc"/>).
         If <replaceable class="parameter">access-method-pattern</replaceable>
         is specified, only members of operator families associated with access
index a5160f91de622bf2b13080661c0724a35c251e10..560eacc7f0c8bd73ed6356bb078b05a1efeb9003 100644 (file)
@@ -747,7 +747,7 @@ exec_command_d(PsqlScanState scan_state, bool active_branch, const char *cmd)
                                                        success = listOpFamilyOperators(pattern, pattern2, show_verbose);
                                                        break;
                                                case 'p':
-                                                       success = listOpFamilyProcedures(pattern, pattern2);
+                                                       success = listOpFamilyFunctions(pattern, pattern2);
                                                        break;
                                                default:
                                                        status = PSQL_CMD_UNKNOWN;
index c7639f620621419b92a2186e932ecd47b9088ac5..cd39b913cda906b845de781f9ab2fe0a42e48e68 100644 (file)
@@ -6310,14 +6310,14 @@ listOpFamilyOperators(const char *access_method_pattern,
 
 /*
  * \dAp
- * Lists procedures of operator families
+ * Lists support functions of operator families
  *
  * Takes an optional regexps to filter by index access method and operator
  * family.
  */
 bool
-listOpFamilyProcedures(const char *access_method_pattern,
-                                          const char *family_pattern)
+listOpFamilyFunctions(const char *access_method_pattern,
+                                         const char *family_pattern)
 {
        PQExpBufferData buf;
        PGresult   *res;
@@ -6344,7 +6344,7 @@ listOpFamilyProcedures(const char *access_method_pattern,
                                          gettext_noop("Left arg type"),
                                          gettext_noop("Right arg type"),
                                          gettext_noop("Number"),
-                                         gettext_noop("Proc name"));
+                                         gettext_noop("Function"));
 
        appendPQExpBuffer(&buf,
                                          "FROM pg_catalog.pg_amproc ap\n"
@@ -6371,7 +6371,7 @@ listOpFamilyProcedures(const char *access_method_pattern,
                return false;
 
        myopt.nullPrint = NULL;
-       myopt.title = _("List of procedures of operator families");
+       myopt.title = _("List of support functions of operator families");
        myopt.translate_header = true;
        myopt.translate_columns = translate_columns;
        myopt.n_translate_columns = lengthof(translate_columns);
index 35c50e3bcd6cd3e00d35fe4c1ada334249cc9961..4297f7fdfdf7ce9ccb07ca8e6aa5ec3d6d101a0b 100644 (file)
@@ -129,8 +129,8 @@ extern bool listOpFamilyOperators(const char *accessMethod_pattern,
                                                                  const char *family_pattern, bool verbose);
 
 /* \dAp */
-extern bool listOpFamilyProcedures(const char *access_method_pattern,
-                                                                  const char *family_pattern);
+extern bool listOpFamilyFunctions(const char *access_method_pattern,
+                                                                 const char *family_pattern);
 
 
 #endif                                                 /* DESCRIBE_H */
index e7509480429edca9d7d4465aa869bc9c25579a55..00992f96a0ad0cb8bbabed2e88e7a56af0f60c58 100644 (file)
@@ -231,7 +231,7 @@ slashUsage(unsigned short int pager)
        fprintf(output, _("  \\dAc[+] [AMPTRN [TYPEPTRN]] list operator classes\n"));
        fprintf(output, _("  \\dAf[+] [AMPTRN [TYPEPTRN]] list operator families\n"));
        fprintf(output, _("  \\dAo[+] [AMPTRN [OPFPTRN]] list operators of operator families\n"));
-       fprintf(output, _("  \\dAp    [AMPTRN [OPFPTRN]] list procedures of operator families\n"));
+       fprintf(output, _("  \\dAp    [AMPTRN [OPFPTRN]] list support functions of operator families\n"));
        fprintf(output, _("  \\db[+]  [PATTERN]      list tablespaces\n"));
        fprintf(output, _("  \\dc[S+] [PATTERN]      list conversions\n"));
        fprintf(output, _("  \\dC[+]  [PATTERN]      list casts\n"));
index ca6b1531cdf86eae3c2d4d154cf71bd3a7236c9f..7d2d6328fc8004c5d87335d91337bab423d3f5e9 100644 (file)
@@ -4988,8 +4988,8 @@ List of access methods
 (3 rows)
 
 \dAp btree float_ops
-                           List of procedures of operator families
-  AM   | Operator family |  Left arg type   |  Right arg type  | Number |      Proc name      
+                        List of support functions of operator families
+  AM   | Operator family |  Left arg type   |  Right arg type  | Number |      Function       
 -------+-----------------+------------------+------------------+--------+---------------------
  btree | float_ops       | double precision | double precision |      1 | btfloat8cmp
  btree | float_ops       | double precision | double precision |      2 | btfloat8sortsupport
@@ -5002,8 +5002,8 @@ List of access methods
 (8 rows)
 
 \dAp * pg_catalog.uuid_ops
-                        List of procedures of operator families
-  AM   | Operator family | Left arg type | Right arg type | Number |     Proc name      
+                     List of support functions of operator families
+  AM   | Operator family | Left arg type | Right arg type | Number |      Function      
 -------+-----------------+---------------+----------------+--------+--------------------
  btree | uuid_ops        | uuid          | uuid           |      1 | uuid_cmp
  btree | uuid_ops        | uuid          | uuid           |      2 | uuid_sortsupport