• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
ExamTurf

Exam Turf

  • Categories
    • Exam Preparations
      • All Exams
      • Popular
        • UPSC-PSC
        • SSC Exams
        • Bank Exams
        • Railway Exams
        • Defence Exams
        • IIT JEE/Engineering
        • NEET/Medical
        • State PSC
        • NET Exams
        • GATE & ESC
        • IIT-JAM
        • NEET PG
        • TET Exams
        • CAT/MBA
        • CA & CS
        • State CET
        • CLAT and Law
        • State Exams
      • Finance Exam Prep
        • ACCA
        • CFP®
        • CMA®
        • CPA
        • CAIA®
        • CFA®
        • ChFC®
        • CGMA®
        • Financial Modeling
        • FRM®
        • CCP
        • CISA
        • CIA
      • Project Management
        • PMP
        • CAPM
        • CSM
        • CompTIA Project+
        • ACP
        • PRINCE2
        • CPD
        • Project Manager IAPM
        • PPM
        • MPM
        • APM
        • CPMP
        • CSSBB
        • CSSGB
        • PMC
        • BVOP
        • GPM-IPMA
        • PgMP
        • PMI-RMP
        • PMI-PBA
        • PMI-ACP
        • Others
      • Quality Management
        • CQI
        • CQPA
        • CQT
        • CRE
        • CSSBB
        • CSSGB
        • CSSYB
        • CSQE
        • Quality Management Exam Prep
      • IT and Software
        • AWS Exams
        • CCSP
        • CDPSE
        • CDP
        • CEH
        • CISM
        • CISSP
        • CCIE
        • CCNA
        • CCNP
        • Microsoft Azure
        • MCSA
        • CMDBA
        • Salesforce
        • CompTIA A+
        • MTA
        • PMP
        • Oracle Certification
        • GIAC
        • ITIL
        • Others
      • Data Science Exam Prep
        • CAP
        • CCA
        • CCP
        • DASCA Certifications
        • EMCDS
        • Google Certifications
        • IBM Certifications
        • Azure
        • Open CDS
        • SAS
        • Tensorflow
        • Data Science Exam Prep
      • Digital Marketing
        • Facebook
        • Google AdWords
        • Hootsuite
        • HubSpot
        • PCM Digital
        • AMA Certifications
        • Others
    • K-12
      • Class 12
      • Class 11
      • Class 10
      • Class 9
      • Class 8
      • Class 7
      • Class 6
      • Graduation
    • Data Science
      • Big Data
        • Hadoop
        • Splunk
        • Apache Pig
        • Apache Spark
        • Hive
        • Mahout
        • Apache Storm
        • Pyspark
        • Sqoop
        • Kafka
        • Others
      • Deep Learning
        • Tensorflow
        • Octave
        • OpenCV
        • NLP
        • Scikit-Learn
        • Python
      • Machine Learning
        • Tensorflow
        • Octave
        • OpenCV
        • NLP
        • Scikit-Learn
        • Python
      • Artificial Intelligence
        • Python
        • Tensorflow
        • Deeplearning
        • Pytorch
        • IoT
      • Data Analysis
        • R
        • SAS
        • Devops
        • Docker
        • Kubernetes
        • Keras
      • Neural Networks
        • Keras
        • R
        • Python
        • Pytorch
        • AI
        • BI
      • Python
        • Seaborn
        • Pandas
        • Numpy
        • Kubernetes
        • Keras
        • Pytorch
        • Pyspark
      • Business Intelligence
        • SAS
        • Power BI
        • Qliksense
      • Business Analytics
        • SEO
        • Google Analytics
        • Marketing Analytics
        • Sales Analytics
        • Fraud Analytics
        • Customer Analytics
        • Talend
      • Cloud Computing
        • AWS
        • Cloud
        • Azure
      • Data Visualization
        • SSIS
        • Qlikview
        • Matplotlib
        • Seaborn
        • Pandas
        • Numpy
        • Kibana
      • Statistics
        • Minitab
        • Tableau
        • SPSS
        • Eviews
        • Predictive Modeling
        • Time Series
        • Forecasting
      • Database
        • Informatica
        • SQL
        • CloverETL
        • CouchDB
        • Solr
        • Cassandra
    • Development
      • All Development
      • Web Development
        • All Web Development
        • JavaScript
        • React
        • CSS
        • Angular
        • PHP
        • Node.Js
        • WordPress
      • Data Science
        • All Data Science
        • Python
        • Deep Learning
        • Machine Learning
        • Data Analysis
        • Artificial Intelligence
        • R
        • Tensorflow
        • Neural Networks
      • Mobile Development
        • All Mobile Development
        • Google Flutter
        • Android Development
        • iOS Development
        • Swift
        • React Native
        • Dart Programming
        • Kotlin
        • Redux Framework
      • Programming Languages
        • All Programming
        • Python
        • Java
        • RPA Robotics
        • C++ and C#
        • React
        • JavaScript
        • C
        • Go Programming
        • Spring Framework
      • Game Development
        • All Game Development
        • 2D Game Development
        • 3D Game Development
        • Unity
        • Game Fundamentals
        • Unreal Engine
        • RPA Robotics
        • C++ and C#
        • 3D Max
        • Blender
      • Database Design
        • All Database Design
        • SQL
        • MySQL
        • Oracle SQL
        • MongoDB
        • Oracle Certification
        • SQL Server
        • Apache Kafka
        • PostgreSQL
        • Database Programming
      • Software Testing
        • All Software Testing
        • Selenium WebDriver
        • Java
        • Automation Testing
        • Selenium Testing Framework
        • API Testing
        • Cypress.io
        • REST Assured
        • Python
      • Software Engineering
        • All Software Engineering
        • Coding Interview
        • Kubernetes
        • Certified Kubernetes Application Developer
        • Data Structures
        • Software Practices
        • Microservices
        • Python
        • Spring Boot
        • Elasticsearch
      • Development Tools
        • All Development Tools
        • Docker
        • Kubernetes Python
        • Git
        • DevOps
        • Jenkins
        • JIRA
        • AWS Certified Solutions Architect - Associate
        • Continuous Integration
        • Confluence
      • No Code Development
        • All No-Code Development
        • Elementor
        • WordPress
        • Microsoft
        • Software Development
        • Web Design
        • Others
    • Business
      • All Business
      • Entrepreneurship
        • All Entrepreneurship
        • Business Plan
        • Business Fundamentals
        • Entrepreneurship Fundamentals
        • Business Strategy
        • Social Media Strategy
        • Branding Strategy
        • Startup
        • Home Business
      • Communications
        • All Communications
        • Communication Skills
        • Presentation Skills
        • Public Speaking
        • Business Writing
        • Persuasion
        • Email Etiquette
        • Business Communication
      • Sales
        • All Sales
        • Sales Skills
        • B2B Sales
        • Presentation Skills
        • Business Development
        • Lead Generation
        • Cold Email
        • Customer Service
      • Business Strategy
        • All Business Strategy
        • Digital Marketing
        • Google Ads (Adwords)
        • TOGAF 9 Foundation
        • Strategic Planning
        • Management Consulting
        • Agile
      • Operations
        • All Operations
        • Six Sigma
        • Six Sigma Green Belt
        • Supply Chain
        • Quality Management
        • Process and Automation
        • Six Sigma Black Belt
        • Lean
        • Six Sigma Yellow Belt
      • Project Management
        • All Project Management
        • PMP
        • PMBOK
        • Agile
        • Scrum
        • PMI-ACP
        • CAPM
        • Risk Management
        • Professional Scrum Master
      • Business Law
        • All Business Law
        • Product Management
        • Leadership
        • Management Skills
        • Business Process Management
        • Business Strategy
        • ISO 9001
        • Risk Management
        • Agile
        • Quality Management
      • Business Analytics and Intelligence
        • All BA and BI
        • Microsoft Power BI
        • SQL
        • Tableau
        • Business Analysis
        • Business Intelligence
        • Data Analysis
        • MySQL
        • Data Modeling
        • Big Data
      • Human Resources
        • All Human Resources
        • Recruiting
        • Instructional Design
        • Communication
        • Hiring
        • Leaderships Management
        • Conflict Management
        • HR Analytics
        • Talent Management
      • Industry
        • All Industry
        • Communication Skills
        • Presentation Skills
        • Public Speaking
        • Business Writing
        • Persuasion
        • Email Etiquette
        • Managing Leadership
      • E Commerce
        • All E-Commerce
        • Dropshipping
        • Search Engine
        • WordPress for Ecommerce
      • Media
        • All Media
        • Communication Skills
        • Presentation Skills
        • Public Speaking
        • Business Writing
        • Persuasion
        • Email Etiquette
        • Managing Leadership
      • Real Estate
        • All Real Estate
        • Investing
        • Risk Profiling
        • Construction
        • Financial Modeling
        • Management
        • Real Estate Finance
        • Marketing
      • Other Business
        • Product Management
        • Leadership
        • Management Skills
        • Business Process Management
        • Business Strategy
        • ISO 9001
        • Risk Management
        • Agile
        • Quality Management
    • Finance & Accounting
      • All Fin and Accounting
      • Taxes
        • All Taxes
        • Tax Preparation
        • Goods and Services Tax
        • History
        • Home Business
        • Value Added Tax (VAT)
        • QuickBooks Online
        • Financial Accounting
        • Entrepreneurship Fundamentals
        • Personal Finance
      • Money Management Tools
        • All Money Management Tools
        • QuickBooks Online
        • QuickBooks
        • Excel
        • SAP FICO
        • Xero
        • Financial Modeling
        • Excel Analytics
        • Financial Analysis
      • Investing and Trading
        • All Investing & Trading
        • Stock Trading
        • Technical Analysis
        • Forex
        • Investing
        • Options Trading
        • Day Trading
        • Algorithmic Trading
        • Financial Analysis
        • Financial Trading
      • Financial Modelings
        • All Financial Modeling & Analysis
        • Financial Analysis
        • Financial Modeling
        • Finance Fundamentals
        • Excel
        • History
        • Investing
        • Python
        • Investment Banking
        • Financial Management
      • Finance Exam Prep
        • All Finance Cert & Exam Prep
        • CFA
        • Certified Management Accountant (CMA)
        • Financial Markets
        • Quantitative Finance
        • ACCA
        • Financial Management
        • ANBIMA Certification
        • Corporate Finance
        • Fixed Income Securities
      • Finance
        • All Finance
        • Personal Finance
        • Investment Banking
        • CFA
        • Finance Fundamentals
        • Financial Management
        • Financial Analysis
        • Corporate Finance
        • Company Valuation
        • Excel
      • Economics
        • All Economics
        • Microeconomics
        • Macroeconomics
        • Stata
        • Entrepreneurship Fundamentals
        • Econometrics
        • Finance Fundamentals
        • Political Science
        • Regression Analysis
      • Crypto and Blockchain
        • All Cryptocurrency & Blockchain
        • Cryptocurrency
        • Bitcoin
        • Blockchain
        • Personal Finance
        • Day Trading
        • Bitcoin Trading
        • Algorithmic Trading
        • Ethereum
        • Technical Analysis
      • Compliance
        • All Compliance
        • Anti-Money Laundering
        • Risk Management
        • Sarbanes-Oxley (SOX)
        • Internal Auditing
        • CAMS Certification
        • CIA
        • IFRS
        • Financial Risk Manager (FRM)
        • Certified Fraud Examiner (CFE)
      • Acc and Bookkeeping
        • All Accounting & Bookkeeping
        • History
        • Finance Fundamentals
        • Financial Accounting
        • Bookkeeping
        • Financial Statement
        • Xero
        • Cost Accounting
        • Tally.ERP
        • IFRS
    • IT & Software
      • Robotics RPA
      • IT Certification
        • All IT Certification
        • AWS Certification
        • Microsoft Certification
        • AWS Certified Solutions Architect - Associate
        • AWS Certified Cloud Practitioner
        • CompTIA - A
        • Cisco CCNA
        • AWS Certified Developer - Associate
        • CompTIA Security+
        • Amazon AWS
      • Network and Security
        • All Network & Security
        • Ethical Hacking
        • Cyber Security
        • Network Security
        • CompTIA Security+
        • Penetration Testing
        • IT Networking Fundamentals
        • CompTIA Network+
        • Cisco CCNA
        • Terraform
      • Hardware
        • All Hardware
        • Arduino
        • PLC
        • Electronics
        • Microcontroller
        • Raspberry Pi
        • Embedded Systems
        • FPGA
        • HMI
        • RTOS
      • Operating Systems
        • All Operating Systems
        • Linux
        • Linux Administration
        • Windows Server
        • Shell Scripting
        • Active Directory
        • LPIC-1: Linux Administrator
        • PowerShell
        • VMware Vsphere
        • Operating System Creation
      • All IT and Software
        • All Other IT & Software
        • Docker
        • Python
        • Kubernetes
        • Devops
        • Algorithms
        • Ansible
        • AWS Certified Solutions Architect - Professional
        • Java
        • AWS Certification
    • Office Productivity
      • All Office Productivity
      • Microsoft
        • All Microsoft
        • Words
        • PowerPoint
        • SQL
        • SharePoint
        • Excel
        • OutLook
        • OneDrive
        • MS Project
        • Azure
      • Apple
        • All Apple
        • iOS
        • Mac Basics
        • macOS
        • excel
        • MS Project
        • Mac Pages
        • Office Productivity
        • Video Editing
        • Microsoft Word
      • Google
        • All Google
        • Google Analytics
        • Google Tag
        • Google Drive
        • Google Apps
        • Excel
        • Gmail Productivity
        • Google Data Studio
        • Google Docs
        • Google Office
      • SAP
        • All SAP
        • SAP ABAP
        • SAP FICO
        • SAP FICO
        • SAP Financial Accounting
        • SAP HCM
        • Supply Chain
        • SAP MM
        • SAP S/4HANA
        • SAP SD
      • Oracle
        • All Oracle
        • Primavera
        • SQL
        • Business Intelligence
        • Database
        • PLSQL
        • Data Integrator
        • Exam Prep
      • Other Office Productivity
        • All Others
        • ServiceNow
        • Time Management
        • Personal Productivity
        • Salesforce
        • QuickBooks
    • Personal Development
      • All Personal Development
      • Personal Transformation
        • All Personal Transformation
        • Life Coach Training
        • Neuro-Linguistic Programming
        • Mindfulness
        • Personal Development
        • Life Purpose
        • Meditation
        • CBT
        • Neuroscience
      • Personal Productivity
        • All Personal Productivity
        • Time Management
        • Focus Mastery
        • Speed Reading
        • Goal Setting
        • Organization
        • PowerShell
        • Procrastination
        • Habits
      • Leadership
        • All Leadership
        • Management Skills
        • Manager Training
        • Communication Skills
        • Public Speaking
        • Conflict Management
        • Listening Skills
        • Relationship Building
        • Spirituality
      • Career Development
        • All Career Development
        • Resume and CV Writing
        • Interviewing Skills
        • Job Search
        • Personal Networking
        • Life Coach Training
        • Soft Skills
        • Business Communication
      • Personal Brand Building
      • Time Management
      • Communication
    • Design
      • All Design
      • Web Design
        • All Web Design
        • Photoshop
        • After Effects
        • HTML CSS Web
        • Adobe Premiere
        • Video Editing
        • Digital Art
        • AutoCAD
        • Graphic Design
      • Graphic Design Illustration
        • All Graphic Illustration
        • Graphic Design
        • Photoshop
        • HTML CSS Web
        • Drawing
        • Digital Painting
        • InDesign
        • Figure Drawing
      • Design Tools
        • All Design Tools
        • Photoshop
        • After Effects
        • HTML CSS Web
        • Adobe Premiere
        • Video Editing
        • Digital Art
        • AutoCAD
        • Graphic Design
      • Game Design
      • User Experience Design
        • All User Experience
        • User Interface
        • Adobe XD
        • Figma
        • Web Design
        • Product Design
        • Sketch
        • Axure
        • InVision Studio
      • Design Thinking
        • All Design Thinking
        • WordPress
        • CSS
        • Sketch
        • HTML
        • Photoshop
        • User Interface
        • HTML5
        • Adobe XD
      • 3D and Animation
        • All 3D & Animation
        • Blender
        • 3D Modeling
        • After Effects
        • Motion Graphics
        • 3D Animation
        • 3D Texturing
        • zBrush
        • 3ds Max
        • Fusion 360
      • Fashion Design
        • All Fashion Design
        • Fashion
        • HTML CSS Web
        • Sewing
        • Jewelry Design
        • Photoshop
        • T-Shirt Design
        • Anime
        • Marvelous Designer
      • Architectural Design
      • Interior Design
      • Other Design
    • Marketing
      • All Marketing
      • Digital Marketing
        • All Digital Marketing
        • Google Ads (Adwords)
        • Social Media
        • Internet Marketing
        • Email Marketing
        • Google Analytics
      • SEO Optimization
        • All SEO Optimization
        • SEO
        • WordPress
        • Keyword Research
        • Local SEO
        • Link Building
        • Google my Business
        • SEO Audit
        • Google Ads (Adwords)
      • Social Media
        • All Social Media
        • Instagram Marketing
        • Facebook Ads
        • Facebook Marketing
        • PPC Advertising
        • Social Media Management
        • Instagram Photography
        • TikTok Marketing
      • Branding and Strategy
        • All Branding
        • Business Branding
        • Personal Branding
        • Brand Management
        • Graphic Design
        • Social Media
      • Marketing Fundamentals
        • All Fundamentals
        • Google Ads (Adwords)
        • SMM
        • Marketing Strategy
        • Internet Marketing
        • Sales Marketing
        • Email Marketing
        • Google Analytics
      • Analytics and Automation
        • All Marketing Analytics
        • Google Analytics
        • Google Analytics IQ
        • Data Analysis
        • Marketing Analytics
        • SQL
        • Google Tag Manager
        • Marketing Automation
      • Public Relations
        • All Public Relations
        • Leadership
        • Business Communication
        • Public Speaking
        • Brand Building
        • Startup
        • Planning
        • Time Management
      • Advertising
        • All Advertising
        • Instagram Marketing
        • Facebook Ads
        • Facebook Marketing
        • PPC Advertising
        • Social Media Management
        • Instagram Photography
        • TikTok Marketing
      • Sales Management
      • Content Marketing
        • All Content Marketing
        • Time Management
        • Branding Strategy
        • Content Writing
        • Content Creation
        • WordPress
      • Growth Hacking
        • All Growth Hacking
        • Digital Marketing
        • App Marketing
        • Lead Generation
        • SEO
        • Instagram Marketing
        • Excel
        • B2B Sales
      • Affiliate Marketing
        • All Affiliate Marketing
        • ClickBank
        • SEO
        • CPA Marketing
        • Teespring
        • Internet Marketing
        • Home Business
      • Product Marketing
        • All Product Marketing
        • Marketing Plan
        • Self-Publishing
        • Product Management
        • Voice-Over
        • Marketing Management
        • Amazon PPC Advertising
        • Facebook Marketing
    • Teaching and Academics
      • Medical
      • Law
      • Humanities
      • Math
        • All Math
        • Calculus
        • Statistics
        • Linear Algebra
        • Probability
        • Algebra
        • Trigonometry
        • Discrete Math
        • Geometry
      • Science
        • All Science
        • Physics
        • Solar Energy
        • Anatomy
        • Chemistry
        • Biology
        • Neuroscience
        • Physiology
        • Research Paper Writing
        • AP Physics
      • Online Education
      • Social Science
        • All Social Science
        • Counseling
        • History
        • Economics
        • Geography
        • Social Psychology
        • Others SS
      • Teacher Training
      • Test Prep
        • All Test Prep
        • CFA
        • PMP
        • Devops Test Prep
        • FRM
        • CEH Ethical Hacker
        • GMAT
        • Azure
        • AWS
        • Others
      • Other Teaching & Academics
  • Teach at EXAMTURF
  • Login
  • Sign Up

PostgreSQL Data Types

Home » Data Science » PostgreSQL » PostgreSQL Data Types

March 20, 2021 by Ginius Academy For UPSC CAT

TwitterLinkedInFacebookWhatsApp

PostgreSQL Data Types

Introduction To PostgreSQL Data Types

PostgreSQL is a relational database management system. It is an open-source software tool, used for managing database systems. It has the capability to recover quickly from difficulties and has good uprightness. Be it on web or analytics applications, or mobile applications, with PostgreSQL, it became very easy to store data and maintaining databases and data warehouses. Below we discuss the PostgreSQL Data Types.

Some of the data types are Numeric Types, Monetary Types, Character Types, Binary Types, Boolean Type, Enumerated Types, Date/Time Types, Geometric Types, Network Address Types, Bit String Types, Text Search Types, UUID Type, Pseudo-Types, Object Identifier Types, pg_lsn Type, Range Types, Composite Types, JSON Types, Arrays, and XML Type. There are some deprecated types; those are for internal use, like UUID, tsquery, polygon, pg_lsn, macaddr, interval [fields] [(p)], bit varying [(n)], bigint, etc.

Numeric Data Types

There are four parts to this. Those are Serial Types, Floating-Point Types, Arbitrary Precision Numbers, and Integer Types.

1. Serial Types

Whenever a new row is getting inserted into the database, we need to have a default sequence type value for every column. With the use of serial data types, we can start the value from 1. This is very useful while creating or altering a table.

2. Floating-Point Types

It’s a part of a binary point or decimal point. There can be single or double floating-point numbers. To represent floating-point, if we use 32 bits, then it would be called a single precision. Wherein if we use 64 bits, then it will be double precision. Respective to the significant digits, it can be placed anywhere, thus it is called a ‘float’.

3. Arbitrary Precision Numbers

In the available memory of the host system, some precisions are holding limited digits. Now if we want to implement those particular numbers, we can do so by deploying Arbitrary Precision.

4. Integer Types

If we want to set a range, to store an integer type of value, then we can implement it with this data type. Like for ‘smallint’ with the storage of 2 bytes, we can have a value between -32768 to 32767. Similarly, for bigint, we can have a range between -9223372036854775808 to 9223372036854775807.

5. Monetary Data Types

If we want to store currency amount, a kind of fractional precision that is fixed, then we use this data type. Within a database, with the help of the lc_monetary setting, fractional precision can be determined. Like a currency format such as ‘$5,000.00′.

6. Character Data Types

When we need to store numerical digits, symbols, upper and lower case letters, or common punctuation marks, then we need to use this data type. We will use character varying(n), varchar(n) if we want to limit the variable length, we can also use the character(n), char(n) if we want to blank padded or need to have a fixed length. In case if we want unlimited length for the variable then we can use ‘text’.

7. Binary Data Types

If we want to represent some opposed data, like ‘yes’ or ‘no’ then we use this data type. There are two formats in this data type, one is bytea Hexa and another is bytea Escape.

  • bytea Escape: If we want to represent a binary string like a sequence of ASCII characters then we need this data type.
  • bytea Hexa: If we have binary data, which we need to encode as 2 hexadecimal digits for every single byte then we need to use this data type. To make a difference from the escape format, the string is lead up to by the sequence ‘x’.

8. Boolean Data Type

If we want to set a value as ‘yes’ or ‘no’ or ‘not known’ then we use this data type. When we use some combination of comparison operators, like ‘>=’, ‘=’, ‘<’, ’<>’ or logical operators then we need this data type.

9. Data/Time Data Types

It stores the date format of a calendar and timestamp. There are five parts, Time Zones, Interval Input, Interval Output, Date/Time Input, and Date/Time Output.

  • Time Zones: In the real world, time zones have too small meaning, till it is associated with the date as well as with time, because the offset can differ through the year, for time boundaries in daylight-saving. For a session, if we use the SET TIME ZONE command in SQL it will set the time zone for that. While connecting to the server, an environment variable PGTZ is also used, if we want to send a SET TIME ZONE command to the server.
  • Interval Input: When we want to represent millennium, year, century, decade, month, day, week, hour, minute, microsecond, second, millisecond, or abbreviations or it can be plurals of these units, then we need to use this data type.
  • Interval Output: In this, the interval type can be set to one of the four styles, iso_8601, postgres_verbose, Postgres, or sql_standard. We need to use the ‘SET interval-style’ command for the same.
  • Date/Time Input: This input is accepted in nearly any reasonable format, traditional POSTGRES, SQL-compatible, ISO 8601, and others.
  • Date/Time Output: This type can be set into four styles, it should be anyone of them. It can be German, Unix date format, ISO 8601, or SQL Ingres.

10. Enumerated Data Types

Also known as enum, is a kind of ordered set of values or rather comprises a static value. They are equivalent to the enum data types. There are four parts in this data type; those are Implementation Details, Type Safety, Ordering, and Declaration of Enumerated.

  • Implementation Details: Levels of enum are case sensitive. So the ‘true’ is not the same as ‘TRUE’. Enum types are conscious of static sets of value.
  • Type Safety: The enum data type cannot be compared with other enum types; it is separate from each other.
  • Ordering: After type was created, if we want the value to be listed in a specific order, and then we need this.
  • Declaration of Enumerated Types: To create enum type, we need to use the command CREATE TYPE. After creating, it can also be used in function definitions.

Conclusion

Apart from this, there are many more data types used in PostgreSQL. Each data types are important in their segments. It is very important to understand the relations between various data types because many of them are correlated with each other. The best way would be to implement data types by using syntax.

Recommended Articles

This is a guide to PostgreSQL Data Types. Here we discuss the introduction and numeric data types for better understanding. You can also go through our other suggested articles to learn more –

  1. PostgreSQL Administration
  2. PostgreSQL Architecture
  3. PostgreSQL Features
  4. What is PostgreSQL?

Are you preparing for the entrance exam ?

Join our Data Science test series to get more practice in your preparation

View More
TwitterLinkedInFacebookWhatsApp

Data Science,  PostgreSQL

Primary Sidebar

Recent Posts

  • Voice Over Internet Protocol (VoIP)
  • Data Modeling Interview Questions
  • Resorts in Indore
  • Big Data and Artificial Intelligence
  • Shore Temple

Categories

  • Artificial Intelligence
  • Bank Exams
  • Best Resorts
  • C# Tutorial
  • CAT Exam
  • Celebrity
  • Cloud Computing
  • Data Analysis
  • Data Science
  • Database
  • Defence Exams
  • Exam Preparations
  • Finance & Accounting
  • Finance Cert and Exam Prep
  • Full Form
  • IIT JEE Preparation
  • Interview Questions
  • Interview Questions
  • IT & Software
  • Java Tutorial
  • K-12
  • Machine Learning
  • Management & Foreign Studies
  • Miscellaneous
  • Mobile Development
  • NEET Preparation
  • Operating Systems
  • Others
  • PostgreSQL
  • Programming Languages
  • Python
  • Railway Exams
  • Software Development
  • SSC Exams
  • State PSC
  • Temple
  • Top Difference Between
  • Tourist Places
  • Uncategorized
  • UPSC
  • Web Development
  • World Best Hotels
Footer

Company

  • About Us
  • Contact Us
  • Terms
  • Privacy Policy & Cookie Policy
  • Cancellation/Refund Policy

Teachers

  • Teach on Examturf
  • Instructor FAQs
  • Instructor Revenue Share
  • Marketing Tips for Instructor
  • Instructor Success Stories

Learners

  • Learners FAQs

Affiliate

  • Become an Affiliate
  • Affiliate Success Stories

Resources

  • Blog
  • Exam Preparation
  • UPSC Exams
  • SSC Exams
  • IIT JEE
  • NEET Preparations
  • Data Science
  • Development

Featured Tests

  • All Featured Tests
  • Mini Quizzes
  • Comprehensive Series
  • Regular Tests
  • Exam Preparations
  • Data Science
  • Development
  • Business
  • Finance & Accounting
  • IT & Software
  • Office Productivity
  • Personal Development
  • Design
  • Marketing
  • Teaching & Academics

Copyright © 2025

Special Offer: 2000+ Selected Test Series, Mini Quizzes and Mock Tests are FREE. Offer valid for :

x