Re: error message when subscription target is a partitioned table

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Tatsuo Ishii <ishii(at)sraoss(dot)co(dot)jp>
Cc: Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: error message when subscription target is a partitioned table
Date: 2018-12-03 08:51:04
Message-ID: CABUevEwtXeV9WM0AyE6c1Yr79L2OMGrFMv79DWiLtQ7TXqZabQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Dec 3, 2018 at 7:39 AM Tatsuo Ishii <ishii(at)sraoss(dot)co(dot)jp> wrote:

> > Hi,
> >
> > Could we improve the error message that's output when the subscription
> > target relation is a partitioned table? Currently, we get:
> >
> > ERROR: logical replication target relation "public.foo" is not a table
> >
> > I think it'd be more helpful to get:
> >
> > ERROR: "public.foo" is a partitioned table
> > DETAIL: Partitioned tables are not supported as logical replication
> targets
> >
> > Thoughts?
>
> +1

+1 as well. That is definitely confusing -- to most people, that is still a
table...

--
Magnus Hagander
Me: https://www.hagander.net/ <http://www.hagander.net/>
Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alexander Lakhin 2018-12-03 08:58:13 Re: make installcheck-world in a clean environment
Previous Message Fabien COELHO 2018-12-03 07:44:27 Re: doc - improve description of default privileges