From: | Haribabu Kommi <kommi(dot)haribabu(at)gmail(dot)com> |
---|---|
To: | Dilip Kumar <dilipbalaut(at)gmail(dot)com> |
Cc: | Maxim Boguk <maxim(dot)boguk(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [BUGS] BUG #14350: VIEW with INSTEAD OF INSERT TRIGGER and COPY. Missing feature or working as designed. |
Date: | 2016-11-04 01:44:45 |
Message-ID: | CAJrrPGcSQkrNkO+4PhLm4B8UQQQmU9YVUuqmtgM=pmzMfxWaWQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers |
On Thu, Nov 3, 2016 at 5:23 PM, Dilip Kumar <dilipbalaut(at)gmail(dot)com> wrote:
> On Thu, Nov 3, 2016 at 9:57 AM, Haribabu Kommi <kommi(dot)haribabu(at)gmail(dot)com>
> wrote:
> > Thanks for your suggestion. Yes, I agree that adding a hint is good.
> > Updated patch is attached with addition of hint message.
> >
> > 2016-11-03 14:56:28.685 AEDT [7822] ERROR: cannot copy to view "ttt_v"
> > 2016-11-03 14:56:28.685 AEDT [7822] HINT: To enable copy to view,
> provide
> > an INSTEAD OF INSERT trigger
> > 2016-11-03 14:56:28.685 AEDT [7822] STATEMENT: COPY ttt_v FROM stdin;
>
> Okay, Patch in general looks fine to me. One cosmetic comments, IMHO
> in PG we follow operator at end of the line, so move '&&' to end of
> the previous line.
>
> + if (cstate->rel->rd_rel->relkind != RELKIND_RELATION
> + && (!cstate->rel->trigdesc ||
> + !cstate->rel->trigdesc->trig_insert_instead_row))
>
changed.
> Meanwhile I will test it and give the feedback.
Thanks.
Updated patch is attached with added regression tests.
Regards,
Hari Babu
Fujitsu Australia
Attachment | Content-Type | Size |
---|---|---|
copy_to_view_3.patch | application/octet-stream | 7.5 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2016-11-04 02:31:03 | Re: Compilation of timezone source with zic fails (on mountpoint) |
Previous Message | Kevin Grittner | 2016-11-04 00:15:04 | Re: BUG #14411: Issue with using OFFSET |
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2016-11-04 01:45:28 | Re: Logical Replication WIP |
Previous Message | Robert Haas | 2016-11-04 00:16:57 | Re: Declarative partitioning - another take |