I've managed to setup a linked server on an SQL 2005 Server back to a Postgres 8.3.7 server running on RHEL. Select statements using 4 part table name (namely rms...tablename) and usning 'openquery(rms,'select * from tablename')' work just fine. However when I try to run an update statement as follows :
update rms...prclst
set action_code = 'D'
where prodid = '061348' and division = '00001' and location = '00' and cover_grade = 'CA' and cover_series = '8907'
it excutes for about 58 seconds and then terminates with the following error :
Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "PGNP" for linked server "rms" reported an error. The provider reported an unexpected catastrophic failure.
Msg 7343, Level 16, State 4, Line 1
The OLE DB provider "PGNP" for linked server "rms" could not UPDATE table "[rms]...[prclst]". Unknown provider error.
The postgres server logs contain the following entries :
2010-07-06 21:57:47 EDT PID:3448 ERROR: cursor "pgnpcsr1" does not exist
2010-07-06 21:57:47 EDT PID:3448 STATEMENT: CLOSE pgnpcsr1
Any help will be appreciated. I have not tried to use an 'openquery' update yet. I will try that next.
B.T.W. I'm on version 1.3.2152 of PGNP
