Re: [HACKERS] MergeAttributes type (mod) conflict error detail

2015-12-27 Thread Amit Langote
On 2015/12/27 3:11, Tom Lane wrote: > I wrote: >> Amit Langote writes: >>> Any specific reason why it doesn't spell out typmods in the above detail >>> message? > >> * There's a rough policy in the parser to prefer TypeNameToString >> when complaining about a

Re: [HACKERS] MergeAttributes type (mod) conflict error detail

2015-12-26 Thread Tom Lane
I wrote: > Amit Langote writes: >> Any specific reason why it doesn't spell out typmods in the above detail >> message? > * There's a rough policy in the parser to prefer TypeNameToString > when complaining about a TypeName input, rather than reconstructing > the

Re: [HACKERS] MergeAttributes type (mod) conflict error detail

2015-12-25 Thread Tom Lane
Amit Langote writes: > I wonder if the following error detail text could say more than it does > currently for the following rather artificial example case: > CREATE TABLE p1(a char(3)); > CREATE TABLE p2(a char(2)); > CREATE TABLE c(d int) INHERITS (p1, p2); >

[HACKERS] MergeAttributes type (mod) conflict error detail

2015-12-24 Thread Amit Langote
I wonder if the following error detail text could say more than it does currently for the following rather artificial example case: CREATE TABLE p1(a char(3)); CREATE TABLE p2(a char(2)); CREATE TABLE c(d int) INHERITS (p1, p2); NOTICE: merging multiple inherited definitions of column "a"