I am trying to get a fast i.e. fast and not a lot of code, way to get csv data into postgres data base. I am reading into python using开发者_运维问答 csvDictreader which works fine. Then I need to gen
This has been driving me crazy for 2 days. I have been trying to install psycopg2 using开发者_Python百科 easy_install and no matter what I try (i.e using gcc-4.0 instead of the snow leopard default o
I use psycopg2 for accessing my postgres database in python. My function should create a new database, the code looks like this:
I\'m running Mac OSX. Until today I had Python 2.6 with psycopg2 running just fine, I was using it with Django and Pylons. I\'ve just reintalled postgres (I don\'t know if this is connected) and sudde
I got some S开发者_StackOverflow社区QL function CREATE OR REPLACE FUNCTION tools.update_company(IN company_id integer, OUT value integer)
Sorry this is a very newbie question.When I\'m trying to pass a tuple into an insert statement the quotations seem to disappear.
I installed psycopg2 in virtualenv using easy_install psycopg2. I did not see any errors and looks like installation went fine.. there is an egg file created in the site-packages dir for psycopg2..
I got a lot of errors with the message 开发者_StackOverflow中文版: \"DatabaseError: current transaction is aborted, commands ignored until end of transaction block\"
I believe it\'s because I installed python using SciPy, so apparently it\'s not in the registry where the psycopg2 installer is looking. Anyway to fix this without installing python26 over the existin
I\'m a newbie in Python and psycopg2 and have problems with a simple insert. This is my table: CREATE TABLE tabla