Re: Finding Max Value in a Row - Mailing list pgsql-sql

From Thomas Kellerer
Subject Re: Finding Max Value in a Row
Date
Msg-id jojrc9$uof$2@dough.gmane.org
Whole thread Raw
In response to Re: Finding Max Value in a Row  (Carlos Mennens <carlos.mennens@gmail.com>)
List pgsql-sql
Carlos Mennens wrote on 11.05.2012 21:53: 
> Very good question and asked by myself to the original SQL author and
> he explained while he didn't use the most efficient data types, he
> used ones "he" felt would be more transparent across a multitude of
> RDBMS vendors. So the answer is no, it would not be an issue
> considering I use and will always use PostgreSQL. If someone else uses
> a different vendor, they can manage that import/export process then.

You should tell those people that char is a bad choice in _any_ DBMS due to the padding that is involved.

varchar would have been slightly better.

But it's never, ever a good idea to store numbers in a character column.
*Every* RDBMS has some kind of integer datatype (they might just have different names).

 




pgsql-sql by date:

Previous
From: Thomas Kellerer
Date:
Subject: Re: Finding Max Value in a Row
Next
From: Viktor Bojović
Date:
Subject: Re: Finding Max Value in a Row