[SQL] Enumerated (enum) types

2008-05-27 Thread Michael Lourant
Enumerated (enum) types are data types that are comprised of a static, predefined set of values with a specific order. They are equivalent to the enum types in a number of programming languages. An example of an enum type might be the days of the week, or a set of status values for a piece of data.

Re: [SQL] Enumerated (enum) types

2008-05-27 Thread Harald Fuchs
In article <[EMAIL PROTECTED]>, "Michael Lourant" <[EMAIL PROTECTED]> writes: > Type Safety > Enumerated types are completely separate data types and may not be compared > with each other. ... > An Alternative Way To Do The Same > Instead of using an enum type we can set up a CHECK CONSTRAINT

Re: [SQL] Extremely Low performance with ODBC

2008-05-27 Thread Richard Broersma
On Mon, May 26, 2008 at 9:34 PM, Sebastian Rychter <[EMAIL PROTECTED]> wrote: > I'll keep on looking for any other differences on different logs.. I think I > already searched all the Postgresql forums I know and no one ever reported > something like that before. There is one other thing that you

[SQL] UPDATE with table join

2008-05-27 Thread Tarlika Elisabeth Schmitz
I need to update some records in a table depending on values in another table: UPDATE item SET export_time = now() WHERE item_pk IN ( SELECT item.item_pk AS pk FROM ITEM LEFT JOIN product product ON Item.product_fk = product.product_pk WHERE product.xyz = 't' AND ... ) Is this the most

Re: [SQL] Enumerated (enum) types

2008-05-27 Thread Tena Sakai
Thank you! Very educational and started a few wheels turning for an application. Would you please comment on enum's sql compatibility and portability? Regards, Tena Sakai [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] on behalf of Michael Lourant Sent: Tue 5/27/2008 7:29

Re: [SQL] Extremely Low performance with ODBC

2008-05-27 Thread Steve Midgley
At 09:20 PM 5/27/2008, [EMAIL PROTECTED] wrote: Date: Tue, 27 May 2008 09:29:56 -0700 From: "Richard Broersma" <[EMAIL PROTECTED]> To: "Sebastian Rychter" <[EMAIL PROTECTED]> Cc: pgsql-sql@postgresql.org Subject: Re: Extremely Low performance with ODBC Message-ID: <[EMAIL PROTECTED]> On Mon, M

Re: [SQL] Extremely Low performance with ODBC

2008-05-27 Thread Steve Midgley
At 09:20 PM 5/27/2008, [EMAIL PROTECTED] wrote: Date: Tue, 27 May 2008 09:29:56 -0700 From: "Richard Broersma" <[EMAIL PROTECTED]> To: "Sebastian Rychter" <[EMAIL PROTECTED]> Cc: pgsql-sql@postgresql.org Subject: Re: Extremely Low performance with ODBC Message-ID: <[EMAIL PROTECTED]> On Mon, M