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

From Ashutosh Bapat
Subject Re: [HACKERS] dropping partitioned tables without CASCADE
Date
Msg-id CAFjFpReLrHoPH1G6AwPsnMXkpyFve_iFyD+BDt-o0yKymfF+Bw@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] dropping partitioned tables without CASCADE  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Responses Re: [HACKERS] dropping partitioned tables without CASCADE
List pgsql-hackers
On Mon, Sep 4, 2017 at 3:48 PM, Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:
>
>                         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.
>

We have used this style in the "else" case of if (!verbose). So, I
just copied it. I have removed that change in the attached patch.

-- 
Best Wishes,
Ashutosh Bapat
EnterpriseDB Corporation
The Postgres Database Company

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Attachment

pgsql-hackers by date:

Previous
From: "postgresql_2016@163.com"
Date:
Subject: [HACKERS] 【ECPG】strncpy function does not set the end character '\0'
Next
From: Adrien Nayrat
Date:
Subject: Re: [HACKERS] ALTER INDEX .. SET STATISTICS ... behaviour