Re: Chante domain type - Postgres 9.2

Поиск
Список
Период
Сортировка
От Rakesh Kumar
Тема Re: Chante domain type - Postgres 9.2
Дата
Msg-id DM2PR05MB622EAB6452596B8448D10F78CCD0@DM2PR05MB622.namprd05.prod.outlook.com
обсуждение исходный текст
Ответ на Re: Chante domain type - Postgres 9.2  (Michael Sheaver <msheaver@me.com>)
Ответы Re: Chante domain type - Postgres 9.2  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general

>I have done some research after converting my database from MySQL 5.6 to PostgreSQL 9.6 (the best move I have ever made),
>and the consensus I found can be summed up as:

>1.  Never, neve, never use VARCHAR or even CHAR
>2. Always always, always use TEXT

>Unless, that is, you have some kind of edge case. This may require a little work upfront, but it will save you from a
>TON of grief down the road.

Can you elaborate?  Why would anyone create a text column to store customer name or product name which can very well be in varchar(50) type of cols.

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

Предыдущее
От: Michael Sheaver
Дата:
Сообщение: Re: Chante domain type - Postgres 9.2
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Chante domain type - Postgres 9.2