You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we want to create new database we must connect to server... If we want to connect to server we must specify existing database... I think(maybe I'm wrong) that "postgres" database is always there... Hence hardcoded value...
Notice that method UsingPostgresDBConnection is used just when creating/droping... databases... So all data operations are done on database you specified..
I'm not sure what problem do you have... "postgres" database doesn't exist on server or something else?
HI, @mateusaubin ! Thanks for your feedback. I'd like to hear more about your experience running Npgsql with Amazon Redshift. From your commits Redshift doesn't seem to support some settings we are using. Are those the only problems you faced?
Some changes were needed since Redshift is quite different from postgres internally.
The library works quite well after disabling the unsupported features.
We are using it with standard ADO (NpgsqlConnection and friends) as well as EntityFramework.
As development progresses and incompatibilities arise we're trying to fix our internal fork of the project, but things progressed really well up to now.
If you guys want I could create a pull request to merge Redshift support (which is currently enabled through a compile constant #if REDSHIFT)
It would be great if you could share this code. I don't think we would integrate any code with #if REDSHIFT in it, but we could investigate how to integrate the changes into Npgsql in a more streamlined way...
Activity
DavidKarlas commentedon Jul 15, 2014
If we want to create new database we must connect to server... If we want to connect to server we must specify existing database... I think(maybe I'm wrong) that "postgres" database is always there... Hence hardcoded value...
Notice that method UsingPostgresDBConnection is used just when creating/droping... databases... So all data operations are done on database you specified..
I'm not sure what problem do you have... "postgres" database doesn't exist on server or something else?
mateusaubin commentedon Jul 15, 2014
Now I see, thanks.
The problem here is that I am connecting to Amazon Redshift, hence the "postgres" database doesn't exists.
I've already made a fix to my local version and it's working fine.
I will close this issue, thanks once again.
franciscojunior commentedon Jul 16, 2014
HI, @mateusaubin ! Thanks for your feedback. I'd like to hear more about your experience running Npgsql with Amazon Redshift. From your commits Redshift doesn't seem to support some settings we are using. Are those the only problems you faced?
Thanks in advance.
mateusaubin commentedon Jul 17, 2014
Some changes were needed since Redshift is quite different from postgres internally.
The library works quite well after disabling the unsupported features.
We are using it with standard ADO (NpgsqlConnection and friends) as well as EntityFramework.
As development progresses and incompatibilities arise we're trying to fix our internal fork of the project, but things progressed really well up to now.
If you guys want I could create a pull request to merge Redshift support (which is currently enabled through a compile constant #if REDSHIFT)
roji commentedon Jul 17, 2014
It would be great if you could share this code. I don't think we would integrate any code with #if REDSHIFT in it, but we could investigate how to integrate the changes into Npgsql in a more streamlined way...
Note that there's issue #163 already open.
roji commentedon Mar 3, 2015
Note that the UsingPostgresDBConnection issue was fixed in #511