Re: [HACKERS] dropping partitioned tables without CASCADE - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: [HACKERS] dropping partitioned tables without CASCADE
Date
Msg-id 20170904101827.zvw3gu4yeduhjhmx@alvherre.pgsql
Whole thread Raw
In response to Re: [HACKERS] dropping partitioned tables without CASCADE  (Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>)
Responses Re: [HACKERS] dropping partitioned tables without CASCADE
List pgsql-hackers
if (tuples > 0)            {
-                if (tableinfo.relkind != RELKIND_PARTITIONED_TABLE)
-                    printfPQExpBuffer(&buf, _("Number of child tables: %d (Use \\d+ to list them.)"), tuples);
-                else
-                    printfPQExpBuffer(&buf, _("Number of partitions: %d (Use \\d+ to list them.)"), tuples);
+                printfPQExpBuffer(&buf, _("Number of %s: %d (Use \\d+ to list them.)"), ct, tuples);
printTableAddFooter(&cont,buf.data);            }
 

Please don't do this, because it breaks translatability.  I think the
original is fine.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Etsuro Fujita
Date:
Subject: Re: [HACKERS] Useless code in ExecInitModifyTable
Next
From: Michael Paquier
Date:
Subject: Re: [HACKERS] Proposal: pg_rewind to skip config files