Re: Using a Conversion Table

Поиск
Список
Период
Сортировка
От Peter J. Holzer
Тема Re: Using a Conversion Table
Дата
Msg-id 20240216001216.kogrdgmpbklbyzyj@hjp.at
обсуждение исходный текст
Ответ на Re: Using a Conversion Table  (Greg Sabino Mullane <htamfids@gmail.com>)
Список pgsql-general
On 2024-02-14 10:02:37 -0500, Greg Sabino Mullane wrote:
>         "Fiscal year" double precision,
>
> This column is an INTEGER in your other table, so your schema is not even
> internally consistent! Try to use TEXT, INT, DATE and TIMESTAMPTZ whenever
> possible,

While using double precision for fiscal year is rather grotesque
overkill (smallint would be sufficient) it isn't wrong: Any value you
could conceivably want to store for a fiscal year fits nicely (with lots
of room to spare) into a double precision.

I agree that consistency would be nice, though.

        hp

--
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: How to do faster DML
Следующее
От: Jay Stanley
Дата:
Сообщение: Re: PostgreSQL DB in prod, test, debug