Is int4 is like int and integer?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Vishal JoshiRank #377 · 6.7K reputationPosted Aug 29, 2022, 2:42 AM EDT
Type
Value
Disk usage
Integers can be of different sizes, as the above table shows. in your case, int4 means it can be an integer with 4 bytes.
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Aug 29, 2022, 1:23 AM EDT
Uday DodiyaRank #239 · 10.3K reputationPosted Aug 29, 2022, 2:51 AM EDT
INT4 is an alias for the INTEGER data type. INT8 is an alias for the BIGINT data type. FLOAT4 is an alias for the REAL data type. FLOAT8 is an alias for the DOUBLE data type. NUMERIC is an alias for the DECIMAL data type.