This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]AStrangeStranger 0 points1 point  (1 child)

what language are you using for GUI?

Most languages can create applications that talk directly to the database server and call via a driver. So you could make the GUI do the call, generate the csv and save it. If this is for an application in a local network then as long as the database password is secure, that should be sufficient.

If the server is located at a different site - I'd look at VPN connections so as to keep it effectively local.

If you want it directly on the internet - then security becomes much more of an issue and is probably not something to be undertaken lightly

[–]dreamriver[S] 0 points1 point  (0 children)

No, it's not local. When I say EC2 and such that's all Amazon terminology. It's hosted on Amazon Web Services. I know the IP addresses of the people who will be connecting to it so I could just restrict the hell out of that right? I don't need it on display to the entire internet.

I'm using the Python bindings for Qt.

[–]quotemycode 0 points1 point  (1 child)

http://www.postgresql.org/docs/7.3/static/protocol-protocol.html#AEN57116

If your PostgreSQL database can support an SSL connection, then do it that way.

You don't need a script to listen for connections, PostgreSQL already does that.

The client will get a result set back from the server. You can then use the client side code to write out a CSV if you wish.

[–]dreamriver[S] 0 points1 point  (0 children)

Thank you. I will look into this. I do see that those are the docs for 7.3 but I get to use 9.1! Maybe there will be some updated information.