From: | Boxuan Zhai <bxzhai2010(at)gmail(dot)com> |
---|---|
To: | Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: MERGE Specification |
Date: | 2010-08-10 09:08:08 |
Message-ID: | AANLkTi=fgcREoFDSQBub6Ya44TYscDpdd9rKQrN_tMxb@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Aug 10, 2010 at 2:49 PM, Heikki Linnakangas <
heikki(dot)linnakangas(at)enterprisedb(dot)com> wrote:
> On 10/08/10 06:03, Boxuan Zhai wrote:
>
>> I have put everything in one patch, against the latest git repository. The
>> program is tested on my machine.
>>
>
> Thanks! I get a few compiler warnings:
>
> analyze.c: In function ‘transformMergeStmt’:
> analyze.c:2476: warning: unused variable ‘lastaction’
> gram.y: In function ‘base_yyparse’:
> gram.y:7437: warning: assignment from incompatible pointer type
> gram.y:7441: warning: assignment from incompatible pointer type
> trigger.c: In function ‘ExecBSMergeTriggers’:
> trigger.c:2360: warning: assignment from incompatible pointer type
> trigger.c: In function ‘ExecASMergeTriggers’:
> trigger.c:2411: warning: assignment from incompatible pointer type
> planner.c: In function ‘merge_action_planner’:
> planner.c:681: warning: assignment from incompatible pointer type
> var.c: In function ‘push_up_merge_action_vars’:
> var.c:738: warning: passing argument 1 of
> ‘push_up_merge_action_vars_walker’ from incompatible pointer type
> var.c:96: note: expected ‘struct Node *’ but argument is of type ‘struct
> List *’
> var.c:740: warning: passing argument 1 of
> ‘push_up_merge_action_vars_walker’ from incompatible pointer type
> var.c:96: note: expected ‘struct Node *’ but argument is of type ‘struct
> List *’
>
> The merge.sgml file should be in doc/src/sgml/ref, not doc/src/sgml. After
> moving it there, I get a few errors from compiling the docs:
>
> openjade:ref/merge.sgml:128:55:X: reference to non-existent ID
> "SQL-SELECT-TITLE"
> openjade:ref/merge.sgml:129:55:X: reference to non-existent ID
> "SQL-VALUES-TITLE"
> openjade:ref/merge.sgml:185:42:X: reference to non-existent ID
> "SQL-INSERT-TITLE"
> openjade:ref/merge.sgml:170:42:X: reference to non-existent ID
> "SQL-UPDATE-TITLE"
>
> Those can be fixed by simply removing the endterm attributes from those
> lines, they're not needed.
>
>
Thanks for your feedback. I fixed all the above waring bugs. Find the new
patch in attachement.
>
> --
> Heikki Linnakangas
> EnterpriseDB http://www.enterprisedb.com
>
Attachment | Content-Type | Size |
---|---|---|
merge_no_warning.tar | application/x-tar | 100.0 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Boxuan Zhai | 2010-08-10 09:38:09 | MERGE command for inheritance |
Previous Message | Fujii Masao | 2010-08-10 08:13:22 | pg_restore should accept multiple -t switches? |