Re: 'text' is gone?

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: johnf <jfabiani(at)yolo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Adrian Klaver <aklaver(at)comcast(dot)net>
Subject: Re: 'text' is gone?
Date: 2009-02-11 06:36:01
Message-ID: dcc563d10902102236x65e4689eg2eafeb32f5f5b8c2@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Feb 10, 2009 at 10:49 PM, johnf <jfabiani(at)yolo(dot)com> wrote:
> To solve this problem, Microsoft introduced the VARCHAR(MAX), NVARCHAR(MAX),
> and VARBINARY(MAX) data types in SQL Server 2005. These data types can hold
> the same amount of data BLOBs can hold (2 GB) and they are stored in the same
> type of data pages used for other data types. When data in a MAX data type
> exceeds 8 KB, an over-flow page is used. SQL Server 2005 automatically
> assigns an over-flow indicator to the page and knows how to manipulate data
> rows the same way it manipulates other data types. You can declare variables
> of MAX data types inside a stored procedure or function and even pass them as
> variables. You can also use them inside string functions.
>
> Microsoft recommend using MAX data types instead of BLOBs in SQL Server 2005.
> In fact, BLOBs are being deprecated in future releases of SQL Server.

So, they did exactly what pgsql crew did with TOAST, but instead of
sticking it under an existing datatype that everyone already had, they
made another new type to keep track of. I can't think of a reason to
not just update the text type to be just like the leader's,
Postgresql's, but I'm sure they have their reasons. I'd love to hear
them though.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Csaba Együd 2009-02-11 06:38:55 Pl/PgSQL String formatting like raise?
Previous Message johnf 2009-02-11 05:49:20 Re: 'text' is gone?