We're sorry but this page doesn't work properly without JavaScript enabled. Please enable it to continue.
Feedback

Tour de (PostgreSQL) Data Types

Formal Metadata

Title
Tour de (PostgreSQL) Data Types
Alternative Title
Tour de Data Types: VARCHAR2 or CHAR(255)?
Title of Series
Number of Parts
611
Author
License
CC Attribution 2.0 Belgium:
You are free to use, adapt and copy, distribute and transmit the work or content in adapted or unchanged form for any legal purpose as long as the work is attributed to the author in the manner specified by the author or licensor.
Identifiers
Publisher
Release Date
Language
Production Year2017

Content Metadata

Subject Area
Genre
Abstract
Ever wondered what might be the best data type for a certain use case? Is itbetter to use INTEGER or BIGINT, and should you use TIMESTAMP or is it betterto use TIMESTAMPTZ? When is the last time you migrated a legacy database andwondered what to use as replacement for VARCHAR2 or CHAR(255)? How to store IPaddresses or geographical data, does that fit into VARCHAR or is theresomething more suitable? PostgreSQL 9.6 comes with around 40 different data types preinstalled. Thistalk looks beyond INTEGER and VARCHAR and dives into some of the lesser knownPostgreSQL data types. Use cases and examples show which data type is a goodfit for a certain situation.