error connection postgresql 9.0
See original GitHub issueHi!
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:
- Created 4 years ago
- Comments:12 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
Iirc we don’t support anything below 9.4 in v5 cc @sushantdhiman