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.

error connection postgresql 9.0

See original GitHub issue

Hi!

I have problem to connect in Postgres 9.0 version with sequelize. Show me an error about not exist ‘pg_range’ (error message: ‘relation “pg_range” dows not exist’).

When I try connect in Postgre 9.5 it works (because 9.5 have pg_range on pg_catalog). How can I connect in Postgres 9.0??

const sequelize = new Sequelize(
      'DatabaseTest',
      'postgres',
      'postgres',
      {
        host: '[ip]',
        dialect: 'postgres',
        port: 5432
      }
    );
    sequelize
      .authenticate()
      .then(() => {
        toast.success('Conexão realizada com sucesso!');
        return true;
      })
      .catch(err => {
        toast.error(`Não foi possível conectar na fonte de dados ${err}`);
      });

To Reproduce Just try connect!

What do you expect to happen?

Connect.

What is actually happening?

raise this error: ‘relation “pg_range” dows not exist’

Environment

Dialect:

  • mysql
  • postgres
  • sqlite
  • mssql
  • any

Dialect library version: 7.9.0 Database version: 9.0 Sequelize version: 5.2.11 Node Version: 10.15.1 OS: Win 10

Tested with latest release:

  • No
  • Yes, specify that version:

Issue Analytics

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

github_iconTop GitHub Comments

5reactions
dberardocommented, Apr 27, 2020

is this problem still persisting? i am trying to connect to a postgres db version 8.x through sequelize and i get the same error message as @fabio-basedev unfortunately i cannot find any documentation on PG version compatibility of sequelize so i can’t figure out whether postgres 8.x is too low for sequelize 5.x

any clue?

i have solved this, by downgrading sequelize to the deprecated version 4.44 it seems to work.

hope they will improve their documentation, it took me quite a while to figure that out.

thanks @SimonSchick for your message, that helped me out

3reactions
SimonSchickcommented, Apr 26, 2019

Iirc we don’t support anything below 9.4 in v5 cc @sushantdhiman

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation: 9.0: PostgreSQL Error Codes
Error Code Meaning Condition Name 00000 SUCCESSFUL COMPLETION successful_completion 01000 WARNING warning 0100C DYNAMIC RESULT SETS RETURNED dynamic_result_sets_returned
Read more >
[SOLVED] Connection Error - PostgreSQL 9 - Scriptcase
I get the error below : Database connection failed. pg_connect(): Unable to connect to PostgreSQL server: SSL error: length too short.
Read more >
PostgreSQL Error: server closed the connection unexpectedly
I'm using PostgreSQL 9.0.5 on windows 7 with ArcSDE 10.1 (Arcgis Spatial Database add-on), I have deactivated the antivirus and firewall. I have ......
Read more >
PostgreSql 9.0.3 Connection Issue - TechNet - Microsoft
We encountered an error while trying to connect. Details: "ODBC: ERROR [0801] Could not connect to the server;<br>Could not resolve hostname". I ...
Read more >
java - Postgresql 9.3 - JDBC connection error - Stack Overflow
1 Answer 1 · Edit the config file /etc/postgresql/9.4/main/postgresql.conf . (Make a backup maybe) · Uncomment the line #log_destination = 'stderr ...
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