Serial limits on postgres

I have a question about the limits of the smallserial type on postgres, as I read in the official docs, the limits of an smallinteger comes from -32768 to 32767 using a storage of 2 bytes.

But the limits of the smallserial comes from 1 to 32767 using the same 2 bytes.

My question is, if both are using the same 2 bytes, and smallserial uses only positive numbers, why it has the same upper limit than smallinteger?

Postgres docs about numbers

So, for me the most logic way of doing this is adding more positive limit to the serial type.

I'm missing something but I don't know what it is.

Can you help me? Thank you very much!

1 Comments
 

Corporis consequuntur modi voluptas nesciunt aliquam qui. Praesentium sed consequatur ipsum et enim quis. Rerum esse nihil eum quo et et quia.

Consequuntur sit tempore vero doloremque voluptatem iusto provident. Esse et voluptatem ut dolores. Laboriosam repellat ut est nostrum assumenda magnam. Velit voluptatem nam at sunt ut. Debitis porro dolor voluptatem nulla nostrum sit. Veritatis optio perspiciatis quo sunt ea. Veniam iste reprehenderit consequuntur quis suscipit veniam et.

Dolores provident et laborum quidem ratione aliquid sint. Mollitia est repellat explicabo sapiente ea odit.

Fuga ipsam quia officiis quidem. Ut voluptatem dolores aut quas voluptas amet voluptatem et. Beatae tempora expedita nam est. Eum nobis fugit amet aut sit voluptatem sint id.

Career Advancement Opportunities

November 2026 Investment Banking

  • Evercore 01 99.5%
  • Moelis & Company 01 99.0%
  • JPMorgan 01 98.4%
  • Guggenheim Partners 02 97.9%
  • Morgan Stanley 06 97.4%

Overall Employee Satisfaction

November 2026 Investment Banking

  • Moelis & Company No 99.5%
  • Morgan Stanley 02 99.0%
  • Evercore 01 98.4%
  • Banco Santander 02 97.9%
  • BMO Capital Markets 13 97.4%

Professional Growth Opportunities

November 2026 Investment Banking

  • Evercore 01 99.5%
  • Moelis & Company 01 99.0%
  • Morgan Stanley 05 98.4%
  • Goldman Sachs 01 97.9%
  • JPMorgan No 97.4%

Total Avg Compensation

November 2026 Investment Banking

  • Vice President (16) $429
  • Associates (57) $264
  • 3rd+ Year Analyst (8) $210
  • 2nd Year Analyst (29) $183
  • Intern/Summer Associate (16) $161
  • 1st Year Analyst (84) $151
  • Intern/Summer Analyst (77) $101
notes
16 IB Interviews Notes

“... there’s no excuse to not take advantage of the resources out there available to you. Best value for your $ are the...”

Leaderboard

1
redever's picture
redever
99.2
2
BankonBanking's picture
BankonBanking
99.0
3
Secyh62's picture
Secyh62
99.0
4
kanon's picture
kanon
99.0
5
Betsy Massar's picture
Betsy Massar
98.9
6
DrApeman's picture
DrApeman
98.9
7
GameTheory's picture
GameTheory
98.9
8
CompBanker's picture
CompBanker
98.9
9
dosk17's picture
dosk17
98.9
10
Mimbs's picture
Mimbs
98.8
success
From 10 rejections to 1 dream investment banking internship

“... I believe it was the single biggest reason why I ended up with an offer...”