Re: [GENERAL] Is it possible (postgresql/mysql)

2006-08-16 Thread Harald Armin Massa
Louis,there may be an a unimportant performance penality for varchar, because of filling up and whatever. But the real reason: as much as I researched, NOBODY stated that varchar2 would be faster or better; but it limits the length. And I spend to much time in working around fixed field lengths in

Re: [GENERAL] Is it possible (postgresql/mysql)

2006-08-16 Thread louis gonzales
Harald, I had thought of that, but I wasn't sure if there was/is a way to create the index's upon table creation, as it appears is possible with MySQL. As for the replacing of varchar(xx) with a text data type, why do you recommend this? I want to stay as close as I can to the original code.

Re: [GENERAL] Is it possible (postgresql/mysql)

2006-08-16 Thread Harald Armin Massa
Louis,indizes are simply created outside the create tableCREATE INDEX someTable_Date_create  ON someTable  USING btree  (date_create);As you are working on transferring, maybe you like to drop those varchar(xx) and replace them with text. Saves a lot of hassle lateron. HaraldOn 8/16/06, louis gonza

[GENERAL] Is it possible (postgresql/mysql)

2006-08-16 Thread louis gonzales
Hello List, PostgreSQL 8.0.1 (on Solaris 9) There is a PERL program that a friend purchased which is used to create tables on a MySQL database, and of course ;) I want to run this on a PostgreSQL database server instead. The below is the code: $sth=runSQL("CREATE TABLE someTable (