0

For example if i have a unsigned int index in my table, what happens when i get more rows than sizeof(unsigned int) ? I'm interested in MySQL/PostgreSQL/MsSQL.

demongolem
  • 9,474
  • 36
  • 90
  • 105
daniels
  • 18,416
  • 31
  • 103
  • 173

1 Answers1

2

Your question asks what happens when there are more than 4 or 8 rows (sizeof (unsigned int)). But I think you mean What happens when trying to insert a row when there will be 2^32 (or 2^64) rows?

I've never seen it, and I've worked with some really big databases. I expect the insert fails and causes the transaction to roll back. It can be sensed in MySQL with an insert probe.

wallyk
  • 56,922
  • 16
  • 83
  • 148