Re: Chante domain type - Postgres 9.2

From: Rakesh Kumar <rakeshkumar464(at)outlook(dot)com>
To:
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Chante domain type - Postgres 9.2
Date: 2016-09-26 12:51:33
Message-ID: DM2PR05MB622EAB6452596B8448D10F78CCD0@DM2PR05MB622.namprd05.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2016-09-26 12:59:45 Re: Chante domain type - Postgres 9.2
Previous Message Michael Sheaver 2016-09-26 12:46:09 Re: Chante domain type - Postgres 9.2