Hi Grzegorz,<br><br>Our community member was maintaining a branch for PostgreSQL <br>check it out at <a href="http://trac.vtiger.com/svn/vtiger/vtigercrm/branches/5.1_jens">http://trac.vtiger.com/svn/vtiger/vtigercrm/branches/5.1_jens</a> (this is based on 5.0.3) not complete.<br>
<br>For earlier discussion refer this post:<br><a href="http://lists.vtigercrm.com/pipermail/vtigercrm-developers/2007-November/002622.html">http://lists.vtigercrm.com/pipermail/vtigercrm-developers/2007-November/002622.html</a><br>
<br>Regards,<br>Prasad<br><br><div><span class="gmail_quote">On 1/2/09, <b class="gmail_sendername">Grzegorz Prze¼dziecki</b> <grzegorz.przezdziecki@pflg.pl> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br> Tray to install on PostgreSQL (8.3) and have some error<br> from DatabaseSchema.xml file<br> <br> <a href="http://trac.vtiger.com/cgi-">http://trac.vtiger.com/cgi-</a><br> bin/trac.cgi/browser/vtigercrm/branches/5.1/schema/DatabaseSchema.xml<br>
<br> For example<br> Create table with index "stuff_stuffid_idx"<br> ==========<br> <table name="vtiger_homemodule"><br> 6270<br> <field name="stuffid" type="I" size="19"><br>
6271<br> <key /><br> 6272<br> </field><br> 6273<br> <field name="modulename" type="C" size="100" /><br> 6274<br> <field name="maxentries" type="I" size="19" ><br>
6275<br> <notnull /><br> 6276<br> </field><br> 6277<br> <field name="customviewid" type="I" size="19"><br> 6278<br>
<notnull /><br> 6279<br> </field><br> 6280<br> <field name="setype" type="C" size="30"><br> 6281<br> <notnull /><br>
6282<br> </field><br> 6283<br> <index name="stuff_stuffid_idx"><br> 6284<br> <col>stuffid</col><br> 6285<br> </index><br>
6286<br> <br> ==============<br> <br> And second table<br> with index "stuff_stuffid_idx"<br> ==========<br> <table name="vtiger_homerss"><br> 6314<br> <field name="stuffid" type="I" size="19"><br>
6315<br> <key /><br> 6316<br> <default value="0" /><br> 6317<br> </field><br> 6318<br> <field name="url" type="C" size="100" /><br>
6319<br> <field name="maxentries" type="I" size="19" ><br> 6320<br> <notnull /><br> 6321<br> </field><br> 6322<br> <index name="stuff_stuffid_idx"><br>
6323<br> <col>stuffid</col><br> 6324<br> </index><br> 6325<br> <opt platform="mysql">Type=InnoDB</opt><br> 6326<br> </table><br>
=============<br> <br> I don't know how it is looks on MySQL but on PostgreSQL could not create<br> index with the same name even for another table.<br> There is error relation "stuff_stuffid_idx" exist<br>
<br> <br> PostgreSQL automatically creates an index for each unique constraint and<br> primary key constraint to enforce uniqueness. Thus, it is not necessary to<br> create an index explicitly for primary key columns.<br>
<br> <a href="http://www.postgresql.org/docs/8.3/interactive/sql-createtable.html">http://www.postgresql.org/docs/8.3/interactive/sql-createtable.html</a><br> And it is not necessary to add<br> ===<br> <index name="stuff_stuffid_idx"><br>
6323<br> <col>stuffid</col><br> 6324<br> </index><br> ======<br> to create table for PostgreSQL if you not use index by name in code???<br> In that case on PostgreSQL will be two index on the same column.<br>
It is possible to take into consideration about this in xml structure??<br> <br> Or better create new DatabaseSchemaPSQL.xml (for example) specially for<br> PostgreSQL<br> <br> Best Regards<br> GP<br> <br> --<br> Grzegorz Prze¼dziecki<br>
<a href="http://www.pflg.pl">http://www.pflg.pl</a><br> kom. +48.606.822.506<br> skype://grzegorz.przezdziecki<br> gg://3701851<br> <br> _______________________________________________<br> Reach hundreds of potential candidates - <a href="http://jobs.vtiger.com">http://jobs.vtiger.com</a> </blockquote>
</div><br>