Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 5123

Redshift Linked server Performance behavior issues.

$
0
0

Hi bit of a shot in the dark here but open for offers.

We have a Redshift database 

version

PostgreSQL 8.0.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3), Redshift 1.0.901 

which is hosted on the cloud now I  downloaded the recommend driver from

https://docs.aws.amazon.com/redshift/latest/mgmt/install-odbc-driver-windows.html

Installed the 64bit then gained connection.   I then setup a linked server within SQL 2012

EXEC master.dbo.sp_addlinkedserver @server = N'CONSOLE', @srvproduct=N'Redshift', @provider=N'MSDASQL', @datasrc=N'Console'
 /* For security reasons the linked server remote logins password is changed with ######## */
EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'CONSOLE',@useself=N'False',@locallogin=NULL,@rmtuser=N'test',@rmtpassword='########'

GO

EXEC master.dbo.sp_serveroption @server=N'CONSOLE', @optname=N'collation compatible', @optvalue=N'false'
GO

EXEC master.dbo.sp_serveroption @server=N'CONSOLE', @optname=N'data access', @optvalue=N'true'
GO

EXEC master.dbo.sp_serveroption @server=N'CONSOLE', @optname=N'dist', @optvalue=N'false'
GO

EXEC master.dbo.sp_serveroption @server=N'CONSOLE', @optname=N'pub', @optvalue=N'false'
GO

EXEC master.dbo.sp_serveroption @server=N'CONSOLE', @optname=N'rpc', @optvalue=N'false'
GO

EXEC master.dbo.sp_serveroption @server=N'CONSOLE', @optname=N'rpc out', @optvalue=N'false'
GO

EXEC master.dbo.sp_serveroption @server=N'CONSOLE', @optname=N'sub', @optvalue=N'false'
GO

EXEC master.dbo.sp_serveroption @server=N'CONSOLE', @optname=N'connect timeout', @optvalue=N'0'
GO

EXEC master.dbo.sp_serveroption @server=N'CONSOLE', @optname=N'collation name', @optvalue=null
GO

EXEC master.dbo.sp_serveroption @server=N'CONSOLE', @optname=N'lazy schema validation', @optvalue=N'false'
GO

EXEC master.dbo.sp_serveroption @server=N'CONSOLE', @optname=N'query timeout', @optvalue=N'0'
GO

EXEC master.dbo.sp_serveroption @server=N'CONSOLE', @optname=N'use remote collation', @optvalue=N'true'
GO

EXEC master.dbo.sp_serveroption @server=N'CONSOLE', @optname=N'remote proc transaction promotion', @optvalue=N'true'
GO

Which is all fine however getting some very odd behavior where on certain tables if I select a 14k location table it never retuns but if i limit it to 5 returns instantly.

Also for another table which has 200 columns I can only select 1 row otherwise it comes back with 

OLE DB provider "MSDASQL" for linked server "console" returned message "[Amazon][RedShift ODBC] (30) Error occurred while trying to execute a query: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
".

Yet when I use a the aginioty workbench client which I'm guessing uses its own form of connection there are no issues with it.

Any help or advice on this would be great .

Many Thanks

Robert 

 


Viewing all articles
Browse latest Browse all 5123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>