Question

When creating a table in pgAdmin, there are two data types list for most entries, such as the following examples,

character varying, character varying[] or bigint, bigint[].

What is the significance of the data type followed by []?

Was it helpful?

Solution

This means postgresql array type that allows to store multiple values in a single table column. I.e. bigint[] means just array of bigint.

OTHER TIPS

As per this link Postgres Array Types

PostgreSQL allows columns of a table to be defined as variable-length multidimensional arrays.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top