question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PostgreSQL integer array column unavailable

See original GitHub issue

Using DBeaver 6.1.0

I’m trying to create an integer array column for a table in a PostgreSQL database, and can’t seem to find the option. I have tried entering it manually and get an error, while interestingly an array of text (text[]) gets converted to _text when I press enter, and seems to be identified as a text array correctly.

Thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
serge-ridercommented, Jun 29, 2019

In PostgreSQL data type _text stands for array of text. text[] is just another form of record. You can set data type to int4[] manually (which is basically the same as _int4).

0reactions
smitt14uacommented, Aug 30, 2020

@uslss try to update a value in already existed column, I have error when try this

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation: 15: 8.15. Arrays - PostgreSQL
PostgreSQL allows columns of a table to be defined as variable-length multidimensional arrays. Arrays of any built-in or user-defined base type, enum type, ......
Read more >
trouble inputting number array in postgres using loopback
1 Answer 1 ... For me @property({ type: 'array', itemType: 'number', postgresql: { dataType: 'integer ARRAY', }, }) did not work (tested 14...
Read more >
Using Arrays in PostgreSQL - Towards Data Science
With the Array PostgreSQL allows columns of a table to be defined as variable-length ... This will return the number of items in...
Read more >
Use integer array in IN condition PostgreSQL ... - appsloveworld
Related Query · Use integer array in IN condition PostgreSQL · How to use LOWER case in WHERE condition for Character varying Array...
Read more >
Inner join on array column in Postgres
It looks like the names of such columns are contained in pg_constraint . According to the docs, the column relevant to my problem...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found