Re: [PATCH] Add schema and table names to partition error

Поиск
Список
Период
Сортировка
От Amit Kapila
Тема Re: [PATCH] Add schema and table names to partition error
Дата
Msg-id CAA4eK1+Lz66gYn2ovagPBO8Kdw4sPQkKyy3D31ZuTZh1XHzmHw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [PATCH] Add schema and table names to partition error  (Chris Bandy <bandy.chris@gmail.com>)
Список pgsql-hackers
On Wed, Mar 4, 2020 at 10:48 AM Chris Bandy <bandy.chris@gmail.com> wrote:
>
> On 3/3/20 10:08 AM, Alvaro Herrera wrote:
> >> +\set VERBOSITY verbose
> >> +-- no partitions
> >> +CREATE TABLE pterr1 (x int, y int, PRIMARY KEY (x, y)) PARTITION BY RANGE (y);
> >> +INSERT INTO pterr1 VALUES (10, 10);
> >> +ERROR:  23514: no partition of relation "pterr1" found for row
> >> +DETAIL:  Partition key of the failing row contains (y) = (10).
> >> +SCHEMA NAME:  public
> >> +TABLE NAME:  pterr1
> >> +LOCATION:  ExecFindPartition, execPartition.c:349
> >
> > This won't work well, because people would be forced to update the .out
> > file whenever the execPartition.c file changed to add or remove lines
> > before the one with the error call.
>
> I agree. I expected that and should have made it more clear that I
> didn't intend for those tests to be committed. Others in the thread
> suggested I include some form of test, even if it didn't live past
> review.
>

Right, it is not for committing those tests, but rather once we try to
hit the code we are changing in this patch.

-- 
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: logical replication empty transactions
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Symbolic names for the values of typalign and typstorage