X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E8CE252A34 for ; Tue, 28 Jun 2005 03:43:24 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 38604-10 for ; Tue, 28 Jun 2005 06:43:15 +0000 (GMT) Received: from sharp.noc24x7.com (unknown [69.56.128.138]) by svr1.postgresql.org (Postfix) with ESMTP id D5CEE529F7 for ; Tue, 28 Jun 2005 03:43:13 -0300 (ADT) Received: from [61.3.110.139] (helo=thenilgiris.web) by sharp.noc24x7.com with esmtp (Exim 4.50) id 1Dn9oN-0008Ga-Ru; Tue, 28 Jun 2005 12:13:12 +0530 Received: by thenilgiris.web (Postfix, from userid 500) id D98015D94F; Tue, 28 Jun 2005 12:11:29 +0530 (IST) From: Kenneth Gonsalves To: MRB Subject: Re: ENUM like data type Date: Tue, 28 Jun 2005 12:11:29 +0530 User-Agent: KMail/1.6.1 Cc: pgsql-sql@postgresql.org References: <11bgc1oblfasq3d@corp.supernews.com> In-Reply-To: <11bgc1oblfasq3d@corp.supernews.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <200506281211.29034.lawgon@thenilgiris.com> X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sharp.noc24x7.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - thenilgiris.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.074 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200506/333 X-Sequence-Number: 21934 On Tuesday 21 Jun 2005 8:50 pm, MRB wrote: > I'm working with a lot of data from MySQL where the MySQL ENUM type > is used. just a thought - it took me five years after migrating from mysql to=20 pg to start thinking like an sql programmer. I used to keep trying to=20 write stuff for pg 'like' i used to for mysql. When i did that - i=20 didnt get any of the benefits of pg - might as well have continued to=20 write in mysql. Especially so when i went into convolutions trying to=20 translate the enum type and the 'set' syntax on insert. In these=20 cases i suggest dumping the mysql way and rewriting in the pg way.=20 =2D-=20 regards kg http://www.livejournal.com/users/lawgon tally ho! http://avsap.org.in =E0=B2=87=E0=B2=82=E0=B2=A1=E0=B3=8D=E0=B2=B2=E0=B2=BF=E0=B2=A8=E0=B2=95=E0= =B3=8D=E0=B2=B8 =E0=AE=B5=E0=AE=BE=E0=AE=B4=E0=AF=8D=E0=AE=95!