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.

Unable to save postgres custom type array

See original GitHub issue

System information:

  • Windows 10 Pro
  • Version 7.0.5.202005171753

Connection specification:

  • Postgres 12.2
  • PostgreSQL JDBC Driver 42.2.5
  • No tunnels or proxies

Describe the problem you’re observing:

Unable to save array of custom type. The error provided is:

Error synchronizing data with database

Reason:
Error creating struct
Error creating struct
  Unable to find server array type for provided name <type_name>.

Steps to reproduce, if exist:

CREATE SCHEMA IF NOT EXISTS  "cc";

CREATE TYPE cc.my_type as ENUM ('foo', 'bar');

CREATE TABLE IF NOT EXISTS cc.my_table(
 ID SERIAL PRIMARY KEY,
 props cc.my_type[]
);

In the UI add a new row and populate the props with a value. Click Save.

Include any warning/errors/backtraces from the logs

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
sridharjsharmacommented, Sep 22, 2020

image

This Issue Still Exists? I updated DBeaver to 7.2.1 On my Win10 m/c

3reactions
mittalyashucommented, Aug 4, 2020
Screenshot 2020-08-04 at 10 21 02 AM

@uslss In the recent release v7.1.4, I am getting the same/similar error.

In the previous release v7.1.3 or v7.1.2 (don’t remember the exact version number), I didn’t get such issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

insert into array of custom type in Postgres - sql - Stack Overflow
The easiest way would probably be: INSERT INTO new_table VALUES ( '9fd92c53-d0d8-4aba-8925-1bd648d565f2'::uuid, ARRAY[ row(now(), ...
Read more >
Documentation: 15: CREATE FUNCTION - PostgreSQL
The user that creates the function becomes the owner of the function. To be able to create a function, you must have USAGE...
Read more >
Troubleshooting in Athena - AWS Documentation
For more information, see How do I resolve the error "unable to create ... array ) has been declared as a primitive type...
Read more >
Working with the Array Data Type in PostgreSQL
The cars list will be a text Array. Open pgAdmin and create a database. Name it as desired. Right-Click on the database name...
Read more >
Active Record and PostgreSQL - Ruby on Rails Guides
You need to enable the hstore extension to use hstore. # db/migrate/20131009135255_create_profiles.rb class CreateProfiles < ActiveRecord:: ...
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