From: Ahsan H. <ahs...@en...> - 2014-02-06 07:18:00
|
Abbas, Can you test this with 1.1? Perhaps we fixed this issue in the master which means that it will be part of 1.2 beta that is planned for this month. -- Ahsan On Wed, Feb 5, 2014 at 10:03 PM, David E. Wheeler <da...@ju...>wrote: > On Feb 4, 2014, at 10:18 PM, Abbas Butt <abb...@en...> > wrote: > > > I had to change the insert query a little bit and had to do some dummy > inserts in projects and changes too, but the query worked fine for me. BTW > I tried on current master, I am not sure which version you are using to > test. > > The 1.1 release. > > > Here are the queries I tried. > > > > After creating the three tables, I did > > > > insert into projects values('?', '?', DEFAULT, '?', '?'); > > > > insert into changes values('?', '?', '?', '?', DEFAULT, '?', '?', > clock_timestamp(), '?', '?'); > > > > INSERT INTO tags (tag_id, tag, project, change_id, note, committer_name, > committer_email, planned_at, planner_name, planner_email) > > SELECT tid, tg, proj, chid, n, name, email, at, pname, pemail FROM ( > VALUES ('?', '?', '?', '?', '?', '?', '?', clock_timestamp()::timestamptz, > '?', '?')) i(tid, tg, proj, chid, n, name, email, at, pname, pemail) LEFT > JOIN tags ON i.tid = tags.tag_id WHERE tags.tag_id IS NULL; > > On 1.1: > > dwheeler=# insert into sqitch.projects values('?', '?', DEFAULT, '?', '?'); > INSERT 0 1 > Time: 48.720 ms > dwheeler=# insert into sqitch.changes values('?', '?', '?', '?', DEFAULT, > '?', '?', clock_timestamp(), '?', '?'); > INSERT 0 1 > Time: 43.704 ms > dwheeler=# INSERT INTO sqitch.tags (tag_id, tag, project, change_id, note, > committer_name, committer_email, planned_at, planner_name, planner_email) > dwheeler=# INSERT INTO sqitch.tags (tag_id, tag, project, change_id, note, > committer_name, committer_email, planned_at, planner_name, planner_email) > dwheeler-# SELECT tid, tg, proj, chid, n, name, email, at, pname, pemail > FROM ( VALUES ('?', '?', '?', '?', '?', '?', '?', > clock_timestamp()::timestamptz, '?', '?')) i(tid, tg, proj, chid, n, name, > email, at, pname, pemail) LEFT JOIN sqitch.tags ON i.tid = tags.tag_id > WHERE tags.tag_id IS NULL; > ERROR: unexpected varno 6 in JOIN RTE 5 > Time: 4.064 ms > > Best, > > David > > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Postgres-xc-developers mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-developers > -- Ahsan Hadi Snr Director Product Development EnterpriseDB Corporation The Enterprise Postgres Company Phone: +92-51-8358874 Mobile: +92-333-5162114 Website: www.enterprisedb.com EnterpriseDB Blog: http://blogs.enterprisedb.com/ Follow us on Twitter: http://www.twitter.com/enterprisedb This e-mail message (and any attachment) is intended for the use of the individual or entity to whom it is addressed. This message contains information from EnterpriseDB Corporation that may be privileged, confidential, or exempt from disclosure under applicable law. If you are not the intended recipient or authorized to receive this for the intended recipient, any use, dissemination, distribution, retention, archiving, or copying of this communication is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately by reply e-mail and delete this message. |