Quantcast
Channel: varchar – select * from depesz;
Browsing all 5 articles
Browse latest View live

CHAR(x) vs. VARCHAR(x) vs. VARCHAR vs. TEXT – UPDATED 2010-03-03

Fight! But more seriously – people tend to use various data types, and there have been some myths about them, so let's see how it really boils down. First of all – All those data types are internally...

View Article



Waiting for 9.1 – Rewrite-less changing types of column

On 12th of February, Robert Haas committed patch: Teach ALTER TABLE .. SET DATA TYPE to avoid some table rewrites.   When the old type is binary coercible to the new type and the using clause does not...

View Article

CHAR(x) vs. VARCHAR(x) vs. VARCHAR vs. TEXT – UPDATED 2010-03-03

Fight! But more seriously – people tend to use various data types, and there have been some myths about them, so let's see how it really boils down. First of all – All those data types are internally...

View Article

Waiting for 9.1 – Rewrite-less changing types of column

On 12th of February, Robert Haas committed patch: Teach ALTER TABLE .. SET DATA TYPE TO avoid SOME TABLE rewrites.   WHEN the OLD TYPE IS BINARY coercible TO the NEW TYPE AND the USING clause does NOT...

View Article

Does varchar(n) use less disk space than varchar() or text?

Some time ago on Slack some person said: varchar is better (storage efficiency), i recommend using it for less than 2048 chars, for the best : TEXT There was discussion that followed, the person that...

View Article

Browsing all 5 articles
Browse latest View live




Latest Images