menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Databases

>

# PostgreS...
source image

Dev

1M

read

76

img
dot

Image Credit: Dev

# PostgreSQL Tutorial: 📚 What Really Happens When You Add and Drop Columns 2000 Times in PostgreSQL

  • PostgreSQL has an internal 1600 column limit that affects the addition and dropping of columns.
  • Adding a column without a default value is instantaneous and only updates system catalogs.
  • Dropping a column marks it as dropped in catalogs, but the physical data still exists in table tuples.
  • When the number of dropped columns reaches the limit, new schema changes are blocked until a full table rewrite is performed.

Read Full Article

like

4 Likes

For uninterrupted reading, download the app