Row Size System Limit

Moderator: NorbertKrupa

Post Reply
User avatar
piglet
Beginner
Beginner
Posts: 45
Joined: Tue Feb 07, 2012 4:04 pm

Row Size System Limit

Post by piglet » Fri Apr 05, 2013 3:56 pm

Hello,

I was reading over the SQL Reference Manual and noticed that there is a hard limit of 32 MB of data for a table row while we can have up to 1600 columns per table.

Does that 32 MB limit the number or columns? That is can we only have 516 VARCHAR(65000) columns?

516 * 65000 = 33540000 bytes = 32 MB.

Just curious :)

id10t
GURU
GURU
Posts: 732
Joined: Mon Apr 16, 2012 2:44 pm

Re: Row Size System Limit

Post by id10t » Fri Apr 05, 2013 11:23 pm

Hi!

You are right - if you have CHAR(65536) columns only so you can define max 512 columns.

PS:

Code: Select all

2^16 = 65536
2^9 = 512
1MB = 1024^2 = 1048576 Bytes
---
(65536 * 512) / 1048576 = (2^16 * 2^9) / 2^20 = 2^25 / 2^20 =  2^5 = 32 

Post Reply

Return to “New to Vertica Database Administration”